13 Replies Latest reply on Jan 24, 2013 3:07 AM by Nicklas Karlsson

    Failed to process phase POST_MODULE of subdeployment

    Vivek Mittal Newbie

      Hi,

       

      I am trying to deploy an application on struts in Jboss7 but I get the following errors:

       

       

      13:42:35,098 INFO [org.jboss.modules] (main) JBoss Modules version 1.1.3.GA

      13:42:35,258 INFO [org.jboss.msc] (main) JBoss MSC version 1.0.3.GA

      13:42:35,338 INFO [org.jboss.as] (MSC service thread 1-8) JBAS015899: JBoss AS 7.2.0.Alpha1-SNAPSHOT "Steropes" starting

      13:42:36,223 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found TestProjectEAR.ear in deployment directory. To trigger deployment create a file called TestProjectEAR.ear.dodeploy

      13:42:36,244 INFO [org.xnio] (MSC service thread 1-4) XNIO Version 3.0.7.GA

      13:42:36,244 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)

      13:42:36,254 INFO [org.xnio.nio] (MSC service thread 1-4) XNIO NIO Implementation Version 3.0.7.GA

      13:42:36,264 INFO [org.jboss.remoting] (MSC service thread 1-4) JBoss Remoting version 3.2.13.GA

      13:42:36,299 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

      13:42:36,299 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

      13:42:36,319 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013171: Activating Security Subsystem

      13:42:36,319 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011906: Activating OSGi Subsystem

      13:42:36,344 INFO [org.jboss.as.security] (MSC service thread 1-1) JBAS013170: Current PicketBox version=4.0.15.Final

      13:42:36,344 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

      13:42:36,369 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

      13:42:36,454 INFO [org.jboss.as.connector.logging] (MSC service thread 1-6) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.14.Final)

      13:42:36,514 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 36) JBAS012605: Activated the following JSF Implementations: [1.2, main]

      13:42:36,589 INFO [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service

      13:42:36,844 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      13:42:36,849 INFO [org.jboss.ws.common.management] (MSC service thread 1-6) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.1.1.Final

      13:42:36,854 INFO [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]

      13:42:36,929 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class com.ibm.as400.access.AS400JDBCDriver (version 7.0)

      13:42:37,069 INFO [org.apache.catalina.connector] (MSC service thread 1-5) JBWEB001141: NIO 2 is not available, the java.io connector will be used instead

      13:42:37,109 INFO [org.apache.coyote.http11] (MSC service thread 1-5) JBWEB003001: Coyote HTTP/1.1 initializing on : http-localhost/127.0.0.1:8080

      13:42:37,114 INFO [org.apache.coyote.http11] (MSC service thread 1-5) JBWEB003000: Coyote HTTP/1.1 starting on: http-localhost/127.0.0.1:8080

      13:42:37,169 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "TestProjectEAR.ear"

      13:42:37,169 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) JBAS015012: Started FileSystemDeploymentService for directory C:\Users\invmittal\Downloads\jboss-as-7.2.0.Alpha1-SNAPSHOT\standalone\deployments

      13:42:37,199 INFO [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on 127.0.0.1:9999

      13:42:37,204 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on 127.0.0.1:4447

      13:42:37,229 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "TestProject.war"

      13:42:37,463 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      13:42:37,523 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015850: /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TestProjectEAR.ear/TestProject.war/META-INF/jboss-deployment-structure.xml in subdeployment ignored. jboss-deployment-structure.xml is only parsed for top level deployments.

      13:42:37,528 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015960: Class Path entry commons-beanutils.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TestProjectEAR.ear/TestProject.war/WEB-INF/lib/struts-1.2.7.jar does not point to a valid jar for a Class-Path reference.

      13:42:37,528 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015960: Class Path entry commons-collections.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TestProjectEAR.ear/TestProject.war/WEB-INF/lib/struts-1.2.7.jar does not point to a valid jar for a Class-Path reference.

      13:42:37,528 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015960: Class Path entry commons-digester.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TestProjectEAR.ear/TestProject.war/WEB-INF/lib/struts-1.2.7.jar does not point to a valid jar for a Class-Path reference.

      13:42:37,528 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015960: Class Path entry commons-fileupload.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TestProjectEAR.ear/TestProject.war/WEB-INF/lib/struts-1.2.7.jar does not point to a valid jar for a Class-Path reference.

      13:42:37,528 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015960: Class Path entry commons-logging.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TestProjectEAR.ear/TestProject.war/WEB-INF/lib/struts-1.2.7.jar does not point to a valid jar for a Class-Path reference.

      13:42:37,528 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015960: Class Path entry commons-validator.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TestProjectEAR.ear/TestProject.war/WEB-INF/lib/struts-1.2.7.jar does not point to a valid jar for a Class-Path reference.

      13:42:37,533 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015960: Class Path entry jakarta-oro.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TestProjectEAR.ear/TestProject.war/WEB-INF/lib/struts-1.2.7.jar does not point to a valid jar for a Class-Path reference.

      13:42:37,923 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.subunit."TestProjectEAR.ear"."TestProject.war".POST_MODULE:

      in service jboss.deployment.subunit."TestProjectEAR.ear"."TestProject.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "TestProject.war" of deployment "TestProjectEAR.ear"

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

      My jboss-deployment-structure.xml looks like this:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-deployment-structure>

          <ear-subdeployments-isolated>false</ear-subdeployments-isolated>

          <deployment>

              <dependencies>

                  <module name="TestProject.TestProject.war"/>

              </dependencies>

          </deployment>

      </jboss-deployment-structure>

       

      My application.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
      <application id="Application_ID">
      <display-name>TestProjectEAR</display-name>
      <module id="WebModule_1358927170443">
        <web>
         <web-uri>TestProject.war</web-uri>
         <context-root>TestProject</context-root>
        </web>
      </module>
      </application>

      The o/p for ear -tf is as follows:

      C:\Users\invmittal\Downloads>jar -tf TestProjectEAR.ear
      META-INF/MANIFEST.MF
      TestProject.war
      META-INF/
      META-INF/application.xml

      The structure for my WAR file looks like this:

      Jboss.JPG

      Thanks in advance.

      Vivek

       

       

        • 1. Re: Failed to process phase POST_MODULE of subdeployment
          Nicklas Karlsson Master

          Take out the servlet api jar. Do you need the deployment-structure.xml for anything (especially in the WAR)? Haven't deployed struts on AS7 so I don't know if there are known issues...

          • 2. Re: Failed to process phase POST_MODULE of subdeployment
            Vivek Mittal Newbie

            HI Nicklas,

             

            As suggested I removed the servlet api jar as well deployment-structure.xml.

             

            Still its giving errors:

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

            14:46:05,543 INFO [org.jboss.modules] (main) JBoss Modules version 1.1.3.GA

            14:46:05,693 INFO [org.jboss.msc] (main) JBoss MSC version 1.0.3.GA

            14:46:05,743 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015899: JBoss AS 7.2.0.Alpha1-SNAPSHOT "Steropes" starting

            14:46:06,763 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found TestProjectEAR.ear in deployment directory. To trigger deployment create a file called TestProjectEAR.ear.dodeploy

            14:46:06,784 INFO [org.xnio] (MSC service thread 1-8) XNIO Version 3.0.7.GA

            14:46:06,789 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)

            14:46:06,794 INFO [org.xnio.nio] (MSC service thread 1-8) XNIO NIO Implementation Version 3.0.7.GA

            14:46:06,804 INFO [org.jboss.remoting] (MSC service thread 1-8) JBoss Remoting version 3.2.13.GA

            14:46:06,834 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

            14:46:06,844 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

            14:46:06,854 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

            14:46:06,904 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011906: Activating OSGi Subsystem

            14:46:06,939 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013171: Activating Security Subsystem

            14:46:06,969 INFO [org.jboss.as.security] (MSC service thread 1-5) JBAS013170: Current PicketBox version=4.0.15.Final

            14:46:06,979 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 36) JBAS012605: Activated the following JSF Implementations: [1.2, main]

            14:46:07,049 INFO [org.jboss.ws.common.management] (MSC service thread 1-6) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.1.1.Final

            14:46:07,068 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

            14:46:07,083 INFO [org.jboss.as.connector.logging] (MSC service thread 1-6) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.14.Final)

            14:46:07,143 INFO [org.jboss.as.naming] (MSC service thread 1-6) JBAS011802: Starting Naming Service

            14:46:07,273 INFO [org.jboss.as.mail.extension] (MSC service thread 1-5) JBAS015400: Bound mail session [java:jboss/mail/Default]

            14:46:07,373 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

            14:46:07,408 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class com.ibm.as400.access.AS400JDBCDriver (version 7.0)

            14:46:07,658 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-8) JBAS015012: Started FileSystemDeploymentService for directory C:\Users\invmittal\Downloads\jboss-as-7.2.0.Alpha1-SNAPSHOT\standalone\deployments

            14:46:07,658 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "TestProjectEAR.ear"

            14:46:07,723 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "TestProject.war"

            14:46:07,783 INFO [org.apache.catalina.connector] (MSC service thread 1-7) JBWEB001141: NIO 2 is not available, the java.io connector will be used instead

            14:46:07,799 INFO [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on 127.0.0.1:4447

            14:46:07,804 INFO [org.jboss.as.remoting] (MSC service thread 1-5) JBAS017100: Listening on 127.0.0.1:9999

            14:46:07,819 INFO [org.apache.coyote.http11] (MSC service thread 1-7) JBWEB003001: Coyote HTTP/1.1 initializing on : http-localhost/127.0.0.1:8080

            14:46:07,824 INFO [org.apache.coyote.http11] (MSC service thread 1-7) JBWEB003000: Coyote HTTP/1.1 starting on: http-localhost/127.0.0.1:8080

            14:46:07,949 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015960: Class Path entry commons-beanutils.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TestProjectEAR.ear/TestProject.war/WEB-INF/lib/struts-1.2.7.jar does not point to a valid jar for a Class-Path reference.

            14:46:07,949 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015960: Class Path entry commons-collections.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TestProjectEAR.ear/TestProject.war/WEB-INF/lib/struts-1.2.7.jar does not point to a valid jar for a Class-Path reference.

            14:46:07,954 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015960: Class Path entry commons-digester.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TestProjectEAR.ear/TestProject.war/WEB-INF/lib/struts-1.2.7.jar does not point to a valid jar for a Class-Path reference.

            14:46:07,954 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015960: Class Path entry commons-fileupload.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TestProjectEAR.ear/TestProject.war/WEB-INF/lib/struts-1.2.7.jar does not point to a valid jar for a Class-Path reference.

            14:46:07,964 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015960: Class Path entry commons-logging.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TestProjectEAR.ear/TestProject.war/WEB-INF/lib/struts-1.2.7.jar does not point to a valid jar for a Class-Path reference.

            14:46:07,964 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015960: Class Path entry commons-validator.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TestProjectEAR.ear/TestProject.war/WEB-INF/lib/struts-1.2.7.jar does not point to a valid jar for a Class-Path reference.

            14:46:07,964 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015960: Class Path entry jakarta-oro.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TestProjectEAR.ear/TestProject.war/WEB-INF/lib/struts-1.2.7.jar does not point to a valid jar for a Class-Path reference.14:46:07,999 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

            14:46:08,304 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.subunit."TestProjectEAR.ear"."TestProject.war".POST_MODULE:

            org.jboss.msc.service.StartException

            in service jboss.deployment.subunit."TestProjectEAR.ear"."TestProject.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "TestProject.war" of deployment "TestProjectEAR.ear"

            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(

            DeploymentUnitPhaseService.java:127

            ) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(

            ServiceControllerImpl.java:1811

            ) [jboss-msc-1.0.3.GA.jar:1.0.3.GA]

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(

            ServiceControllerImpl.java:1746

            ) [jboss-msc-1.0.3.GA.jar:1.0.3.GA]

            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(

            ThreadPoolExecutor.java:886

            ) [rt.jar:1.6.0_31]

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(

            ThreadPoolExecutor.java:908

            ) [rt.jar:1.6.0_31]

            at java.lang.Thread.run(

            Thread.java:662

            ) [rt.jar:1.6.0_31]

            Caused by:

            java.lang.RuntimeException

            : JBAS018757: Error getting reflective information for class org.apache.struts.action.ActionServlet with ClassLoader ModuleClassLoader for Module "deployment.TestProjectEAR.ear.TestProject.war:main" from Service Module Loader

            at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(

            DeploymentReflectionIndex.java:72

            ) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(

            MethodAnnotationAggregator.java:58

            )

            at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(

            InterceptorAnnotationProcessor.java:107

            )

            at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(

            InterceptorAnnotationProcessor.java:92

            )

            at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(

            InterceptorAnnotationProcessor.java:77

            )

            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(

            DeploymentUnitPhaseService.java:120

            ) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            ... 5 more

            Caused by: java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter

            at java.lang.Class.getDeclaredFields0(

            Native Method

            ) [rt.jar:1.6.0_31]

            at java.lang.Class.privateGetDeclaredFields(

            Class.java:2291

            ) [rt.jar:1.6.0_31]

            at java.lang.Class.getDeclaredFields(

            Class.java:1743

            ) [rt.jar:1.6.0_31]

            at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(

            ClassReflectionIndex.java:57

            ) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(

            DeploymentReflectionIndex.java:68

            ) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            ... 10 more

            Caused by:

            java.lang.ClassNotFoundException

            : org.apache.commons.beanutils.Converter from [Module "deployment.TestProjectEAR.ear.TestProject.war:main" from Service Module Loader]

            at org.jboss.modules.ModuleClassLoader.findClass(

            ModuleClassLoader.java:190

            ) [jboss-modules.jar:1.1.3.GA]

            at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(

            ConcurrentClassLoader.java:468

            ) [jboss-modules.jar:1.1.3.GA]

            at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(

            ConcurrentClassLoader.java:456

            ) [jboss-modules.jar:1.1.3.GA]

            at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(

            ConcurrentClassLoader.java:423

            ) [jboss-modules.jar:1.1.3.GA]

            at org.jboss.modules.ConcurrentClassLoader.performLoadClass(

            ConcurrentClassLoader.java:398

            ) [jboss-modules.jar:1.1.3.GA]

            at org.jboss.modules.ConcurrentClassLoader.loadClass(

            ConcurrentClassLoader.java:120

            ) [jboss-modules.jar:1.1.3.GA]

            ... 15 more

             

            14:46:08,569 INFO [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "TestProjectEAR.ear"

            14:46:08,569 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

            JBAS014777: Services which failed to start: service jboss.deployment.subunit."TestProjectEAR.ear"."TestProject.war".POST_MODULE:

            org.jboss.msc.service.StartException

            in service jboss.deployment.subunit."TestProjectEAR.ear"."TestProject.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "TestProject.war" of deployment "TestProjectEAR.ear"

             

            14:46:08,584 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management

            14:46:08,584 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

            14:46:08,584 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.2.0.Alpha1-SNAPSHOT "Steropes" started (with errors) in 3376ms - Started 151 of 242 services (2 services failed or missing dependencies, 85 services are passive or on-demand)

             

             

            I think its not able to read the struts related file.. but I have no idea how can this be as the application contains struts jar.

             

            Thanks

            Vivek

            • 3. Re: Failed to process phase POST_MODULE of subdeployment
              Nicklas Karlsson Master

              java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter

               

              add a dep to the AS module (or include your own)

              • 4. Re: Failed to process phase POST_MODULE of subdeployment
                Vivek Mittal Newbie

                Nicklas, could you please help me with how to add a dep to the AS module.

                 

                I have referred various links but am not able to do so.

                 

                Could you please show me the entry for stand-alone.xml and also the module.xml for this entry.

                 

                Regards,

                VIvek

                • 5. Re: Failed to process phase POST_MODULE of subdeployment
                  Nicklas Karlsson Master

                  add a Dependencies:org.apache.commons.beanutils row to the manifest file in the WAR (or through a jboss-deployment-structure.xml in the war)

                   

                  https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7

                  • 6. Re: Failed to process phase POST_MODULE of subdeployment
                    Vivek Mittal Newbie

                    Hi NIcklas,

                     

                    I added the dependency in the jboss-deployment-structure.xml as:

                    <?xml version="1.0" encoding="UTF-8"?>
                    <jboss-deployment-structure>
                        <ear-subdeployments-isolated>false</ear-subdeployments-isolated>
                        <deployment>
                            <dependencies>
                                <module name="TestProjectEAR.TestProject.war"/>
                            </dependencies>
                        </deployment>
                    </jboss-deployment-structure>

                     

                    In the JBOSS_HOME/modules I have created the following :

                     

                    modules.xml:

                    <?xml version="1.0" encoding="UTF-8"?>
                    <module xmlns="urn:jboss:module:1.0"
                    name="TestProjectEAR.TestProject.war">
                    <resources>
                    <resource-root path="struts-1.2.7.jar"/>
                    <resource-root path="commons-beanutils.jar"/>
                    </resources>
                    <dependencies>
                    <module name="javax.api"/>
                    <module name="javax.transaction.api"/>
                    </dependencies>
                    </module>

                     

                    have added the jars: struts-1.2.7.jar, commons-beanutils.jar 

                     

                    Jboss2.JPG

                     

                    But getting the following errors:

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                    12:12:51,542 INFO [org.jboss.modules] (main) JBoss Modules version 1.1.3.GA

                    12:12:51,744 INFO [org.jboss.msc] (main) JBoss MSC version 1.0.3.GA

                    12:12:51,804 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015899: JBoss AS 7.2.0.Alpha1-SNAPSHOT "Steropes" starting

                    12:12:52,784 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found TestProjectEAR.ear in deployment directory. To trigger deployment create a file called TestProjectEAR.ear.dodeploy

                    12:12:52,810 INFO [org.xnio] (MSC service thread 1-8) XNIO Version 3.0.7.GA

                    12:12:52,810 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)

                    12:12:52,815 INFO [org.xnio.nio] (MSC service thread 1-8) XNIO NIO Implementation Version 3.0.7.GA

                    12:12:52,825 INFO [org.jboss.remoting] (MSC service thread 1-8) JBoss Remoting version 3.2.13.GA

                    12:12:52,870 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

                    12:12:52,885 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

                    12:12:52,890 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011906: Activating OSGi Subsystem

                    12:12:52,895 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013171: Activating Security Subsystem

                    12:12:52,895 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

                    12:12:52,900 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

                    12:12:52,925 INFO [org.jboss.as.naming] (MSC service thread 1-6) JBAS011802: Starting Naming Service

                    12:12:52,935 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 36) JBAS012605: Activated the following JSF Implementations: [1.2, main]

                    12:12:52,945 INFO [org.jboss.as.security] (MSC service thread 1-3) JBAS013170: Current PicketBox version=4.0.15.Final

                    12:12:53,030 INFO [org.jboss.as.mail.extension] (MSC service thread 1-6) JBAS015400: Bound mail session [java:jboss/mail/Default]

                    12:12:53,030 INFO [org.jboss.as.connector.logging] (MSC service thread 1-7) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.14.Final)

                    12:12:53,350 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

                    12:12:53,445 INFO [org.jboss.ws.common.management] (MSC service thread 1-8) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.1.1.Final

                    12:12:53,475 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class com.ibm.as400.access.AS400JDBCDriver (version 7.0)

                    12:12:53,620 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-7) JBAS015012: Started FileSystemDeploymentService for directory C:\Users\invmittal\Downloads\jboss-as-7.2.0.Alpha1-SNAPSHOT\standalone\deployments

                    12:12:53,625 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "TestProjectEAR.ear"

                    12:12:53,690 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "TestProject.war"

                    12:12:53,980 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.module.service."deployment.TestProjectEAR.ear".main:

                    12:15:31,866 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.module.service."deployment.TestProjectEAR.ear".main:

                    org.jboss.msc.service.StartException in service jboss.module.service."deployment.TestProjectEAR.ear".main: JBAS018759: Failed to load module: deployment.TestProjectEAR.ear:main

                    at org.jboss.as.server.moduleservice.ModuleLoadService.start(

                    ModuleLoadService.java:92) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(

                    ServiceControllerImpl.java:1811) [jboss-msc-1.0.3.GA.jar:1.0.3.GA]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(

                    ServiceControllerImpl.java:1746) [jboss-msc-1.0.3.GA.jar:1.0.3.GA]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(

                    ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(

                    ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]

                    at java.lang.Thread.run(

                    Thread.java:662) [rt.jar:1.6.0_31]

                    Caused by:

                    org.jboss.modules.ModuleNotFoundException: Module TestProjectEAR.TestProject.war:main is not found in local module loader @1d807ca8 (roots: C:\Users\invmittal\Downloads\jboss-as-7.2.0.Alpha1-SNAPSHOT\modules)

                    at org.jboss.modules.LocalModuleLoader.findModule(

                    LocalModuleLoader.java:126) [jboss-modules.jar:1.1.3.GA]

                    at org.jboss.modules.ModuleLoader.loadModuleLocal(

                    ModuleLoader.java:275) [jboss-modules.jar:1.1.3.GA]

                    at org.jboss.modules.ModuleLoader.preloadModule(

                    ModuleLoader.java:222) [jboss-modules.jar:1.1.3.GA]

                    at org.jboss.modules.LocalModuleLoader.preloadModule(

                    LocalModuleLoader.java:94) [jboss-modules.jar:1.1.3.GA]

                    at org.jboss.modules.ModuleLoader.preloadExportedModule(

                    ModuleLoader.java:233) [jboss-modules.jar:1.1.3.GA]

                    at org.jboss.modules.ModuleLoader.preloadModule(

                    ModuleLoader.java:246) [jboss-modules.jar:1.1.3.GA]

                    at org.jboss.as.server.moduleservice.ServiceModuleLoader.preloadModule(

                    ServiceModuleLoader.java:145) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

                    at org.jboss.modules.Module.addPaths(

                    Module.java:851) [jboss-modules.jar:1.1.3.GA]

                    at org.jboss.modules.Module.link(

                    Module.java:1206) [jboss-modules.jar:1.1.3.GA]

                    at org.jboss.modules.Module.relinkIfNecessary(

                    Module.java:1235) [jboss-modules.jar:1.1.3.GA]

                    at org.jboss.modules.ModuleLoader.loadModule(

                    ModuleLoader.java:208) [jboss-modules.jar:1.1.3.GA]

                    at org.jboss.as.server.moduleservice.ModuleLoadService.start(

                    ModuleLoadService.java:71) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

                    ... 5 more

                     

                    12:12:54,211 INFO [org.apache.catalina.connector] (MSC service thread 1-7) JBWEB001141: NIO 2 is not available, the java.io connector will be used instead

                    12:12:54,236 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on 127.0.0.1:4447

                    12:12:54,251 INFO [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on 127.0.0.1:9999

                    12:12:54,271 INFO [org.apache.coyote.http11] (MSC service thread 1-7) JBWEB003001: Coyote HTTP/1.1 initializing on : http-localhost/127.0.0.1:8080

                    12:12:54,271 INFO [org.apache.coyote.http11] (MSC service thread 1-7) JBWEB003000: Coyote HTTP/1.1 starting on: http-localhost/127.0.0.1:8080

                    12:12:54,391 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]12:12:54,656 INFO [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "TestProjectEAR.ear"

                    12:12:54,656 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

                    JBAS014777: Services which failed to start: service jboss.module.service."deployment.TestProjectEAR.ear".main:

                     

                    org.jboss.msc.service.StartException

                    in service jboss.module.service."deployment.TestProjectEAR.ear".main: JBAS018759: Failed to load module: deployment.TestProjectEAR.ear:main

                     

                    12:12:54,671 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management

                    12:12:54,676 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

                    12:12:54,676 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.2.0.Alpha1-SNAPSHOT "Steropes" started (with errors) in 3479ms - Started 145 of 236 services (2 services failed or missing dependencies, 85 services are passive or on-demand)

                     

                     

                     

                    Coud you please help me get past these errors.

                     

                    Thanks

                    Vivek

                    • 7. Re: Failed to process phase POST_MODULE of subdeployment
                      Nicklas Karlsson Master

                      Don't use dots in the module name since there it's a hierarchy marker.

                      • 8. Re: Failed to process phase POST_MODULE of subdeployment
                        Vivek Mittal Newbie

                        Hi Nicklas,

                         

                        I did make the changes by removing the dot from module-name...

                         

                        <?xml version="1.0" encoding="UTF-8"?>
                        <jboss-deployment-structure>
                            <deployment>
                                 <dependencies>
                                      <module name="TestProjectEAR.TestProject" />
                                </dependencies>
                            </deployment>
                        </jboss-deployment-structure>

                         

                        but again I am getting errors:

                         

                        12:44:05,269 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/TestProject]] (ServerService Thread Pool -- 51) JBWEB000289: Servlet action threw load() exception: java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet from [Module "deployment.TestProjectEAR.ear.TestProject.war:main" from Service Module Loader]
                        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.3.GA]
                        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.3.GA]
                        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.3.GA]
                        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.3.GA]
                        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.3.GA]
                        at org.jboss.as.web.deployment.WebInjectionContainer.newInstance(WebInjectionContainer.java:74) [jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
                        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1154) [jbossweb-7.2.0.Beta1.jar:7.2.0.Beta1]
                        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1100) [jbossweb-7.2.0.Beta1.jar:7.2.0.Beta1]
                        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3591) [jbossweb-7.2.0.Beta1.jar:7.2.0.Beta1]
                        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3798) [jbossweb-7.2.0.Beta1.jar:7.2.0.Beta1]
                        at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
                        at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
                        at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
                        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_31]
                        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_31]
                        at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_31]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
                        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
                        at org.jboss.threads.JBossThread.run(JBossThread.java:122)

                         

                        • 9. Re: Failed to process phase POST_MODULE of subdeployment
                          Nicklas Karlsson Master

                          And where is the jboss-deployment-structure.xml now?

                          • 10. Re: Failed to process phase POST_MODULE of subdeployment
                            Vivek Mittal Newbie

                            well the above one was the content of the jboss-deployment-structure.xml which is present inside the EAR-> META-INF.

                             

                            the entry for the module.xml is:

                            <?xml version="1.0" encoding="UTF-8"?>
                            <module xmlns="urn:jboss:module:1.1" name="TestProjectEAR.TestProject">
                                   <resources>
                                       <resource-root path="struts-1.2.7.jar"/>
                                       <resource-root path="commons-beanutils.jar"/>
                                   </resources>
                            </module>

                            • 11. Re: Failed to process phase POST_MODULE of subdeployment
                              Nicklas Karlsson Master

                              Try putting it into the war (not sure if the deps propagate from ear to war)

                              • 12. Re: Failed to process phase POST_MODULE of subdeployment
                                Vivek Mittal Newbie

                                no luck....

                                 

                                if you have any demo stucture with you, can you please share the same

                                • 13. Re: Failed to process phase POST_MODULE of subdeployment
                                  Nicklas Karlsson Master

                                  if you add export="true" on the module you might get it to propagate from the ear version. Or use sub-deployment. Haven't really had to use the xml file, I've gotten away with a simple manifest version in the war...