10 Replies Latest reply on Aug 5, 2004 9:22 AM by dev2gosoft

    EJB Deployment Failure in Jboss 4.0RC1

    dev2gosoft Newbie

      This issue appears to be related to issue# 967939 in the bug tracking database.

      I have trying to deploy a jar file with ejbs, that has already been successfully deployed and tested in jboss 3.2.5, on Jboss 4.0RC1 and I am getting a failure ClassNotFoundException when deploying Stateless Session Beans even though the class obviously exists in the jar file.

      Environment:
      JBoss 4.0.0RC1
      JDK 1.4.2_05
      WinXP


      Any help on this issue will be deeply appreciated???

        • 1. Re: EJB Deployment Failure in Jboss 4.0RC1
          Scott Stark Master

          Add a sample deployment to the bug report.

          • 2. Re: EJB Deployment Failure in Jboss 4.0RC1
            dev2gosoft Newbie

            Scott,

            Here is what i noticed....the classes that the classloader reports as not able to find are exception classes thrown by business methods in a Stateless Bean.

            Actually the exception class do exist in the jar file as reported earlier...


            The error message is exactly as the one reported in the above referenced bugreport #.


            Let me know if u need anything else???
            thx,
            - Venu

            • 3. Re: EJB Deployment Failure in Jboss 4.0RC1
              dev2gosoft Newbie

              here is the snippet of the actual original message:


              ........
              ........
              11:12:26,546 INFO [BlockingServer] Remoting 'async' protocol clients will connect to: InvokerLocator [async://192.168.0.101:8085/?compression=-1&tcp.nodelay=true]
              11:12:27,406 WARN [EJBDeployer] Verify failed; continuing
              java.lang.NoClassDefFoundError: com/togosoft/ht/service/server/ServerControllerException
              at java.lang.Class.getDeclaredMethods0(Native Method)
              at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
              at java.lang.Class.privateGetPublicMethods(Class.java:1778)
              at java.lang.Class.getMethods(Class.java:832)
              at org.jboss.verifier.strategy.EJBVerifier20.verifySessionRemote(EJBVerifier20.java:825)
              at org.jboss.verifier.strategy.EJBVerifier20.checkSession(EJBVerifier20.java:98)
              at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:162)
              at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:537)
              at org.jboss.deployment.MainDeployer.create(MainDeployer.java:817)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:673)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
              at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
              at $Proxy7.deploy(Unknown Source)
              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
              at $Proxy0.start(Unknown Source)
              at org.jboss.system.ServiceController.start(ServiceController.java:369)
              at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
              at $Proxy4.start(Unknown Source)
              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:260)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:863)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:674)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
              at $Proxy5.deploy(Unknown Source)
              at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:387)
              at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
              at org.jboss.Main.boot(Main.java:151)
              at org.jboss.Main$1.run(Main.java:405)
              at java.lang.Thread.run(Thread.java:534)
              11:12:27,406 ERROR [MainDeployer] could not create deployment: file:/C:/2goSoft/JavaTools/jboss_4.0.0RC1/server/all/deploy/ht_service.jar
              org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
              at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:553)
              at org.jboss.deployment.MainDeployer.create(MainDeployer.java:817)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:673)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
              at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
              at $Proxy7.deploy(Unknown Source)
              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
              at $Proxy0.start(Unknown Source)
              at org.jboss.system.ServiceController.start(ServiceController.java:369)
              at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
              at $Proxy4.start(Unknown Source)
              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:260)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:863)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:674)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
              at $Proxy5.deploy(Unknown Source)
              at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:387)
              at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
              at org.jboss.Main.boot(Main.java:151)
              at org.jboss.Main$1.run(Main.java:405)
              at java.lang.Thread.run(Thread.java:534)
              11:12:27,828 INFO [EjbModule] Deploying MediaEntity
              11:12:27,937 INFO [EjbModule] Deploying MetaDataEntity
              11:12:27,953 INFO [EjbModule] Deploying MediaEntityManager
              11:12:28,000 WARN [EjbModule] The Container Invoker session-webservice-invoker (in jboss.xml or standardjboss.xml) could not be created because of java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.net.ws4ee.server.EJBProxyFactoryImpl We will ignore this error, but you may miss a transport for this bean.
              11:12:30,203 INFO [MetaDataEntity] Table 'JBOSS_METADATA_ENTITY_BEANS' already exists
              11:12:30,218 INFO [MetaDataEntity] Table 'METADATAENTITY_MANAGEDPARENTS_METADATAENTITY_MANAGEDCHILDREN' already exists
              11:12:30,218 INFO [MetaDataEntity] Table 'METADATAENTITY_MANAGEDPARENTS_METADATAENTITY_MANAGEDCHILDREN' already exists
              11:12:30,484 INFO [MediaEntity] Table 'JBOSS_MEDIA_ENTITY_BEANS' already exists
              11:12:30,484 INFO [MediaEntity] Table 'MEDIAENTITY_MANAGEDMETADATAS_METADATAENTITY_MANAGEDMEDIAS' already exists
              11:12:30,515 INFO [MediaEntity] Table 'MEDIAENTITY_MANAGEDPARENTS_MEDIAENTITY_MANAGEDCHILDREN' already exists
              11:12:30,515 INFO [MediaEntity] Table 'MEDIAENTITY_MANAGEDPARENTS_MEDIAENTITY_MANAGEDCHILDREN' already exists
              11:12:30,609 INFO [EJBDeployer] Deployed: file:/C:/2goSoft/JavaTools/jboss_4.0.0RC1/server/all/deploy/jboss-media-entity-ejb.jar
              11:12:30,906 INFO [EjbModule] Deploying MEJB


              • 4. Re: EJB Deployment Failure in Jboss 4.0RC1
                Scott Stark Master

                Yes, I need an example deployment. Attach it to the bug report.

                • 5. Re: EJB Deployment Failure in Jboss 4.0RC1
                  dev2gosoft Newbie

                  here is the portion of ejb-jar.xml for servercontrollerbean

                   <!-- Session Beans -->
                   <session >
                   <description><![CDATA[]]></description>
                  
                   <ejb-name>ServerController</ejb-name>
                  
                   <home>com.togosoft.ht.service.server.ServerControllerHome</home>
                   <remote>com.togosoft.ht.service.server.ServerController</remote>
                   <local-home>com.togosoft.ht.service.server.ServerControllerLocalHome</local-home>
                   <local>com.togosoft.ht.service.server.ServerControllerLocal</local>
                   <ejb-class>com.togosoft.ht.service.server.ServerControllerBean</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
                  
                   <ejb-ref >
                   <ejb-ref-name>ejb/ServerController</ejb-ref-name>
                   <ejb-ref-type>Session</ejb-ref-type>
                   <home>com.togosoft.ht.service.server.ServerControllerHome</home>
                   <remote>com.togosoft.ht.service.server.ServerController</remote>
                   <ejb-link>ServerController</ejb-link>
                   </ejb-ref>
                  
                   </session>


                  • 6. Re: EJB Deployment Failure in Jboss 4.0RC1
                    dev2gosoft Newbie

                    Scott,
                    Sorry I did not understand u,... did u mean the actual jar file or the portion of the deployment descriptor???

                    thanks so much in advance

                    • 7. Re: EJB Deployment Failure in Jboss 4.0RC1
                      Scott Stark Master

                      deployment means that actual jar file causing the problem attached to the bug report at sourceforge.

                      • 8. Re: EJB Deployment Failure in Jboss 4.0RC1
                        dev2gosoft Newbie

                        Scott,
                        I was not able to find an option to add a attachment to the bug report??

                        Am I missing something???

                        • 9. Re: EJB Deployment Failure in Jboss 4.0RC1
                          Scott Stark Master

                          You have to check the box labeled 'Check to Upload and Attach a File:' in order for the attachment to be accepted.

                          • 10. Re: EJB Deployment Failure in Jboss 4.0RC1
                            dev2gosoft Newbie

                            Scott,
                            Thanks for your patience. That case is not opened by me. And there is no option to attach a file to an existing bug report by another user.

                            Hence i have created a new bug report# 1003937 and I have attached a jar file (ht_service.jar) .

                            My sincere thanks to you again for your prompt help