0 Replies Latest reply on May 23, 2013 10:10 AM by cattox

    java.lang.ClassNotFoundException deploying war on JBoss 5.1

    cattox Newbie

      Hi all,

       

      I'm getting an exception while deploying a war on JBoss 1.5.

       

      The exception is java.lang.ClassNotFoundException for org.apache.activemq.spring.ActiveMQConnectionFactory from BaseClassLoader.

       

      From what I know this is related to messaging services, but I'm not using any of these in my war file.

       

      Help please!

       

      the complete stack trace follows:

       

      2013-05-23 09:26:57,487 INFO  [org.jboss.profileservice.management.upload.remoting.DeployHandler] (ResourceContainer.invoker.nonDaemon-2) Begin start, [vfszip:/data/jboss-ewp-5.1/jboss-as-web/server/default/deploy/[myproject].war/]

      2013-05-23 09:27:12,779 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (ResourceContainer.invoker.no2) Error installing to PostClassLoader: name=vfszip:/data/jboss-ewp-5.1/jboss-as-web/server/default/deploy/[myproject].war/ statoader mode=Manual requiredState=PostClassLoader

      org.jboss.deployers.spi.DeploymentException: Cannot process metadata

              at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

              at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:210)

              at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:122)

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)

              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)

              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

              at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.start(AbstractDeployHandler.java:324)

              at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.invoke(AbstractDeployHandler.java:238

              at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)

              at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)

              at org.jboss.remoting.Client.invoke(Client.java:2070)

              at org.jboss.remoting.Client.invoke(Client.java:879)

              at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.ja

              at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.start(StreamingDeploymentTarget.jav

              at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.start(DeploymentProgressImpl.java:232)

              at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:89)

              at org.rhq.plugins.jbossas5.util.DeploymentUtils.run(DeploymentUtils.java:136)

              at org.rhq.plugins.jbossas5.AbstractManagedDeploymentComponent.invokeOperation(AbstractManagedDeploymentComponent.)

              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:597)

              at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)

              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

              at java.util.concurrent.FutureTask.run(FutureTask.java:138)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

              at java.lang.Thread.run(Thread.java:662)

      Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.activemq.spring.ActiveMQConnectionFact BaseClassLoader@5b20c8c6{vfszip:/data/jboss-ewp-5.1/jboss-as-web/server/default/deploy/[myproject].war/}

              at org.jboss.deployers.plugins.annotations.WeakClassLoaderHolder.loadClass(WeakClassLoaderHolder.java:76)

              at org.jboss.deployers.plugins.annotations.AbstractElement.getOwner(AbstractElement.java:73)

              at org.jboss.deployment.OptAnnotationMetaDataDeployer.getClasses(OptAnnotationMetaDataDeployer.java:198)

              at org.jboss.deployment.OptAnnotationMetaDataDeployer.processJBossWebMetaData(OptAnnotationMetaDataDeployer.java:9

              at org.jboss.deployment.OptAnnotationMetaDataDeployer.processMetaData(OptAnnotationMetaDataDeployer.java:70)

              at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:206)

              ... 37 more

      Caused by: java.lang.ClassNotFoundException: org.apache.activemq.spring.ActiveMQConnectionFactory from BaseClassLoader@5b2szip:/data/jboss-ewp-5.1/jboss-as-web/server/default/deploy/[myproject].war/}

              at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:477)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

              at java.lang.Class.forName0(Native Method)

              at java.lang.Class.forName(Class.java:247)

              at org.jboss.deployers.plugins.annotations.WeakClassLoaderHolder.loadClass(WeakClassLoaderHolder.java:72)

              ... 42 more

      2013-05-23 09:27:12,804 INFO  [org.jboss.profileservice.management.upload.remoting.DeployHandlemon-2) Failed to complete command: [start] for deployment: names=[vfszip:/data/jboss-ewp-5.1/...

      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployment

       

       

      *** DEPLOYMENTS IN ERROR: Name -> Error

       

       

      vfszip:/data/jboss-ewp-5.1/jboss-as-web/server/default/deploy/[myproject].war/ -> org.jboss.deployer                            ocess metadata

       

       

       

       

      DEPLOYMENTS IN ERROR:

        Deployment "vfszip:/data/jboss-ewp-5.1/jboss-as-web/server/default/deploy/[myproject].war/" is in                             : java.lang.ClassNotFoundException: org.apache.activemq.spring.ActiveMQConnectionFactory from                             a/jboss-ewp-5.1/jboss-as-web/server/default/deploy/[myproject].war/}

       

       

              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.jav

              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.jav

              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.ja

              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete

              at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.start(Abs

              at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.invoke(Ab

              at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)

              at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.jav

              at org.jboss.remoting.Client.invoke(Client.java:2070)

              at org.jboss.remoting.Client.invoke(Client.java:879)

              at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.invoke(

              at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.start(S

              at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.start(Depl

              at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.run(Deploy

              at org.rhq.plugins.jbossas5.util.DeploymentUtils.run(DeploymentUtils.java:136)

              at org.rhq.plugins.jbossas5.AbstractManagedDeploymentComponent.invokeOperation(Abstrac                            )

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(Resource

              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

              at java.util.concurrent.FutureTask.run(FutureTask.java:138)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

              at java.lang.Thread.run(Thread.java:662)