6 Replies Latest reply on May 28, 2013 2:22 AM by Stephen Coy

    Jboss deployment issue

    Vivek Mittal Newbie

      Hi Experts,

       

      I am trying to deploy an EAR file in JBoss AS7, but I am getting issues.

       

      My project structure looks like:

       

      TEST
      |_______TestEjb (Session EJB's)
      |_______TestWebService (Webservice)
      |_______TestJava (Java Project)


      TestEjb is depenedent on TESTJava
      TestWebService is depenedent on TESTJava, TestEjb
      TESTJava is depenedent on TestWebService

       

       

      Can some one please help me by providing a jboss-depoyment-structure.xml?

       

      Current jboss-depoyment-structure.xml, I have:

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

      <jboss-deployment-structure>

         <deployment>

           <exclusions/>

           <dependencies>

        <module name="deployment.TEST.ear.TESTEJB.jar" />

        <module name="deployment.TEST.ear.TESTWebService.war" />

      </dependencies>

         </deployment>

         <sub-deployment name="TESTEJB.jar">

           <exclusions/>

         </sub-deployment>

          <sub-deployment name="TESTWebService.war">

           <exclusions/>

         </sub-deployment>

      </jboss-deployment-structure>

       

      =======================================================================

      Output of the jar -tf TEST.ear

       

      META-INF/MANIFEST.MF

      TESTWebService.war

      Common.jar

      TESTEJB.jar

      .compatibility

      .server

      META-INF/

      META-INF/.modulemaps

      META-INF/application.xml

      META-INF/ibm-application-ext.xmi

      META-INF/jboss-deployment-structure.xml

      config/

      config/test.properties

      lib/

      lib/ThirdPartyAcknowledgments.txt

      lib/commons-beanutils.jar

      lib/commons-collections-3.1.jar

      lib/commons-lang-2.3.jar

      lib/commons-logging-1.1.1.jar

      lib/dozer-5.3.2.jar

      lib/ehcache.jar

      lib/jasonpell.jar

      lib/jaxp-api-1.4.jar

      lib/jdom.jar

      lib/jsr173_1.0_api.jar

      lib/jt400ssl.jar

      lib/log4j.jar

      lib/slf4j-api-1.6.4.jar

      lib/slf4j-log4j12-1.6.4.jar

      lib/xbean.jar

      lib/xmlbeans-2.2.0.jar

      releaseNotes/

      releaseNotes/releaseNotes.txt

       

      =========================================================================

      Also I am getting the following errors:

      18:16:00,204 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found TEST.ear in deployment directory. To trigger deployment create a file called TEST.ear.dodeploy

      18:16:53,243 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "TEST.ear"

      18:16:59,370 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry ../lib/xerces.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/lib/jdom.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,371 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry xerces.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/lib/jdom.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,372 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry jasonpell.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,372 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry jt400ssl.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,373 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry ehcache.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,373 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry jdom.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,373 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry commons-lang-2.3.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,373 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry log4j.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,374 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry xbean.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,374 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry jsr173_1.0_api.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,374 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry commons-beanutils.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,374 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry dozer-5.3.2.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,375 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry slf4j-api-1.6.4.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,375 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry slf4j-log4j12-1.6.4.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,376 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "TESTWebService.war"

      18:16:59,376 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "TESTEJB.jar"

      18:16:59,882 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015960: Class Path entry TESTJava.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/TESTWebServiceWeb.war  does not point to a valid jar for a Class-Path reference.

      18:16:59,912 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$App' for service type 'javax.ws.rs.ext.MessageBodyReader'

      18:16:59,912 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$Text' for service type 'javax.ws.rs.ext.MessageBodyReader'

      18:16:59,912 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General' for service type 'javax.ws.rs.ext.MessageBodyReader'

      18:16:59,921 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeFromStringEnum' for service type 'com.sun.jersey.spi.StringReaderProvider'

      18:16:59,921 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeValueOf' for service type 'com.sun.jersey.spi.StringReaderProvider'

      18:16:59,921 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeFromString' for service type 'com.sun.jersey.spi.StringReaderProvider'

      18:16:59,921 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$StringConstructor' for service type 'com.sun.jersey.spi.StringReaderProvider'

      18:16:59,922 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$DateProvider' for service type 'com.sun.jersey.spi.StringReaderProvider'

      18:16:59,922 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.JAXBStringReaderProviders$RootElementProvider' for service type 'com.sun.jersey.spi.StringReaderProvider'

      18:17:00,490 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.subunit."TEST.ear"."TESTEJB.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."TEST.ear"."TESTEJB.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "TESTEJB.jar" of deployment "TEST.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 ws.com.catalogueejb.SearchBean with ClassLoader ModuleClassLoader for Module "deployment.TEST.ear.TESTEJB.jar: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

      18:17:00,708 ERROR [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "TEST.ear" was rolled back with the following failure message:

      {"JBAS014671: Failed services" => {

          "jboss.deployment.subunit.\"TEST.ear\".\"TESTWebService.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"TEST.ear\".\"TESTWebService.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment \"TESTWebService.war\" of deployment \"TEST.ear\"

          Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class ws.com.webservices.changepassword.ChangePasswordSoapBindingImpl with ClassLoader ModuleClassLoader for Module \"deployment.TEST.ear.TESTWebService.war:main\" from Service Module Loader

          Caused by: java.lang.NoClassDefFoundError: ws/com/exception/UserManagerException

      18:17:00,747 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment TESTWebServiceWeb.war in 38ms

      18:17:00,747 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment TESTEJB.jar in 39ms

      18:17:00,973 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment TEST.ear in 265ms

       

      Please help me in getting this deployed.