This content has been marked as final.
Show 2 replies
-
1. Re: How to create a custom/application logging file in jboss-as-7.1.1.Final?
jamezp Aug 28, 2014 4:14 PM (in response to anandpaul)1 of 1 people found this helpful -
2. Re: Re: How to create a custom/application logging file in jboss-as-7.1.1.Final?
anandpaul Aug 28, 2014 11:05 PM (in response to jamezp)Hi James,
Thanks for your reply.
I created a file jboss-deployment-structure.xml and I get the following error while deployment. The XML file was giving me the validation error and then I corrected the URN version from 1.2 to 2.0. The validation error is gone, but end up with deployment error that unexpected element URN....
Then I removed the xmlns and tested. It worked. Thanks for your help!!!
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:2.0"> <deployment> <!-- Exclusions allow you to prevent the server from automatically adding some dependencies --> <exclusions> <module name="org.apache.log4j" /> </exclusions> </deployment> </jboss-deployment-structure>
12:39:02,686 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment PPCSE_v1.war in 0ms 12:39:02,690 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "PPCSE_v1.war" 12:39:02,690 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015863: Replacement of deployment "PPCSE_v1.war" by deployment "PPCSE_v1.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"PPCSE_v1.war\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"PPCSE_v1.war\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"PPCSE_v1.war\""}} 12:39:06,851 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.deployment.unit."PPCSE_v1.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."PPCSE_v1.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "PPCSE_v1.war" at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-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.GA.jar:1.0.2.GA] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_67] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67] Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Error loading jboss-structure.xml from C:\Software\jboss-as-7.1.1.Final\standalone\tmp\vfs\temp21ef9e805145214b\PPCSE_v1.war-c466ea3ae2c96c58\WEB-INF\jboss-deployment-structure.xml at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:277) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:249) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.deploy(DeploymentStructureDescriptorParser.java:134) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] ... 5 more Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1] Message: Unexpected element '{urn:jboss:deployment-structure:2.0}jboss-deployment-structure' at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108) [staxmapper-1.1.0.Final.jar:1.1.0.Final] at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final] at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:271) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] ... 8 more