Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8734

API change in deployment scanner's add cause failed deployments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 6.0.0.CR1
    • Fix Version/s: No Release
    • Component/s: Deployers
    • Labels:
      None

      Description

      When using the deployment scanner mbean to pass in a new URL that the JBossAS should scan for deployments, a path format which worked fine in JBoss 5 and below no longer works. Specifically, passing in a URL such as the one below:

      file:/home/rob/apps/eclipse/workspaces/main_code/runtime%20space%20workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1292215199516/deploy/Dyn888.war/

      When passing this string into the addURL mbean, the following error in the jboss console results:

      14:52:54,927 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/Dyn888
      14:52:54,930 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/Dyn888 state=Create mode=Manual requiredState=Installed: java.net.URISyntaxException: Illegal character in path at index 56: file:/home/rob/apps/eclipse/workspaces/main_code/runtime space workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1292215199516/deploy/Dyn888.war/
      at java.net.URI$Parser.fail(URI.java:2809) [:1.6.0_14]
      at java.net.URI$Parser.checkChars(URI.java:2982) [:1.6.0_14]

      Despite that I pass in a string with clear %20 blocking out the spaces, the deployment scanner does not seem to recognize this and errors. This format of a string has no problem working in AS 5.1 however.

      This is blocking JBossTools server integration.

        Gliffy Diagrams

          Attachments

          1. JBAS_8734.trace
            21 kB
          2. jbas8734.patch
            0.9 kB
          3. jboss-vfs.jar
            93 kB
          4. jboss-vfs-3.0.1.GA.jar
            106 kB
          5. jboss-vfs-3.0.1.GA-sources.jar
            88 kB
          6. jboss-vfs-sources.jar
            81 kB

            Issue Links

              Activity

                People

                • Assignee:
                  rmaucher Remy Maucherat
                  Reporter:
                  rob.stryker Rob Stryker
                • Votes:
                  5 Vote for this issue
                  Watchers:
                  14 Start watching this issue

                  Dates

                  • Created:
                    Updated: