[jbosstools-issues] [JBoss JIRA] (JBIDE-10318) EJB jar projects are deployed as exploded jars in war/WEB-INF/lib
Mike Mosiewicz (Updated) (JIRA)
jira-events at lists.jboss.org
Fri Dec 2 09:54:40 EST 2011
[ https://issues.jboss.org/browse/JBIDE-10318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Mosiewicz updated JBIDE-10318:
-----------------------------------
Fix Version/s: (was: 3.3.0.M4)
Affects Version/s: 3.3.0.M4
(was: 3.3.0.M3)
Description: EJB jars deployed in WAR's WEB-INF/lib are exploded. That cause errors. Everything in WEB-INF/lib should be zipped. This is similiar to JBIDE-9836. (was: Following up https://issues.sonatype.org/browse/MECLIPSEWTP-181.
Web Fragment projects are deployed as exploded jars in AS7 instead of zipped archives (probably other AS'es too). This leads to a deployment failure :
{noformat}
10:11:40,572 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "web.war"
10:11:40,600 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.unit."web.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."web.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "web.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
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: org.jboss.as.server.deployment.DeploymentUnitProcessingException: failed to process "/home/fbricon/Dev/servers/jboss-as-web-7.0.2.Final/standalone/deployments/web.war/WEB-INF/lib/fragment.jar"
at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.deploy(WarStructureDeploymentProcessor.java:118)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
... 5 more
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: failed to process "/home/fbricon/Dev/servers/jboss-as-web-7.0.2.Final/standalone/deployments/web.war/WEB-INF/lib/fragment.jar"
at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createWebInfLibResources(WarStructureDeploymentProcessor.java:173)
at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createResourceRoots(WarStructureDeploymentProcessor.java:151)
at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.deploy(WarStructureDeploymentProcessor.java:112)
... 6 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)
at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:81)
at org.jboss.vfs.VFS.mountZip(VFS.java:408)
at org.jboss.vfs.VFS.mountZip(VFS.java:434)
at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createWebInfLibResources(WarStructureDeploymentProcessor.java:168)
... 8 more
{noformat})
Steps to Reproduce:
- create simple JAVAEE6 ejb jar
- add it to WAR project
- deploy WAR project expanded
- notice that ejb.jar is also expanded
was:
- unzip attached web-fragment.zip
- import web and fragment projects in eclipse
- run web on an AS7 instance
- ASSERT web is started without errors
- ASSERT going to http://localhost:8080/web/ should display Hello World
> EJB jar projects are deployed as exploded jars in war/WEB-INF/lib
> -----------------------------------------------------------------
>
> Key: JBIDE-10318
> URL: https://issues.jboss.org/browse/JBIDE-10318
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: JBossAS/Servers
> Affects Versions: 3.3.0.M4
> Reporter: Mike Mosiewicz
> Assignee: Rob Stryker
> Priority: Blocker
> Labels: deployment, web-fragment
>
> EJB jars deployed in WAR's WEB-INF/lib are exploded. That cause errors. Everything in WEB-INF/lib should be zipped. This is similiar to JBIDE-9836.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list