Error while deploying in JBoss AS7 with jboss-app.xml.
ankitceo2 Jan 30, 2014 6:26 AMHi All,
I am having problem with the deployment of an ear on JBoss AS 7. It has a "jboss-app.xml" file with the following structure.
=================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-app
PUBLIC "-//JBoss//DTD J2EE Application 4.2//EN"
"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd">
<jboss-app>
<loader-repository>
com.osi:archive=nxservices
</loader-repository>
<module>
<service>osi-topics-service.xml</service>
</module>
<module>
<service>osi-properties-service.xml</service>
</module>
<module>
<service>dmpjca-ds.xml</service>
</module>
<module>
<service>osi-tt-config-service.xml</service>
</module>
</jboss-app>
=================================================
The error caused from the presence of jboss-app.xml is as follows.
=================================================
16:52:35,271 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment Services_copy.ear in 19ms
16:52:35,273 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "Services_copy.ear"
16:52:35,273 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015863: Replacement of deployment "Services_copy.ear" by deployment "Services_copy.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"Services_copy.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Services_copy.ear\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"Services_copy.ear\""}}
16:52:36,255 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."Services_copy.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."Services_copy.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "Services_copy.ear"
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(Unknown Source) [rt.jar:1.7.0_13]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_13]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_13]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011060: Failed to process children for EAR ["/C:/jbossAS7/bin/content/Services_copy.ear"]
at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:218)
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: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.7.0_13]
at java.util.zip.ZipFile.<init>(Unknown Source) [rt.jar:1.7.0_13]
at java.util.zip.ZipFile.<init>(Unknown Source) [rt.jar:1.7.0_13]
at java.util.jar.JarFile.<init>(Unknown Source) [rt.jar:1.7.0_13]
at java.util.jar.JarFile.<init>(Unknown Source) [rt.jar:1.7.0_13]
at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:97)
at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:83)
at org.jboss.vfs.VFS.mountZip(VFS.java:408)
at org.jboss.vfs.VFS.mountZip(VFS.java:434)
at org.jboss.as.ee.structure.EarStructureProcessor.mount(EarStructureProcessor.java:223)
at org.jboss.as.ee.structure.EarStructureProcessor.createResourceRoot(EarStructureProcessor.java:242)
at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:176)
... 6 more
====================================================================
But if I remove this "jboss-ap.xml" it deploys without any error. But there is an issue while working with this deployed ear.
Please help me how can I get around the problem.
Thanks
Ankit