6 Replies Latest reply on Jul 5, 2012 4:27 AM by Hari Kishore Yecharla

    How to write the jboss-deployment-structure.xml file

    Hari Kishore Yecharla Newbie

      Here I am mention my jboss-deployment-structure.xml file but I am getting sub

      {code}

      -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">

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

                <deployment>

                   <exclusions>

                        <module name="org.apache.log4j" />

                   </exclusions>

                </deployment>

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

                  <dependencies>

                      <system>

                          <paths>

                              <path name="com/sun/ssl/internal/ssl"/>

                              <path name="com/myjars/jfreechart"/>

                              <path name="com/myjars/jcommon"/>

                          </paths>

                      </system>

                  </dependencies>

               </sub-deployment>

      </jboss-deployment-structure>

      -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      Earlier I got the error message for those third party jar files. Now I am not getting the errors but the war is not deploying.

       

      The jboss console is showing the message about this tag  <sub-deployment name="OrionLite.war"> my war file name OrionLite

       

      message...

       

      Calling "D:\Soft\jboss-as-7.1.1.Final\bin\standalone.conf.bat"
      ===============================================================================

        JBoss Bootstrap Environment

        JBOSS_HOME: D:\Soft\jboss-as-7.1.1.Final

        JAVA: C:\Program Files\Java\jdk1.6.0_23\bin\java

        JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.cl
      ient.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.war
      ning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.config=standalone.xml

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

      17:51:08,963 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
      17:51:12,900 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
      17:51:13,384 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
      17:51:29,603 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-h
      ttp)
      17:51:29,744 INFO  [org.xnio] XNIO Version 3.0.3.GA
      17:51:30,384 INFO  [org.jboss.as.configadmin] JBAS016200: Activating ConfigAdmin Subsystem
      17:51:30,572 INFO  [org.jboss.as.security] JBAS013101: Activating Security Subsystem
      17:51:30,588 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
      17:51:30,697 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 41) JBAS010280: Activating Infinis
      pan subsystem.
      17:51:30,697 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 49) JBAS011940: Activating OSGi Subsystem
      17:51:31,041 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 48) JBAS011800: Activating Naming Subsystem
      17:51:31,041 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 58) JBAS015537: Activating WebServices Exten
      sion
      17:51:31,259 INFO  [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.0.3.GA
      17:51:32,338 INFO  [org.jboss.as.security] (MSC service thread 1-4) JBAS013100: Current PicketBox version=4.0.7.Final
      17:51:34,463 INFO  [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version 3.2.3.GA
      17:51:37,494 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 37) JBAS010404: Deployi
      ng non-JDBC-compliant driver class net.sourceforge.jtds.jdbc.Driver (version 1.2)
      17:51:37,806 INFO  [org.jboss.as.connector] (MSC service thread 1-4) JBAS010408: Starting JCA Subsystem (JBoss IronJacam
      ar 1.0.9.Final)
      17:51:37,994 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 37) JBAS010403: Deployi
      ng JDBC-compliant driver class org.h2.Driver (version 1.3)
      17:51:38,744 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service
      17:51:41,775 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http--
      127.0.0.1-8080
      17:51:43,900 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mai
      l/Default]
      17:51:46,853 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-4) JBoss Web Services - S
      tack CXF Server 4.0.2.GA
      17:51:49,603 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data sourc
      e [java:jboss/datasources/TradisOnlineJNDI]
      17:51:49,603 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data sourc
      e [java:jboss/datasources/TradisGraphJNDI]
      17:51:49,634 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data sourc
      e [java:jboss/datasources/TradisAwacsJNDI]
      17:51:49,634 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data sourc
      e [java:jboss/datasources/ExampleDS]
      17:51:49,650 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data sourc
      e [java:jboss/datasources/TradisHorseJNDI]
      17:51:49,728 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) JBAS015012: Started FileSystemDeplo
      ymentService for directory D:\Soft\jboss-as-7.1.1.Final\standalone\deployments
      17:51:49,759 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting fa
      iled deployment OrionLite.war
      17:51:49,869 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on /127.0.0.1:9999
      17:51:49,869 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /127.0.0.1:4447
      17:51:52,525 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
      17:51:52,525 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 52891ms
      - Started 146 of 225 services (74 services are passive or on-demand)
      17:52:24,009 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found OrionLite.
      war in deployment directory. To trigger deployment create a file called OrionLite.war.dodeploy
      17:52:24,134 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "OrionLi
      te.war"
      17:52:48,916 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deploym
      ent.unit."OrionLite.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."OrionLite.war
      ".STRUCTURE: Failed to process phase STRUCTURE of deployment "OrionLite.war"
              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-a
      s-server-7.1.1.Final.jar:7.1.1.Final]
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-ms
      c-1.0.2.GA.jar:1.0.2.GA]
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.G
      A.jar:1.0.2.GA]
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]
              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Sub deployment OrionLite.war in jboss-struc
      ture.xml was not found. Available sub deployments:
              at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.subDeploymentNotFound(De
      ploymentStructureDescriptorParser.java:233) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
              at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.deploy(DeploymentStructu
      reDescriptorParser.java:159) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-a
      s-server-7.1.1.Final.jar:7.1.1.Final]
              ... 5 more

      17:52:48,994 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "OrionLite.war
      " was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"OrionLite.war\".STRUC
      TURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"OrionLite.war\".STRUCTURE: Failed to p
      rocess phase STRUCTURE of deployment \"OrionLite.war\""}}
      17:52:48,994 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment OrionLite.wa
      r in 4ms
      17:52:49,009 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."OrionLite.war".STRUCTURE: org.jboss.ms
      c.service.StartException in service jboss.deployment.unit."OrionLite.war".STRUCTURE: Failed to process phase STRUCTURE o
      f deployment "OrionLite.war"

      17:52:49,056 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite oper
      ation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jbos
      s.deployment.unit.\"OrionLite.war\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit
      .\"OrionLite.war\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"OrionLite.war\""}}}}

      --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      Could you please suggest me to sort out this problem?

       

      Thanks

      Hari Kishore Y.

        • 2. Re: How to write the jboss-deployment-structure.xml file
          Hari Kishore Yecharla Newbie

          OrionLite.war which consisting images,jsp,web-inf--->(web.xml,jboss-deployment--structure.xml)

          • 3. Re: How to write the jboss-deployment-structure.xml file
            Hari Kishore Yecharla Newbie

            web-inf.JPG

             

            I am attaching the OrionLite.war and web-inf snapshots.

             

            I am also attaching war structure.txt file.

            • 4. Re: How to write the jboss-deployment-structure.xml file
              Tomaz Cerar Master

              Hi,

               

              you have war deployment, that means you do not need to provide sub deployments.

               

              try something like this:

               

               

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

              <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">       

                 <deployment>

                           <exclusions>

                                <module name="org.apache.log4j" />

                           </exclusions>

                        </deployment>         

                       </sub-deployment>

              </jboss-deployment-structure>

               

               

              it should work, or at lest give some other error

               

               

              --

              tomaz

              • 5. Re: How to write the jboss-deployment-structure.xml file
                Hari Kishore Yecharla Newbie

                Thanks For your reply

                 

                Calling "D:\Soft\jboss-as-7.1.1.Final\bin\standalone.conf.bat"
                ===============================================================================

                  JBoss Bootstrap Environment

                  JBOSS_HOME: D:\Soft\jboss-as-7.1.1.Final

                  JAVA: C:\Program Files\Java\jdk1.6.0_23\bin\java

                  JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.cl
                ient.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.war
                ning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.config=standalone.xml

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

                18:43:53,378 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
                18:43:53,659 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
                18:43:53,753 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
                18:43:55,314 INFO  [org.xnio] XNIO Version 3.0.3.GA
                18:43:55,314 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-h
                ttp)
                18:43:55,330 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
                18:43:55,345 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
                18:43:55,361 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
                18:43:55,377 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinis
                pan subsystem.
                18:43:55,517 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsy
                stem
                18:43:55,533 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
                18:43:55,549 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
                18:43:55,564 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
                18:43:55,595 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Exten
                sion
                18:43:55,673 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010404: Deployi
                ng non-JDBC-compliant driver class net.sourceforge.jtds.jdbc.Driver (version 1.2)
                18:43:56,095 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deployi
                ng JDBC-compliant driver class org.h2.Driver (version 1.3)
                18:43:56,142 INFO  [org.jboss.as.security] (MSC service thread 1-2) JBAS013100: Current PicketBox version=4.0.7.Final
                18:43:56,204 INFO  [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacam
                ar 1.0.9.Final)
                18:43:56,220 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service
                18:43:56,376 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mai
                l/Default]
                18:43:56,501 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) Starting Coyote HTTP/1.1 on http--
                127.0.0.1-8080
                18:43:56,860 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-2) JBoss Web Services - S
                tack CXF Server 4.0.2.GA
                18:43:57,157 INFO  [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on /127.0.0.1:9999
                18:43:57,157 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on /127.0.0.1:4447
                18:43:57,188 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) JBAS015012: Started FileSystemDeplo
                ymentService for directory D:\Soft\jboss-as-7.1.1.Final\standalone\deployments
                18:43:57,703 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data sourc
                e [java:jboss/datasources/TradisHorseJNDI]
                18:43:57,703 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data sourc
                e [java:jboss/datasources/TradisOnlineJNDI]
                18:43:57,703 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data sourc
                e [java:jboss/datasources/TradisGraphJNDI]
                18:43:57,703 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data sourc
                e [java:jboss/datasources/TradisAwacsJNDI]
                18:43:57,703 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data sourc
                e [java:jboss/datasources/ExampleDS]
                18:43:57,813 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
                18:43:57,813 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 4857ms
                - Started 146 of 225 services (74 services are passive or on-demand)
                18:43:58,531 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found OrionLite.
                war in deployment directory. To trigger deployment create a file called OrionLite.war.dodeploy
                18:43:58,562 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "OrionLi
                te.war"
                18:44:06,761 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deploym
                ent.unit."OrionLite.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."OrionLite.w
                ar".POST_MODULE: Failed to process phase POST_MODULE of deployment "OrionLite.war"
                        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-a
                s-server-7.1.1.Final.jar:7.1.1.Final]
                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-ms
                c-1.0.2.GA.jar:1.0.2.GA]
                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.G
                A.jar:1.0.2.GA]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]
                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]
                        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]
                Caused by: java.lang.RuntimeException: Error getting reflective information for class com.sdgsoftware.orionlite.GraphSer
                v with ClassLoader ModuleClassLoader for Module "deployment.OrionLite.war:main" from Service Module Loader
                        at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java
                :70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
                        at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.j
                ava:58)
                        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationPro
                cessor.java:85)
                        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotati
                onProcessor.java:70)
                        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java
                :55)
                        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-a
                s-server-7.1.1.Final.jar:7.1.1.Final]
                        ... 5 more
                Caused by: java.lang.NoClassDefFoundError: org/jfree/data/time/RegularTimePeriod
                        at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.6.0_23]
                        at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [rt.jar:1.6.0_23]
                        at java.lang.Class.getDeclaredFields(Class.java:1743) [rt.jar:1.6.0_23]
                        at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-se
                rver-7.1.1.Final.jar:7.1.1.Final]
                        at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java
                :66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
                        ... 10 more
                Caused by: java.lang.ClassNotFoundException: org.jfree.data.time.RegularTimePeriod from [Module "deployment.OrionLite.wa
                r: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

                18:44:06,854 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "OrionLite.war
                " was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"OrionLite.war\".POST_
                MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"OrionLite.war\".POST_MODULE: Failed
                to process phase POST_MODULE of deployment \"OrionLite.war\""}}
                18:44:08,603 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment OrionLite.wa
                r in 1748ms
                18:44:08,603 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
                JBAS014777:   Services which failed to start:      service jboss.deployment.unit."OrionLite.war".POST_MODULE: org.jboss.
                msc.service.StartException in service jboss.deployment.unit."OrionLite.war".POST_MODULE: Failed to process phase POST_MO
                DULE of deployment "OrionLite.war"

                18:44:08,619 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite oper
                ation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jbos
                s.deployment.unit.\"OrionLite.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.un
                it.\"OrionLite.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"OrionLite.war\""}}}}

                ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                <?xml version='1.0' encoding='UTF-8'?>
                <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
                           <deployment>           
                            <dependencies>
                                <system>
                                    <paths>
                                        <path name="com/sun/ssl/internal/ssl"/>
                                       <path name="com/myjars/jcommon"/>
                                       <path name="com/myjars/jfreechart"/>
                                    </paths>
                                </system>
                            </dependencies>  
                          </deployment>      
                </jboss-deployment-structure>

                 

                 

                ---------------------------

                 

                The above file is my deployment.xml file. But still I am getting the Class Not found exception message.

                 

                • 6. Re: How to write the jboss-deployment-structure.xml file
                  Hari Kishore Yecharla Newbie

                  This is the correct jboss-deployment-structure.xml file

                  {code}

                  <?xml version="1.0" encoding="UTF-8"?>
                  <jboss-deployment-structure>
                    <deployment>
                      <exclusions>
                        <module name="org.apache.log4j" />
                  </exclusions>
                      <dependencies>   
                     <module name="com.myjars.jcommon" />
                      </dependencies>
                    </deployment>
                  </jboss-deployment-structure>

                  Actually one of the jar file is giving problem with the class-path attribute in the Manifest file of that jar file. It is pointing to wrong path. I have modified that with empty value and again prepared a fresh jar by overriding that mf file.