10 Replies Latest reply on Sep 26, 2005 7:44 AM by joshid

    4.0.1sp1 to 4.0.2 causes recursive ejbCreate calls then Stac

    theaps

      After attempting a switch from 4.0.1sp1 to 4.0.2, all stateless session beans containing a local client ref to other stateless session beans in a circular chain (e.g. BeanA has a local ref to BeanB, which has a local ref to BeanC, which has a local ref to BeanA), fail in the first bean's ejbCreate method.

      Execution enters BeanA's ejbCreate method, which creates a local ref to BeanB. In BeanB's ejbCreate method, it creates a local ref to BeanC. In BeanC's ejbCreate method, it creates a local ref back to BeanA.

      **A NEW instance of BeanA is created and it's ejbCreate is called, and the cycle continues until a StackOverflowError occurs.

      After reading the release notes and suspecting web classloader issues, we changed [JBOSS_HOME]/server/default/deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml:

      Java2ClassLoadingCompliance to true and UseJBossWebLoader to true

      When this did not solve the problem, we completely ripped out the web portion of our app and just ran with a single (exploded) ear containing a single ejb jar and still had the same problem (we have a rich (Swing) client as well).

      Wondering if something had changed with support for exploded deployments, we packaged up our deployment and still had the same problem.

      I am hoping that this is just something we have missed with the upgrade... we have tried to be careful about configuring the new version of jboss but we could have missed something.

      Thanks.