[jboss-jira] [JBoss JIRA] (AS7-1217) Deployment fails when deployment-scanner is pointed to UNC path
Jason Greene (JIRA)
jira-events at lists.jboss.org
Thu Feb 23 16:58:07 EST 2012
[ https://issues.jboss.org/browse/AS7-1217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Greene updated AS7-1217:
------------------------------
Fix Version/s: 7.1.2.Final
(was: 7.1.1.Final)
This issue is being relocated to 7.1.2 so that 7.1.1 only contains criticals, blockers, and EAP LA issues (which are probably not yet at the right status, or need an extra triage pass).
If these issues are completed in a 7.1.1 timeframe please change the fix version. Although if you forget I will bulk correct.
> Deployment fails when deployment-scanner is pointed to UNC path
> ---------------------------------------------------------------
>
> Key: AS7-1217
> URL: https://issues.jboss.org/browse/AS7-1217
> Project: Application Server 7
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 7.0.0.CR1
> Reporter: James Livingston
> Assignee: Jason Greene
> Fix For: 7.1.2.Final
>
>
> On JBoss 5, you could add an additional deployment directory located via a UNC path (\\computername\share on Windows). On AS 7.0.0.CR1 it detects that a deployment has been added, but fails deployment because a backslash character gets lost between the host and share parts of the path.
> To reproduce:
> 1) share a directory on a Windows machine, for example "share" on the machine "host"
> 2) In standalone.xml, add a deployment-scanner with the path "\\host\share\" (or "\\\\host\\share", escaping the backshashes doesn't make a difference)
> 3) Put a WAR file in that directory
> 4) start JBoss
> It will fail with the error:
> ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."sample.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."sample.war".STRU
> CTURE: Failed to process phase STRUCTURE of deployment "sample.war"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
> at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_24]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_24]
> at java.lang.Thread.run(Unknown Source) [:1.6.0_24]
> Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to mount deployment content
> at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:82)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
> ... 5 more
> Caused by: java.io.FileNotFoundException: \\hostshare\sample.war (The network path was not found)
> at java.io.FileInputStream.open(Native Method) [:1.6.0_24]
> at java.io.FileInputStream.<init>(Unknown Source) [:1.6.0_24]
> at org.jboss.vfs.spi.RootFileSystem.openInputStream(RootFileSystem.java:55)
> at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:238)
> at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:567)
> at org.jboss.as.server.deployment.repository.impl.ServerDeploymentRepositoryImpl.mountDeploymentContent(ServerDeploymentRepositoryImpl.java:73)
> at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:78)
> ... 6 more
> 05:47:04,303 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "sample.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"sample.war\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"sample.war\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"sample.war\""}}
--
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 jboss-jira
mailing list