Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1217

Deployment fails when deployment-scanner is pointed to UNC path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.Final
    • 7.0.0.CR1
    • Domain Management
    • None

    Description

      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\""}}

      Attachments

        Activity

          People

            jgreene@redhat.com Jason Greene
            rhn-support-jlivings James Livingston (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: