4 Replies Latest reply on Feb 4, 2009 11:39 PM by kgreen169

    Error when starting Jboss after deploying jbossws

      I just installed jboss 4.2.3 and deployed jbossws-native-3.0.5.GA. When I start jboss by calling %JBOSS_HOME%/bin/run I get multiple errors. I did try one thing since it looks like some jar files are not in the classpath. I copied jaxb_api.jar, jboss-jaxrpc.jar, jboss-jaxws.jar, jboss-saaj.jar from client to lib/endorsed (or maybe the other way around) because I read that some where.

      Anyway if you could look at these error and let me know if you know what the problem is, I would much appreciate it. I just took a few lines from each error.

      thanks for your time Kay

      
      2009-01-27 04:37:40,283 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/C:/jboss/jboss-4.2.3.GA/server/default/deploy/jbossws.sar/
      java.lang.NoClassDefFoundError: javax/ejb/Stateless
       at org.jboss.ejb3.EJB3Util.isStateless(EJB3Util.java:42)
       at org.jboss.ejb3.EJB3Deployer.hasEjbAnnotation(EJB3Deployer.java:219)
       at org.jboss.ejb3.EJB3Deployer.accepts(EJB3Deployer.java:271)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      
      
      
       2009-01-27 04:37:43,548 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Using session cookies default setting
       2009-01-27 04:37:44,006 ERROR [org.apache.tomcat.util.modeler.Registry] Null component jboss.web:type=JspMonitor,name=jsp,WebModule=//localhost/,J2EEApplication=none,J2EEServer=none
       2009-01-27 04:37:44,011 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method addChild
       java.lang.NoClassDefFoundError: javax/annotation/Resource
       at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:158)
       at
      
       at java.lang.Thread.run(Thread.java:595)
       2009-01-27 04:37:44,477 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method init
       javax.management.RuntimeErrorException: Error invoking method addChild
       at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:307)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
      
       2009-01-27 04:37:45,353 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/C:/jboss/jboss-4.2.3.GA/server/default/deploy/jboss-web.deployer/ROOT.war/
       org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.management.RuntimeOperationsException: Exception invoking method init)
       at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:384)
       at org.jboss.web.WebModule.startModule(WebModule.java:83)
       at org.jboss.web.WebModule.startService(WebModule.java:61)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at
      
       2009-01-27 04:37:45,804 ERROR [org.jboss.deployment.MainDeployer] DeploymentException while trying to deploy a package with a new deployer
       org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.management.RuntimeOperationsException: Exception invoking method init)
       at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:384)
       at org.jboss.web.WebModule.startModule(WebModule.java:83)
       at org.jboss.web.WebModule.startService(WebModule.java:61)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org
      
       2009-01-27 04:37:46,346 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Using session cookies default setting
       2009-01-27 04:37:46,428 ERROR [org.apache.tomcat.util.modeler.Registry] Null component jboss.web:type=JspMonitor,name=jsp,WebModule=//localhost/invoker,J2EEApplication=none,J2EEServer=none
       2009-01-27 04:37:46,432 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method addChild
       java.lang.NoClassDefFoundError: javax/annotation/Resource
       at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:158)
       at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:73)
       at
      
       2009-01-27 04:37:46,844 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method init
       javax.management.RuntimeErrorException: Error invoking method addChild
       at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:307)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
      
       2009-01-27 04:37:47,732 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/C:/jboss/jboss-4.2.3.GA/server/default/deploy/http-invoker.sar/invoker.war/
       org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.management.RuntimeOperationsException: Exception invoking method init)
       at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:384)
       at org.jboss.web.WebModule.startModule(WebModule.java:83)
       at org.jboss.web.WebModule.startService(WebModule.java:61)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.
      
       2009-01-27 04:37:48,698 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Using session cookies default setting
       2009-01-27 04:37:48,780 ERROR [org.apache.tomcat.util.modeler.Registry] Null component jboss.web:type=JspMonitor,name=jsp,WebModule=//localhost/jbossmq-httpil,J2EEApplication=none,J2EEServer=none
       2009-01-27 04:37:48,896 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method addChild
       java.lang.NoClassDefFoundError: javax/annotation/Resource
       at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:158)
       at
      
       009-01-27 04:37:51,271 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Using session cookies default setting
       2009-01-27 04:37:51,490 ERROR [org.apache.tomcat.util.modeler.Registry] Null component jboss.web:type=JspMonitor,name=jsp,WebModule=//localhost/juddi,J2EEApplication=none,J2EEServer=none
       2009-01-27 04:37:51,494 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method addChild
       java.lang.NoClassDefFoundError: javax/annotation/Resource
       at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:158)
       at
      




        • 1. Re: Error when starting Jboss after deploying jbossws
          peterj

          Which binary of 4.2.3 did you download, the one for JDK6 or the one for JDK5? And which JDK are you using? This error could be the result of downloading the JDK6 binary for JBoss AS and running with JDK5.

          • 2. Re: Error when starting Jboss after deploying jbossws

            Thanks Peter for the response. It could be that I downloaded the incorrect binary. I will look when I get home tonight. I am using with JDK5 because I am using this to go through a turtorial for work and I know that we will be on JKD5.

            I see on the web site for down loads that is a file jboss-4.2.3.GA.zip. Is this the JDK 5 version. I am on Windows Vista instead of unix. :-((

            • 3. Re: Error when starting Jboss after deploying jbossws
              peterj

              Yes, that is the one for jdk5. It would have been nice if they labeled both downloads, but they didn't.

              I feel your pain. On my desktop and laptop at home I am running Vista (at work I run XP - our hardware is so old it doesn't support Vista.)

              One other thought - where did you install JDK 5? The installer wants to put it into Program Files. Don't let it! Spaces in the path can confuse certain Java libraries. I installed mine at c:\apps\Java\jdk-1.5.0_16. If you installed into Program Files, you do not have to uninstall and reinstall - instead simply move the jdk-1.5.0_xx directory elsewhere and change JAVA_HOME to the new location.

              • 4. Re: Error when starting Jboss after deploying jbossws

                Peter, not sure if you are still looking at this topic. i just wanted to thank you. Downloading the JDK5 version of jboss and not it works fine
                thanks again