Bug 1117245

Summary: [QE] (6.3.0) Deploying 2nd war results to VFS000017 with resteasy-spring integration
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Katerina Odabasi <kanovotn>
Component: RESTEasyAssignee: Weinan Li <weli>
Status: CLOSED CURRENTRELEASE QA Contact: Katerina Odabasi <kanovotn>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: rsvoboda, trepel
Target Milestone: ER10Keywords: Regression
Target Release: EAP 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 14:38:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Reproducer app none

Description Katerina Odabasi 2014-07-08 11:25:12 UTC
Created attachment 916333 [details]
Reproducer app

Description of problem:
When deploying two war applications containing resteasy-spring jar, second deployment fails.

Version-Release number of selected component (if applicable):
EAP 6.3.0.ER9

How reproducible:
always

Steps to Reproduce:
1. Take two war files (rename one from the attachment)
2. Start EAP in standalone mode
3. Copy both wars into $JBOSS_HOME/standalone/deployments

Actual results:
First war deployment succeeds, second deployment results to the following error:

13:10:54,277 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "resteasy-spring-integration-test2.war" (runtime-name: "resteasy-spring-integration-test2.war")
13:10:55,496 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.unit."resteasy-spring-integration-test2.war".DEPENDENCIES: org.jboss.msc.service.StartException in service jboss.deployment.unit."resteasy-spring-integration-test2.war".DEPENDENCIES: JBAS018733: Failed to process phase DEPENDENCIES of deployment "resteasy-spring-integration-test2.war"
	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [jboss-as-server-7.4.0.Final-redhat-18.jar:7.4.0.Final-redhat-18]
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]
	at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.io.IOException: VFS000017: Filesystem already mounted at mount point ""/home/kanovotn/RESTEasy/EAP_6.3.0.ER9/jboss-eap-6.3/modules/system/layers/base/org/jboss/resteasy/resteasy-spring/main/bundled/resteasy-spring-jar/resteasy-spring-2.3.8.Final-redhat-3.jar""
	at org.jboss.as.jaxrs.deployment.JaxrsSpringProcessor.deploy(JaxrsSpringProcessor.java:204)
	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-7.4.0.Final-redhat-18.jar:7.4.0.Final-redhat-18]
	... 5 more
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.io.IOException: VFS000017: Filesystem already mounted at mount point ""/home/kanovotn/RESTEasy/EAP_6.3.0.ER9/jboss-eap-6.3/modules/system/layers/base/org/jboss/resteasy/resteasy-spring/main/bundled/resteasy-spring-jar/resteasy-spring-2.3.8.Final-redhat-3.jar""
	at org.jboss.as.jaxrs.deployment.JaxrsSpringProcessor.getResteasySpringVirtualFile(JaxrsSpringProcessor.java:134)
	at org.jboss.as.jaxrs.deployment.JaxrsSpringProcessor.deploy(JaxrsSpringProcessor.java:200)
	... 6 more
Caused by: java.io.IOException: VFS000017: Filesystem already mounted at mount point ""/home/kanovotn/RESTEasy/EAP_6.3.0.ER9/jboss-eap-6.3/modules/system/layers/base/org/jboss/resteasy/resteasy-spring/main/bundled/resteasy-spring-jar/resteasy-spring-2.3.8.Final-redhat-3.jar""
	at org.jboss.vfs.VFS.mount(VFS.java:127) [jboss-vfs-3.2.5.Final-redhat-1.jar:3.2.5.Final-redhat-1]
	at org.jboss.vfs.VFS.doMount(VFS.java:336) [jboss-vfs-3.2.5.Final-redhat-1.jar:3.2.5.Final-redhat-1]
	at org.jboss.vfs.VFS.mountZip(VFS.java:360) [jboss-vfs-3.2.5.Final-redhat-1.jar:3.2.5.Final-redhat-1]
	at org.jboss.as.jaxrs.deployment.JaxrsSpringProcessor.getResteasySpringVirtualFile(JaxrsSpringProcessor.java:114)
	... 7 more

Expected results:
Both wars are deployed successfully.

Additional info:
This issue was reproduced on 6.3.0.ER9 only. I doesn't apply to 6.3.0.ER7 and 6.2.4.

Comment 1 Rostislav Svoboda 2014-07-08 11:35:46 UTC
Regression comparing to 6.2.0 GA and 6.3.0 ER7.

Comment 2 Marek Schmidt 2014-07-08 12:26:42 UTC
*** Bug 1117250 has been marked as a duplicate of this bug. ***

Comment 3 Kabir Khan 2014-07-08 12:44:03 UTC
Reproducers are in the duplicate https://bugzilla.redhat.com/show_bug.cgi?id=1117250.

Copying https://bugzilla.redhat.com/show_bug.cgi?id=1117250#c1:
This is likely related to the upgrade done for https://bugzilla.redhat.com/show_bug.cgi?id=1090053#c12 which Fernando wanted for ER9.  A test in the EAP codebase as mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=1090053#c10 should hopefully help against future regressions.

Comment 4 Kabir Khan 2014-07-08 15:00:14 UTC
https://github.com/jbossas/jboss-eap/pull/1504

Comment 7 Katerina Odabasi 2014-07-18 10:52:12 UTC
Verified with attached reproducer in EAP 6.3.0.ER10.