0 Replies Latest reply on Feb 26, 2009 8:02 AM by Greg Akins

    Deploying Jboss

    Greg Akins Newbie

      I'm getting an error while starting JBoss 4.2.3 and am not sure how to troubleshoot from here. Any help would be greatly appreciated.

      Jboss 4.2.3 on Mac OS X 10.5 using Java 1.5. I've included Jbossws-native as well.

      I have run Jboss successfully with my ear file deployed in server/default

      My application requires javax.xml.rpc.Service. Under JBoss 4.2.0, I used axis11.jar, but I'm not having luck deploying that under JBoss 4.2.3, and from a Google search it appears I should move to JBossWS.

      So, I included jboss-jaxrpc.jar which includes the class I need. Then I started getting subsequent NoClassDefFoundErrors. I also included jboss-commons.jar

      My classpath is listed below.

      The error I'm at now is listed in the stacktrace below. Note that it doesn't tell me what class it's not finding.


      07:34:40,147 INFO [Server] Core system initialized
      07:34:40,239 ERROR [MainDeployer] Could not initialise deployment: file:/towercare/jboss-4.2.3.GA/server/default/conf/jboss-service.xml
      java.lang.NoClassDefFoundError
       at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:623)
       at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)
       at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
       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:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
       at org.jboss.Main.boot(Main.java:200)
       at org.jboss.Main$1.run(Main.java:508)
       at java.lang.Thread.run(Thread.java:613)
      Failed to boot JBoss:
      org.jboss.deployment.DeploymentException: Could not initialise deployment: file:/towercare/jboss-4.2.3.GA/server/default/conf/jboss-service.xml; - nested throwable: (java.lang.NoClassDefFoundError)
       at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:814)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
       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:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
       at org.jboss.Main.boot(Main.java:200)
       at org.jboss.Main$1.run(Main.java:508)
       at java.lang.Thread.run(Thread.java:613)
      Caused by: java.lang.NoClassDefFoundError
       at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:623)
       at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)
       at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
       ... 18 more
      07:34:40,249 INFO [Server] Runtime shutdown hook called, forceHalt: true
      07:34:40,250 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
      07:34:40,254 INFO [Server] Shutdown complete
      Shutdown complete
      Halting VM
      


      CLASSPATH: :/towercare/jboss-4.2.3.GA/server/default/lib/log4j.jar:/towercare/jboss-4.2.3.GA/lib/jboss-common.jar:/towercare/jboss-4.2.3.GA/server/default/lib/servlet-api.jar:/towercare/jboss-4.2.3.GA/server/default/lib/activation.jar:/towercare/jboss-4.2.3.GA/server/default/lib/mail.jar:/towercare/jboss-4.2.3.GA/server/default/lib/mail-plugin.jar:/towercare/jboss-4.2.3.GA/server/default/lib/jboss-jaxrpc.jar:/towercare/jboss-4.2.3.GA/server/default/lib/tc/commons-fileupload-1.2.jar:/towercare/jboss-4.2.3.GA/server/default/lib/tc/mysql-connector-java-3.0.15-ga-bin.jar:/towercare/jboss-4.2.3.GA/server/default/lib/tc/pri.jar:/towercare/jboss-4.2.3.GA/bin/run.jar