How to write the jboss-deployment-structure.xml file
hari309965 Jun 29, 2012 8:41 AMHere 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.