Problem with deployoing ear on JBoss AS7 while it worked on AS5
ankitceo2 Jan 6, 2014 5:53 AMHi Everyone,
I have an ear to be deployed on JBoss AS7. The ear file NxServices.ear has the following structure.
|- META-INF [It has some manifest files and .xml files]
|- lib [Containing jars]
|- xyz.jar
|- abc.jar
|- a-file.rar
|- some-xml-files.xml
|- one-web.war
It is working fine on JBoss AS5 but when we are trying to migrate it to JBoss AS7, it is generating error as following
==================================================================================================================================
15:58:19,752 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "NxServices.ear"
15:58:19,764 WARN [org.jboss.metadata.parser.jboss.JBossAppMetaDataParser] (MSC service thread 1-2) loader-repository element in jboss-app.xml is deprecated and has been ignored
15:58:21,166 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."NxServices.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."NxServices.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "NxServices.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/NxServices.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
15:58:21,188 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment NxServices.ear in 0ms
15:58:21,188 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "NxServices.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"NxServices.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"NxServices.ear\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"NxServices.ear\""}}
15:58:21,193 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."NxServices.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."NxServices.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "NxServices.ear"
15:58:21,196 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"NxServices.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"NxServices.ear\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"NxServices.ear\""}}}}
======================================================================================================================================
The things I have tried are:
1). I have tried remove all the xml files from ear root that is |- .xmls and put them in |- META-INF. But got the same error.
2). Then I tried remove the |- some-rar-file.rar and accordingly updated the application.xml in |- META-INF but it also did not resolve the error.
3). Also tried a combination of the 1 and 2 mentioned above.
4). Also tried remove the .war and accordingly updated application.xml in |- META-INF but still got the same error.
5). also tried 3 and 4 together but no success.
I do not understand what it is trying to parse first that it is not able to open and saying unable to open zip file.
I do not know if there is some problem with some xml file particularly being used in the project.
Please help I need it solved very badly.
Thanks
Ankit