EAR Deployment Problem JBoss AS 7.0.2
nuki Oct 3, 2011 12:13 PMHello,
I am developing a lot of EJB 3 application in the past year. I deployed them successfully on JBoss AS 5.1 and JBoss AS 6.0. Today I tried to deploy one of my applications to the current Version of the JBoss AS 7. I am impressed of the startup-time and I just have to use this great piece of software for hosting my applications :-)
I started the application server with the standalone.sh command on my Ubuntu Linix 11.04. A Sun JDK 1.6.26 is installed. When i copied the enterprise archive file to the deployment folder, i get the following output:
17:57:40,655 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) Starting deployment of "booking.ear" 17:57:40,716 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit."booking.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."booking.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "booking.ear" at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26] at java.lang.Thread.run(Thread.java:662) [:1.6.0_26] Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to process children for EAR ["/content/booking.ear"] at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:197) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final] ... 5 more Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) [:1.6.0_26] at java.util.zip.ZipFile.<init>(ZipFile.java:127) [:1.6.0_26] at java.util.jar.JarFile.<init>(JarFile.java:135) [:1.6.0_26] at java.util.jar.JarFile.<init>(JarFile.java:99) [:1.6.0_26] at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:95) [jboss-vfs-3.0.1.GA.jar:3.0.1.GA] at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:81) [jboss-vfs-3.0.1.GA.jar:3.0.1.GA] at org.jboss.vfs.VFS.mountZip(VFS.java:408) [jboss-vfs-3.0.1.GA.jar:3.0.1.GA] at org.jboss.vfs.VFS.mountZip(VFS.java:434) [jboss-vfs-3.0.1.GA.jar:3.0.1.GA] at org.jboss.as.ee.structure.EarStructureProcessor.mount(EarStructureProcessor.java:202) at org.jboss.as.ee.structure.EarStructureProcessor.createResourceRoot(EarStructureProcessor.java:221) at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:181) ... 6 more 17:57:40,723 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment booking.ear in 3ms 17:57:40,724 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "booking.ear" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"booking.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"booking.ear\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"booking.ear\""}} 17:57:40,725 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"booking.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"booking.ear\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"booking.ear\""}}}}
First I thought it is a access problem, so I chmod 777 to the .ear file. But that did not solve the problem for me :-(
Here is the structure of my .ear file:
$ jar -tf booking.ear META-INF/ META-INF/MANIFEST.MF META-INF/application.xml META-INF/persistence.xml META-INF/application.properties META-INF/struts2ejb3.properties mysql-ds.xml booking.war booking.jar ejb-user.jar ejb-common-entity.jar ejb-changelog.jar lib/ lib/common-util.jar lib/hibernate-search-3.4.1.Final.jar lib/lucene-core-3.1.0.jar
I used the search function and read the documentation but I really get stuck with this problem. Can anyone help? If you need some additional informations, let me know.
kind regards