2 Replies Latest reply on Jul 24, 2002 11:48 AM by Arvind

    jboss-2.4.6_Tomcat-4.0.3   + EJB

    Arvind Newbie

      When I deploy a simple EJB ,later to be used by my webservice I get the following errors

      [INFO,J2eeDeployer] Create application SparePartPriceEJB.jar
      [INFO,J2eeDeployer] install EJB module SparePartPriceEJB.jar
      [INFO,ContainerFactory] Deploying:file:/C:/Java/JBoss-2.4.6_Tomcat-4.0.3/jboss/t
      mp/deploy/Default/SparePartPriceEJB.jar
      [ERROR,ContainerFactory] Verify failure
      java.lang.NoClassDefFoundError: javax/ejb/SessionBean
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11


      The javax.ejb.SessionBean etc classes are located in jboss-j2ee.jar, which is located in jboss-2.4.6_Tomcat-4.0.3\jboss\lib\ext directroy.Isn't this supposed to be discoverd by Jboss-Tomcat automatically?.

      Anyway ,I tried setting this in classsapth in run-with-catalina.bat file.Doing this gets rid of the above exception,but gives me


      [INFO,ContainerFactory] Deploying SparePartPriceSessionBean
      [ERROR,Proxies] unexpected error
      java.lang.NoClassDefFoundError: org/jboss/proxy/Proxies$ProxyTarget
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
      at org.jboss.proxy.ProxyCompiler$Runtime.makeProxyType(ProxyCompiler.jav
      a:160)
      at org.jboss.proxy.ProxyCompiler.(ProxyCompiler.java:25)
      at org.jboss.proxy.Proxies$Impl.makeProxyConstructor(Proxies.java:675)
      at org.jboss.proxy.Proxies$Impl.newTarget(Proxies.java:550)


      Then I tried adding all the jars in jboss-2.4.6_Tomcat-4.0.3\jboss\lib\ext directroy , then i got the following error

      [ERROR,AutoDeployer] DeploymentInfo failed:file:/C:/Java/JBoss-2.4.6_Tomcat-4.0.
      3/jboss/deploy/webtest.ear
      java.lang.NullPointerException
      at org.jboss.deployment.J2eeDeployer.installApplication(J2eeDeployer.jav
      a:409)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:185)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16


      It has been very frustarting.Any suggestions or ideas.

      Thanks,

      Arvind


        • 1. Re: jboss-2.4.6_Tomcat-4.0.3   + EJB
          Joel Vogt Master

          well for a start you shouldn't need anything on your classpath (Except tools.jar which should be set automgically if you have JAVA_HOME set) this will cause quite a few problems for you.

          So clean this out, and if possible go back to a fresh jboss install. Let me know if you get back to the original error

          • 2. Re: jboss-2.4.6_Tomcat-4.0.3   + EJB
            Arvind Newbie

            I did cleanup everything from my startup batch files run-with-catlania.bat.Everything starts fine, but the problem is that I have Axis integrated with jboss-2.4.6_Tomcat-4.0.3.So when I try to look for services using
            http://localhost:8080/axis/services
            I get following error
            java.lang.NoClassDefFoundError: javax/xml/soap/SOAPElement
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:488)

            To get rid of the above error and to be able to list the services, I have to add following line to the run-with-catalina.bat file
            set JBOSS_CLASSPATH=C:\Java\jboss-2.4.6_Tomcat-4.0.3\Catalina\webapps\axis\WEB-INF\classes

            Once I add this and startup jboss-2.4.6_Tomcat-4.0.3 I am bale to list my webservices and get wsdl using URL,but Iget following error during startup


            [ERROR,ContainerFactory] Verify failure
            java.lang.NoClassDefFoundError: javax/ejb/SessionBean
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
            1)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
            at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
            at org.jboss.verifier.strategy.EJBVerifier11.verifySessionBean(EJBVerifi
            er11.java:519)
            at org.jboss.verifier.strategy.EJBVerifier11.checkSession(EJBVerifier11.
            java:93)
            at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:134)
            at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:452)
            at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:370)
            at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:307)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)

            at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:
            459)
            at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
            at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
            at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)

            at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103
            )
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Conf
            igurationService.java:967)
            at $Proxy0.start(Unknown Source)
            at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.Main.(Main.java:208)
            at org.jboss.Main$1.run(Main.java:110)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.jboss.Main.main(Main.java:106)
            [INFO,ContainerFactory] Deploying SparePartPriceSessionBean
            [ERROR,J2eeDeployer] Starting SparePartPriceEJB.jar failed!
            java.lang.NoClassDefFoundError: javax/ejb/EJBHome
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
            1)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
            at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
            at org.jboss.ejb.StatelessSessionContainer.init(StatelessSessionContaine
            r.java:147)
            at org.jboss.ejb.Application.init(Application.java:204)
            at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:373)
            at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:307)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)

            at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:
            459)
            at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
            at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
            at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)

            at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103
            )
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Conf
            igurationService.java:967)
            at $Proxy0.start(Unknown Source)
            at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.Main.(Main.java:208)
            at org.jboss.Main$1.run(Main.java:110)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.jboss.Main.main(Main.java:106)
            [INFO,J2eeDeployer] Module SparePartPriceEJB.jar is not running
            [INFO,J2eeDeployer] Destroying application SparePartPriceEJB.jar
            [ERROR,AutoDeployer] DeploymentInfo failed:file:/C:/Java/JBoss-2.4.6_Tomcat-4.0.
            3/jboss/deploy/SparePartPriceEJB.jar
            org.jboss.deployment.J2eeDeploymentException: Error while starting SparePartPric
            eEJB.jar: javax/ejb/EJBHome, Cause: java.lang.NoClassDefFoundError: javax/ejb/EJ
            BHome
            at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:524)

            at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:
            459)
            at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
            at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
            at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)

            at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103
            )
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Conf
            igurationService.java:967)
            at $Proxy0.start(Unknown Source)
            at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.Main.(Main.java:208)
            at org.jboss.Main$1.run(Main.java:110)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.jboss.Main.main(Main.java:106)


            What is causing this problem.How do you overcome this?


            Thanks.

            Arvind