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

JBoss standalone local configuration creation fails if user deployables with certain names

    Details

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

      Description

      See: http://old.nabble.com/Problem-with-context-ROOT-on-jboss-6-to32457430.html

      JBoss standalone local configuration creation fails if user deployables with certain names; for example if the <deployables> list contains a WAR with context ROOT (which JBoss already has).

      We have exceptions like:

      Caused by: org.codehaus.cargo.util.CargoException: Couldn't create directory /MYAPP/target/cargo/configurations/jboss6x/deploy/ROOT.war
      at org.codehaus.cargo.util.DefaultFileHandler.createDirectory(DefaultFileHandler.java:245)
      at org.codehaus.cargo.container.jboss.JBossStandaloneLocalConfiguration.copyExternalResources(JBossStandaloneLocalConfiguration.java:219)
      at org.codehaus.cargo.container.jboss.JBoss6xStandaloneLocalConfiguration.doConfigure(JBoss6xStandaloneLocalConfiguration.java:149)
      at org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration.configure(AbstractLocalConfiguration.java:190)
      ... 24 more
      org.codehaus.cargo.util.CargoException: Couldn't create directory /MYAPP/target/cargo/configurations/jboss6x/deploy/ROOT.war
      at org.codehaus.cargo.util.DefaultFileHandler.createDirectory(DefaultFileHandler.java:245)
      at org.codehaus.cargo.container.jboss.JBossStandaloneLocalConfiguration.copyExternalResources(JBossStandaloneLocalConfiguration.java:219)
      at org.codehaus.cargo.container.jboss.JBoss6xStandaloneLocalConfiguration.doConfigure(JBoss6xStandaloneLocalConfiguration.java:149)
      at org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration.configure(AbstractLocalConfiguration.java:190)
      at org.codehaus.cargo.container.spi.configuration.AbstractStandaloneLocalConfiguration.configure(AbstractStandaloneLocalConfiguration.java:78)
      at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:159)
      at org.codehaus.cargo.maven2.AbstractContainerStartMojo.doExecute(AbstractContainerStartMojo.java:55)
      at org.codehaus.cargo.maven2.ContainerRunMojo.doExecute(ContainerRunMojo.java:60)
      at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:279)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      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:
              savasalitokmen Savas Ali Tokmen (Inactive)
              Reporter:
              savasalitokmen Savas Ali Tokmen (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: