[jira] Created: (CARGO-726) Undeployment of an EAR file is not supported for a local installation

View: New views
4 Messages — Rating Filter:   Alert me  

[jira] Created: (CARGO-726) Undeployment of an EAR file is not supported for a local installation

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Undeployment of an EAR file is not supported for a local installation
---------------------------------------------------------------------

                 Key: CARGO-726
                 URL: http://jira.codehaus.org/browse/CARGO-726
             Project: Cargo
          Issue Type: Bug
          Components: JBoss
         Environment: Cargo 1.0.1-SNAPSHOT, Maven 2.0.9, JBoss 5.1.0, Java 1.6.0, Debian GNU/Linux 5.0
            Reporter: Clemens Fuchslocher
         Attachments: cargo-simple-ear.tar.gz, JBossInstalledLocalDeployer.patch

The archive cargo-simple-ear.tar.gz contains a simple test case.

The steps below will deploy the simple-ear artifact into a locally created JBoss 5.1 installation.

The installation is located under /tmp/jboss-5.1. Log files are also written to this directory.

{noformat}
$ tar -zxvf cargo-simple-ear.tar.gz
$ cd cargo-simple-ear
$ export MAVEN_OPTS=-Djboss-5.1.home=/tmp/jboss-5.1
$ mvn cargo:start &
$ mvn cargo:deploy
$ curl http://localhost:8080/simpleweb/
$ mvn cargo:undeploy
$ curl http://localhost:8080/simpleweb/
$ mvn cargo:redeploy
$ curl http://localhost:8080/simpleweb/
$ mvn cargo:stop
{noformat}

Without the attached patch, the undeploy goal fails:

{noformat}
$ mvn cargo:undeploy
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cargo'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Cargo Simple EAR
[INFO]    task-segment: [cargo:undeploy]
[INFO] ------------------------------------------------------------------------
[WARNING] Attempting to build MavenProject instance for Artifact (org.codehaus.cargo:cargo-maven2-plugin:1.0.1-20090603.222214-7) of type: maven-plugin; constructing POM artifact instead.
[INFO] [cargo:undeploy]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Not supported
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.codehaus.cargo.container.ContainerException: Not supported
        at org.codehaus.cargo.container.spi.deployer.AbstractDeployer.undeploy(AbstractDeployer.java:113)
        at org.codehaus.cargo.container.jboss.JBossInstalledLocalDeployer.undeploy(JBossInstalledLocalDeployer.java:107)
        at org.codehaus.cargo.maven2.DeployerUndeployMojo.performDeployerActionOnSingleDeployable(DeployerUndeployMojo.java:39)
        at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:104)
        at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:47)
        at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:255)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        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)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Fri Aug 21 15:54:30 GMT 2009
[INFO] Final Memory: 6M/82M
[INFO] ------------------------------------------------------------------------
{noformat}


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (CARGO-726) Undeployment of an EAR file is not supported for a local installation

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/CARGO-726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=189583#action_189583 ]

Matt Wringe commented on CARGO-726:
-----------------------------------

A patch has been committed to fix this issue, undeploying WAR, EAR, SAR and the generic file type should all be supported now.
A new 1.0.1-SNAPSHOT has been created which has this fix.

Please let me know if this snapshot fixes your issue.

> Undeployment of an EAR file is not supported for a local installation
> ---------------------------------------------------------------------
>
>                 Key: CARGO-726
>                 URL: http://jira.codehaus.org/browse/CARGO-726
>             Project: Cargo
>          Issue Type: Bug
>          Components: JBoss
>         Environment: Cargo 1.0.1-SNAPSHOT, Maven 2.0.9, JBoss 5.1.0, Java 1.6.0, Debian GNU/Linux 5.0
>            Reporter: Clemens Fuchslocher
>         Attachments: cargo-simple-ear.tar.gz, JBossInstalledLocalDeployer.patch
>
>
> The archive cargo-simple-ear.tar.gz contains a simple test case.
> The steps below will deploy the simple-ear artifact into a locally created JBoss 5.1 installation.
> The installation is located under /tmp/jboss-5.1. Log files are also written to this directory.
> {noformat}
> $ tar -zxvf cargo-simple-ear.tar.gz
> $ cd cargo-simple-ear
> $ export MAVEN_OPTS=-Djboss-5.1.home=/tmp/jboss-5.1
> $ mvn cargo:start &
> $ mvn cargo:deploy
> $ curl http://localhost:8080/simpleweb/
> $ mvn cargo:undeploy
> $ curl http://localhost:8080/simpleweb/
> $ mvn cargo:redeploy
> $ curl http://localhost:8080/simpleweb/
> $ mvn cargo:stop
> {noformat}
> Without the attached patch, the undeploy goal fails:
> {noformat}
> $ mvn cargo:undeploy
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'cargo'.
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Cargo Simple EAR
> [INFO]    task-segment: [cargo:undeploy]
> [INFO] ------------------------------------------------------------------------
> [WARNING] Attempting to build MavenProject instance for Artifact (org.codehaus.cargo:cargo-maven2-plugin:1.0.1-20090603.222214-7) of type: maven-plugin; constructing POM artifact instead.
> [INFO] [cargo:undeploy]
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Not supported
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.codehaus.cargo.container.ContainerException: Not supported
> at org.codehaus.cargo.container.spi.deployer.AbstractDeployer.undeploy(AbstractDeployer.java:113)
> at org.codehaus.cargo.container.jboss.JBossInstalledLocalDeployer.undeploy(JBossInstalledLocalDeployer.java:107)
> at org.codehaus.cargo.maven2.DeployerUndeployMojo.performDeployerActionOnSingleDeployable(DeployerUndeployMojo.java:39)
> at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:104)
> at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:47)
> at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:255)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> 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)
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Fri Aug 21 15:54:30 GMT 2009
> [INFO] Final Memory: 6M/82M
> [INFO] ------------------------------------------------------------------------
> {noformat}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (CARGO-726) Undeployment of an EAR file is not supported for a local installation

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/CARGO-726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=189606#action_189606 ]

Clemens Fuchslocher commented on CARGO-726:
-------------------------------------------

The latest snapshot fixed the problem.

Thanks a lot!

> Undeployment of an EAR file is not supported for a local installation
> ---------------------------------------------------------------------
>
>                 Key: CARGO-726
>                 URL: http://jira.codehaus.org/browse/CARGO-726
>             Project: Cargo
>          Issue Type: Bug
>          Components: JBoss
>         Environment: Cargo 1.0.1-SNAPSHOT, Maven 2.0.9, JBoss 5.1.0, Java 1.6.0, Debian GNU/Linux 5.0
>            Reporter: Clemens Fuchslocher
>         Attachments: cargo-simple-ear.tar.gz, JBossInstalledLocalDeployer.patch
>
>
> The archive cargo-simple-ear.tar.gz contains a simple test case.
> The steps below will deploy the simple-ear artifact into a locally created JBoss 5.1 installation.
> The installation is located under /tmp/jboss-5.1. Log files are also written to this directory.
> {noformat}
> $ tar -zxvf cargo-simple-ear.tar.gz
> $ cd cargo-simple-ear
> $ export MAVEN_OPTS=-Djboss-5.1.home=/tmp/jboss-5.1
> $ mvn cargo:start &
> $ mvn cargo:deploy
> $ curl http://localhost:8080/simpleweb/
> $ mvn cargo:undeploy
> $ curl http://localhost:8080/simpleweb/
> $ mvn cargo:redeploy
> $ curl http://localhost:8080/simpleweb/
> $ mvn cargo:stop
> {noformat}
> Without the attached patch, the undeploy goal fails:
> {noformat}
> $ mvn cargo:undeploy
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'cargo'.
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Cargo Simple EAR
> [INFO]    task-segment: [cargo:undeploy]
> [INFO] ------------------------------------------------------------------------
> [WARNING] Attempting to build MavenProject instance for Artifact (org.codehaus.cargo:cargo-maven2-plugin:1.0.1-20090603.222214-7) of type: maven-plugin; constructing POM artifact instead.
> [INFO] [cargo:undeploy]
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Not supported
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.codehaus.cargo.container.ContainerException: Not supported
> at org.codehaus.cargo.container.spi.deployer.AbstractDeployer.undeploy(AbstractDeployer.java:113)
> at org.codehaus.cargo.container.jboss.JBossInstalledLocalDeployer.undeploy(JBossInstalledLocalDeployer.java:107)
> at org.codehaus.cargo.maven2.DeployerUndeployMojo.performDeployerActionOnSingleDeployable(DeployerUndeployMojo.java:39)
> at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:104)
> at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:47)
> at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:255)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> 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)
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Fri Aug 21 15:54:30 GMT 2009
> [INFO] Final Memory: 6M/82M
> [INFO] ------------------------------------------------------------------------
> {noformat}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Closed: (CARGO-726) Undeployment of an EAR file is not supported for a local installation

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/CARGO-726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Wringe closed CARGO-726.
-----------------------------

    Resolution: Fixed

Fix in svn

> Undeployment of an EAR file is not supported for a local installation
> ---------------------------------------------------------------------
>
>                 Key: CARGO-726
>                 URL: http://jira.codehaus.org/browse/CARGO-726
>             Project: Cargo
>          Issue Type: Bug
>          Components: JBoss
>         Environment: Cargo 1.0.1-SNAPSHOT, Maven 2.0.9, JBoss 5.1.0, Java 1.6.0, Debian GNU/Linux 5.0
>            Reporter: Clemens Fuchslocher
>         Attachments: cargo-simple-ear.tar.gz, JBossInstalledLocalDeployer.patch
>
>
> The archive cargo-simple-ear.tar.gz contains a simple test case.
> The steps below will deploy the simple-ear artifact into a locally created JBoss 5.1 installation.
> The installation is located under /tmp/jboss-5.1. Log files are also written to this directory.
> {noformat}
> $ tar -zxvf cargo-simple-ear.tar.gz
> $ cd cargo-simple-ear
> $ export MAVEN_OPTS=-Djboss-5.1.home=/tmp/jboss-5.1
> $ mvn cargo:start &
> $ mvn cargo:deploy
> $ curl http://localhost:8080/simpleweb/
> $ mvn cargo:undeploy
> $ curl http://localhost:8080/simpleweb/
> $ mvn cargo:redeploy
> $ curl http://localhost:8080/simpleweb/
> $ mvn cargo:stop
> {noformat}
> Without the attached patch, the undeploy goal fails:
> {noformat}
> $ mvn cargo:undeploy
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'cargo'.
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Cargo Simple EAR
> [INFO]    task-segment: [cargo:undeploy]
> [INFO] ------------------------------------------------------------------------
> [WARNING] Attempting to build MavenProject instance for Artifact (org.codehaus.cargo:cargo-maven2-plugin:1.0.1-20090603.222214-7) of type: maven-plugin; constructing POM artifact instead.
> [INFO] [cargo:undeploy]
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Not supported
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.codehaus.cargo.container.ContainerException: Not supported
> at org.codehaus.cargo.container.spi.deployer.AbstractDeployer.undeploy(AbstractDeployer.java:113)
> at org.codehaus.cargo.container.jboss.JBossInstalledLocalDeployer.undeploy(JBossInstalledLocalDeployer.java:107)
> at org.codehaus.cargo.maven2.DeployerUndeployMojo.performDeployerActionOnSingleDeployable(DeployerUndeployMojo.java:39)
> at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:104)
> at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:47)
> at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:255)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> 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)
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Fri Aug 21 15:54:30 GMT 2009
> [INFO] Final Memory: 6M/82M
> [INFO] ------------------------------------------------------------------------
> {noformat}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email