We're updating the issue view to help you get more done. 

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

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:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 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)

Status

Assignee

Savas Ali Tokmen

Reporter

Savas Ali Tokmen

Components

Fix versions

Affects versions

1.1.2

Priority

Major