Bug 518114 - Undeploy via JMX fails
Summary: Undeploy via JMX fails
Status: NEW
Alias: None
Product: Virgo
Classification: RT
Component: runtime (show other bugs)
Version: 3.7.0.RELEASE   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 3.8.0.M02   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-12 06:41 EDT by Bill Mair CLA
Modified: 2017-06-23 04:16 EDT (History)
1 user (show)

See Also:


Attachments
3.7.0.RELEASE log.log (128.26 KB, application/zip)
2017-06-12 06:41 EDT, Bill Mair CLA
no flags Details
maven pom for org.eclipse.virgo.samples.recipe.restservice (4.12 KB, application/xml)
2017-06-17 02:52 EDT, Bill Mair CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Mair CLA 2017-06-12 06:41:38 EDT
Created attachment 268865 [details]
3.7.0.RELEASE log.log

Using the JMX API to undeploy a previously deployed and active bundle fails.

[2017-06-11 22:17:17.265] INFO  start-signalling-1           org.eclipse.virgo.medic.eventlog.default                         WE0001I Started web bundle 'org.eclipse.virgo.samples.recipe.restservice' version '0.0.1.SNAPSHOT' with context path '/restservice-guide'. 
[2017-06-11 22:17:17.266] INFO  start-signalling-1           org.eclipse.virgo.medic.eventlog.default                         DE0005I Started bundle 'org.eclipse.virgo.samples.recipe.restservice' version '0.0.1.SNAPSHOT'. 
[2017-06-11 22:17:17.266] INFO  start-signalling-1           o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'KernelBundleClassLoader: [bundle=org.eclipse.virgo.samples.recipe.restservice_0.0.1.SNAPSHOT]' popped and set to 'org.eclipse.core.runtime.internal.adaptor.ContextFinder@b345e4a' 
[2017-06-11 22:23:28.636] ERROR  TCP Connection(5)-127.0.0.1 org.eclipse.virgo.medic.eventlog.default                         DE0506E Cannot undeploy bundle 'org.eclipse.org.eclipse.virgo.samples.recipe.restservice' version '0.0.1.SNAPSHOT'. Artifact not found.

Attached is the full log of the server being started, the WAB being deplyed and then the attempt at undeploying the WAB.
Comment 1 daniel marthaler CLA 2017-06-15 06:44:16 EDT
Hi Bill

I've used the jconsole and I was able to undeploy active bundles. Reproducing the behavior you describe was not possible for me.

Can you please give more information on how I can reproduce?

Regards,
Dani
Comment 2 Bill Mair CLA 2017-06-17 02:52:23 EDT
Created attachment 268953 [details]
maven pom for org.eclipse.virgo.samples.recipe.restservice

Here is the POM I am using to deploy and undeploy the WAB.

Using "mvn virgo:deploy" and "mvn virgo:undeploy" results int the observed behaviour.