4 Replies Latest reply on Aug 9, 2005 2:20 PM by Matthew Warman

    JBoss 4.0.2 CreateException

    Rodney Kite Newbie

      I am having problems performing any ejbCreate operations in two different applications running on JBoss 4.0.2. The applications build and deploy fine with 4.0.2 but I get an CreateException stating Invalid Invocation when a create is invoked on any session beans. The error instructs me to check my applications deployment settings. The exact applications deploy and work fine with JBoss 4.0.1. I would like to use 4.0.2 so that I can take advantage of the integrated Tomcat 5.5 features. I am running SDK 1.4.2_08.

      Does anyone have any insite on what may be causing this?

      Thanks
      Rodney

        • 1. Re: JBoss 4.0.2 CreateException
          Scott Stark Master

          Invalid packaging for the servlet 2.3 default class loading model resulting in the ejb classes being loaded by multiple class loaders. See the release notes on the class loading change.

          • 2. Re: JBoss 4.0.2 CreateException
            upankar das Newbie

            I also had the same problem.. Try the following 3 steps:
            1] Edit conf/jboss-service.xml and make CallByValue as 'true' in NamingService as below

            <mbean code="org.jboss.naming.NamingService"
            name="jboss:service=Naming"
            xmbean-dd="resource:xmdesc/NamingService-xmbean.xml">
            true


            2] Edit deploy/ear-deployer.xml, and set Isloated and CallByValue as true

            3]Edit deploy\jbossweb-tomcat55.sar\META-INF\jboss-service.xml , and set Java2ClassLoadingCompilance and UseJbossWebLoader attributes as false

            See it it works now..

            - Upankar

            • 3. Re: JBoss 4.0.2 CreateException
              Rodney Kite Newbie

              Thanks for the help. I am going to stick with 4.0.1 for now and try 4.0.3 when it comes out.

              • 4. Re: JBoss 4.0.2 CreateException
                Matthew Warman Newbie

                I'm having a similar problem, but it is limited to calling the create method on a LocalHome of a Stateless Session Bean. I'm running JBoss AS 4.0.2 and I have set the class loading as described in the class loading section of the manual. (Couldn't even cast the home without correcting that.) I can use the Remote Stubs and call my Session Bean with no problem, but switching to use the Local Stubs causes the "Invalid invocation, check deployment packaging" error.

                Any ideas?