Uploaded image for project: 'Codehaus Cargo'
  1. CARGO-276

cargo:deploy fails when there are blanks in the url to the file

    Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: 0.7
    • Fix versions: 0.8
    • Components: JBoss
    • Labels:
      None
    • Environment:

      win xp, java 5, maven 2.0.2

      Description

      Hello,

      i am getting the following exceeption when deploy my ear/jar file to a jboss server.
      problem is, that the url (file:C:\Dokumente und Einstellungen\root\workspace\ejb\target\ejbTestApp-0.3.jar)
      contains blanks which should be replaced by %20. when i change my project directory, so it does
      not contains any blanks, everything works fine. if you need more information tell me.

      regards,
      andy

      here is the exception.

      org.codehaus.cargo.container.ContainerException: Failed to deploy to [http://loc
      alhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:serv
      ice%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:C:\Dokumente
      und Einstellungen\root\workspace\ejb\target\ejbTestApp-0.3.jar]
      at org.codehaus.cargo.container.jboss.JBossJMXDeployer.invokeURL(JBossJM
      XDeployer.java:149)
      at org.codehaus.cargo.container.jboss.JBossJMXDeployer.deploy(JBossJMXDe
      ployer.java:112)
      at org.codehaus.cargo.maven2.DeployMojo.deploySingleDeployable(DeployMoj
      o.java:123)
      at org.codehaus.cargo.maven2.DeployMojo.deploy(DeployMojo.java:92)
      at org.codehaus.cargo.maven2.DeployMojo.execute(DeployMojo.java:74)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
      nManager.java:415)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
      ultLifecycleExecutor.java:531)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
      Goal(DefaultLifecycleExecutor.java:485)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
      ltLifecycleExecutor.java:455)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
      dleFailures(DefaultLifecycleExecutor.java:303)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
      ts(DefaultLifecycleExecutor.java:270)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
      fecycleExecutor.java:139)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

        Attachments

          Activity

            People

            • Assignee:
              vincentmassol Vincent Massol (Inactive)
              Reporter:
              andy Andy (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: