2 Replies Latest reply on Feb 10, 2012 3:30 AM by andilog

    JBoss7.1CR1b Failed to start service jboss.deployment.unit (on Migration)

    andilog

      Hello everyone.

       

      I am migrating an application, which was created by another person and it is running on JBoss 4.2.

      I only have to get the copy of the application running on JBoss 7.1.

      I am new to JBoss, but hope to learn more

      I have set up a new settings file (cope of standalone-full.xml, to make sure all services are loaded) and created a database connection, which is tested and is working.

      Now I have a problem I cant solve. Here is the copy of the EClipse console output:

      12:57:45,360 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:/postgresDS]

      12:57:45,360 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      12:57:45,548 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-2) JBAS010406: Registered connection factory java:/JmsXA

      12:57:45,548 INFO  [org.hornetq.ra.HornetQResourceAdapter] (MSC service thread 1-2) HornetQ resource adaptor started

      12:57:45,548 INFO  [org.jboss.as.connector.services.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-2) IJ020002: Deployed: file://RaActivatorhornetq-ra

      12:57:45,564 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-2) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]

      12:57:45,736 INFO  [org.jboss.as] (Controller Boot Thread) JBoss AS 7.1.0.CR1b "Flux Capacitor" started in 14795ms - Started 161 of 232 services (68 services are passive or on-demand)

      12:58:49,986 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting deployment of "fournisseurs_web_7.1.war"

      12:58:56,612 INFO  [org.jboss.jpa] (MSC service thread 1-2) JBAS011401: Read persistence.xml for punit

      12:58:57,647 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."fournisseurs_web_7.1.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."fournisseurs_web_7.1.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "fournisseurs_web_7.1.war"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_23]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_23]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_23]

      Caused by: java.lang.RuntimeException: Error getting reflective information for class com.davidjc.ajaxfileupload.views.jsp.ui.ProgressBarTag with ClassLoader ModuleClassLoader for Module "deployment.fournisseurs_web_7.1.war:main" from Service Module Loader

          at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]

          at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)

          at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:70)

          at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:117)

          at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]

          ... 5 more

      Caused by: java.lang.NoClassDefFoundError: Lorg/apache/log4j/Logger;

          at java.lang.Class.getDeclaredFields0(Native Method) [:1.6.0_23]

          at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [:1.6.0_23]

          at java.lang.Class.getDeclaredFields(Class.java:1743) [:1.6.0_23]

          at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]

          at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]

          ... 10 more

      Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger from [Module "deployment.fournisseurs_web_7.1.war:main" from Service Module Loader]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

          ... 15 more

       

      12:58:57,647 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015856: Undeploy of deployment "fournisseurs_web_7.1.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"fournisseurs_web_7.1.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"fournisseurs_web_7.1.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"fournisseurs_web_7.1.war\""}}

      12:58:57,663 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."fournisseurs_web_7.1.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."fournisseurs_web_7.1.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "fournisseurs_web_7.1.war"

       

      12:58:57,668 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"fournisseurs_web_7.1.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"fournisseurs_web_7.1.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"fournisseurs_web_7.1.war\""}}}}

      12:58:57,872 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Stopped deployment fournisseurs_web_7.1.war in 208ms

       

       

      It seems to me like the application has a "WebService", which cant start...

      I couldnt find anything on forum, although there is some similar stuff.

      I have tryed to do a few things, but it didnt help. I have no idea what to do next, how to find where the problem is and how to fix it.

      Would be very thankfull, if someone could help.

       

      I have created a report with tattletale which shows the archives used by the application (if it helps):

      Archives

      Is there any further information i can provide for you, which would help you to help me?