Error. WARN: WELD-000335: Conversation context is already active

Asked

Viewed 177 times

1

I am presenting the following error in my Glassfish server 4.1 output:

WARN: WELD-000335: Conversation context is already active, Most likely it was not cleaned up properly During Previous request Processing: org.apache.Catalina.connector.Requestfacade@37607e3b

I’m working with jsf, cdi, primefaces, jpa. I’ve searched for a few days about the bug but I couldn’t fix it. My Project is running(localhost) apparently without problem, but the message is always appearing.

  • No need to worry, warnings are not bugs, this bug is reported in the Weld doc only for Tomcat and for some reason Grizzly behaves similar, in the case of Tomcat it does not allow integration with Threadlocal in asynchronous Servlets requests, then it warns that the context Conversation is already active, more questions see the Docs

  • Thank you Dilnei, I’m migrating my project to cdi and I’m picking up a bit. I have a problem deploying the server, I thought it would be related to the problem. Thanks for the help!

  • Are there any mistakes? if you want to share the problem feel free.

  • I just created a question about the bug. Thank you very much!

  • @Dilneicunha, puts the response of the statement to mark as solved. After the change of the dependency of cdi resolved tbm to msg that was appearing.

1 answer

1


Warnings are not bugs, this bug is reported in the Weld doc only for Tomcat and for some reason Grizzly behaved similar when there was more than one Weld lib in the context, in the case of Tomcat it does not allow integration with Threadlocal in asynchronous Rvlets requests, so it warns that the Conversation context is already active. but in the case of Glassfish is the Weld lib declared in pom.xml and in conflict with the CDI dependency provided by the container.

The solution to remove Warning was to set the correct CDI library as provided, e.g.:

This dependency has been removed:

<dependency> 
    <groupId>org.jboss.weld.servlet</groupId> 
    <artifactId>weld-servlet</artifactId> 
    <version>1.1.10.Final</version> 
    <scope>compile</scope> 
</dependency>

and added the CDI API as provided, ex:

<dependency> 
    <groupId>javax.enterprise</groupId> 
    <artifactId>cdi-api</artifactId> 
    <scope>provided</scope> 
</dependency>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.