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

JOnAS 5.x remote deployer cannot successfully undeploy when jonas.development is true

Description

See: http://old.nabble.com/Cargo-1.3.2---JOnAS-5.2.4---Undeployment-%28xml-file---deployment-plan%29-through-cargo-could-not-be-done-%28deployment-operation-is-OK%29-to34958711.html

JOnAS 5.x remote deployer cannot successfully undeploy when jonas.development is true. See below:

Deploy:

1 2 3 4 5 6 7 8 9 10 $ ant -Doperation=deploy Buildfile: /Users/alitokmen/Downloads/jonas/build.xml 2013-02-01 19:19:53,724 : J2EEServer.__sendFile : sendFile return directoryUploadedFile= /Users/alitokmen/Downloads/jonas/jonas-full-5.2.4/deploy/Movie-EAR-1.0.xml 2013-02-01 19:19:53,834 : EarDeployer.doDeploy : Deploying 'EAR 'simple-ear-1.3.2.ear', application.xml provided, Content:, 1 WAR(s) {simple-war-1.3.2.war}' 2013-02-01 19:19:54,126 : WebappLoader.start : Dual registration of jndi stream handler: factory already defined 2013-02-01 19:19:54,499 : BaseWebContainerService.registerWar : War simple-war-1.3.2.war available at the context /simpleweb. 2013-02-01 19:19:54,511 : EarDeployer.doDeploy : 'simple-ear-1.3.2.ear' EAR Deployable has been deployed (689 ms) BUILD SUCCESSFUL Total time: 2 seconds

Then, undeploy:

1 2 3 4 5 6 7 8 $ ant -Doperation=undeploy Buildfile: /Users/alitokmen/Downloads/jonas/build.xml 2013-02-01 19:24:59,523 : EarDeployer.doUndeploy : Undeploying simple-ear-1.3.2.ear 2013-02-01 19:24:59,648 : BaseWebContainerService.unRegisterWar : War simple-war-1.3.2.war no longer available 2013-02-01 19:24:59,649 : EarDeployer.doUndeploy : 'simple-ear-1.3.2.ear' EAR Deployable is now undeployed BUILD SUCCESSFUL Total time: 2 seconds

... but, once the undeploy is finished, JOnAS directly outputs:

1 2 3 $ 2013-02-01 19:28:25,039 : EarDeployer.doDeploy : Deploying 'EAR 'simple-ear-1.3.2.ear', application.xml provided, Content:, 1 WAR(s) {simple-war-1.3.2.war}' 2013-02-01 19:28:25,181 : BaseWebContainerService.registerWar : War simple-war-1.3.2.war available at the context /simpleweb. 2013-02-01 19:28:25,184 : EarDeployer.doDeploy : 'simple-ear-1.3.2.ear' EAR Deployable has been deployed (151 ms)

This is because CARGO forgets to delete the deployed file after undeployment, as a result the jonas.development mode redeploys it right after.

Status

Assignee

Savas Ali Tokmen

Reporter

Savas Ali Tokmen

Components

Fix versions

Affects versions

1.3.2

Priority

Major