1 Reply Latest reply on Jun 8, 2007 3:20 AM by varkon

    Session corruption and mixing of data across sessions

    varkon Newbie

      Greetings everyone,

      I'm using JBoss 4.0.3sp1 and I have an application packed as an ear file (structure below).

      I've recently realized, that when two users(sessions) access the same resources at the same time (servlets and ejbs), it is happens that they get mixed results. For example, user session A sends a request to the server at the same time as user session B. It is very probable that A will get B's response the the opposite.

      My EAR's structure is the following:

      myApp.ear
      |-META-INF
      |-ejbs.jar (EJBs)
      |-support.jar (various utility classes)
      |-hibernate.har (my hibernate files)
      |-webapp.war (the web component of my application. Contains /lib)

      I've read that my problem might be related to the variable "UseJBossWebLoader" defined in Tomcat's jboss-service.xml, which is set to "true" in my case. I've tried setting it to "false" - just in case that fixes my problem - but afterwards, I would get:


      javax.ejb.EJBException: Unexpected Error
      java.lang.NoClassDefFoundError: com/myapp/web/Controller/MyClass


      I should also note that I'm using local interfaces to access my EJBs.

      I'm sorry if this is not the correct section to post this question, but I could not find one that seemed more appropriate.

      I would really appreciate all the help I can get, as this is a really big problem for me...