1 Reply Latest reply on May 22, 2009 4:20 AM by jaikiran pai

    Staic variable is getting shared between two applications

    sada abc Newbie

      Hi All,

      I have two turbine appliactions deployed in JBoss default profile. Actually turbine jar is packaged seperately in 2 ears but still static variables in turbine servlet are getting shared between 2 applications.

      I have added jboss-app.xml in meta-inf of both ear files e.g.

      After adding above, applications are not getting deployed. It throws exception like,
      java.lang.NoClassDefFoundError: java/lang/Object
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)

      I am not getting why this is not working?
      Can anybody gives solution?

      If I add above jboss-app.xml for test applications having only servlet(common to both) then it works fine (static var is not getting shared). But it doesn't work for my turbine application where there are too many jars ejbs etc.

      Please give suggestions if anybody has.

      Thanks in advance.