[jboss-jira] [JBoss JIRA] Created: (AS7-1217) Deployment fails when deployment-scanner is pointed to UNC path

James Livingston (JIRA) jira-events at lists.jboss.org
Thu Jul 7 02:20:23 EDT 2011


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
    Affects Versions: 7.0.0.CR1
            Reporter: James Livingston


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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list