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

Undeploy fails with a non-farm configuration

Description

Deploying our application on the Jboss EAP Server all succeeds.
I attached an extract from our pom.xml.

The relevant parameter is

1 <cargo.jboss.clustered>true</cargo.jboss.clustered>

When it is set to true the deployed files can be found in the /farm - directory.
When it is set to false the deployed files can be found in the /deploy - directory.

But if you usw undeploy or redeploy it does not work in the expected way:

When the parameter is set to true cargo will undeploy form the /farm - directory.
When the parameter is set to false cargo ALSO TRIES to undeploy from the /farm-directory.
But it should use the /deploy-directory

Here the log entries:

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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Cannot undeploy deployable org.codehaus.cargo.container.deployable.EAR[charta-sessionbeanfacade-ear.ear] Failed to find deployment in file: vfszip:/opt/jboss/jboss-eap-5.1/jboss-as/server/m121charE00/farm/charta-sessionbeanfacade-ear.ear/ [INFO] ------------------------------------------------------------------------ [INFO] Trace org.codehaus.cargo.util.CargoException: Cannot undeploy deployable org.codehaus.cargo.container.deployable.EAR[charta-sessionbeanfacade-ear.ear] at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.undeploy(JBoss5xRemoteDeployer.java:218) at org.codehaus.cargo.maven2.DeployerUndeployMojo.performDeployerActionOnSingleDeployable(DeployerUndeployMojo.java:50) at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:191) at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:103) at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:283) 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.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) 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) Caused by: java.lang.Exception: Remote action failed: null (org.jboss.profileservice.spi.NoSuchDeploymentException: Failed to find deployment in file: vfszip:/o pt/jboss/jboss-eap-5.1/jboss-as/server/m121charE00/farm/charta-sessionbeanfacade-ear.ear/) at org.codehaus.cargo.tools.jboss.JBossDeployer.checkFailed(JBossDeployer.java:153) at org.codehaus.cargo.tools.jboss.JBossDeployer.undeploy(JBossDeployer.java:100) at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.undeploy(JBoss5xRemoteDeployer.java:214) ... 23 more Caused by: java.lang.RuntimeException: org.jboss.profileservice.spi.NoSuchDeploymentException: Failed to find deployment in file: vfszip:/opt/jboss/jboss-eap-5. 1/jboss-as/server/m121charE00/farm/charta-sessionbeanfacade-ear.ear/ at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:312) at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.stop(StreamingDeploymentTarget.java:207) at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.stop(DeploymentProgressImpl.java:277) at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:92) at org.codehaus.cargo.tools.jboss.JBossDeployer.undeploy(JBossDeployer.java:99) ... 24 more Caused by: org.jboss.profileservice.spi.NoSuchDeploymentException: Failed to find deployment in file: vfszip:/opt/jboss/jboss-eap-5.1/jboss-as/server/m121charE0 0/farm/charta-sessionbeanfacade-ear.ear/ at org.jboss.system.server.profileservice.repository.AbstractDeploymentRepository.getDeployment(AbstractDeploymentRepository.java:134) at org.jboss.profileservice.management.upload.remoting.DeployHandler.scheduleStop(DeployHandler.java:156) at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.stop(AbstractDeployHandler.java:369) at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.stop(AbstractDeployHandler.java:358) at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.invoke(AbstractDeployHandler.java:242) at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967) at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791) at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744) at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548) at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234) at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:211) at org.jboss.remoting.Client.invoke(Client.java:1724) at org.jboss.remoting.Client.invoke(Client.java:629) at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:304) ... 28 more java.lang.Exception: Remote action failed: null (org.jboss.profileservice.spi.NoSuchDeploymentException: Failed to find deployment in file: vfszip:/opt/jboss/jb oss-eap-5.1/jboss-as/server/m121charE00/farm/charta-sessionbeanfacade-ear.ear/) at org.codehaus.cargo.tools.jboss.JBossDeployer.checkFailed(JBossDeployer.java:153) at org.codehaus.cargo.tools.jboss.JBossDeployer.undeploy(JBossDeployer.java:100) at org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer.undeploy(JBoss5xRemoteDeployer.java:214) at org.codehaus.cargo.maven2.DeployerUndeployMojo.performDeployerActionOnSingleDeployable(DeployerUndeployMojo.java:50) at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:191) at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:103) at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:283) 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.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) 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) Caused by: java.lang.RuntimeException: org.jboss.profileservice.spi.NoSuchDeploymentException: Failed to find deployment in file: vfszip:/opt/jboss/jboss-eap-5. 1/jboss-as/server/m121charE00/farm/charta-sessionbeanfacade-ear.ear/ at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:312) at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.stop(StreamingDeploymentTarget.java:207) at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.stop(DeploymentProgressImpl.java:277) at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:92) at org.codehaus.cargo.tools.jboss.JBossDeployer.undeploy(JBossDeployer.java:99) ... 24 more Caused by: org.jboss.profileservice.spi.NoSuchDeploymentException: Failed to find deployment in file: vfszip:/opt/jboss/jboss-eap-5.1/jboss-as/server/m121charE0 0/farm/charta-sessionbeanfacade-ear.ear/ at org.jboss.system.server.profileservice.repository.AbstractDeploymentRepository.getDeployment(AbstractDeploymentRepository.java:134) at org.jboss.profileservice.management.upload.remoting.DeployHandler.scheduleStop(DeployHandler.java:156) at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.stop(AbstractDeployHandler.java:369) at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.stop(AbstractDeployHandler.java:358) at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.invoke(AbstractDeployHandler.java:242) at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967) at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791) at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744) at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548) at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234) at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:211) at org.jboss.remoting.Client.invoke(Client.java:1724) at org.jboss.remoting.Client.invoke(Client.java:629) at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:304) ... 28 more

0

Status

Assignee

Savas Ali Tokmen

Reporter

Sascha Meyer

Components

Fix versions

Affects versions

1.2.0

Priority

Major