Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 607305 - Deleting an exploded .ear file from JON doesn't remove the exploded contents
Deleting an exploded .ear file from JON doesn't remove the exploded contents
Status: NEW
Product: RHQ Project
Classification: Other
Component: Plugins (Show other bugs)
All Linux
low Severity medium (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
Depends On:
  Show dependency treegraph
Reported: 2010-06-23 14:26 EDT by dsteigne
Modified: 2018-10-27 12:13 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description dsteigne 2010-06-23 14:26:36 EDT
Description of problem:

If you deploy an .ear file to an EAP 5.0 instance with the JON GUI, you will see the .ear file and it's contents (.war, .jar files) in that Resources inventory.  If you then click on the .ear file to Delete it the exploded files remain and have to be removed with &debug=true

Expected results:

Additional info:
Comment 1 Pilar Bravo 2011-01-19 04:29:37 EST
I'm trying to undeploy an EAR remotely via CLI.

I can easily delete the EAR with


However, the corresponding EJBs (in my case Stateless Session Beans) are not deleted. They are not EAR's child resources, so the only way I've found to delete them is this (or use debug=true in the GUI):

var SLSB = "Stateless Session Bean"
if (childType.match(new RegExp(SLSB))){
println(" SLSB found with name " + child.name + " and ID " + child.id + " and type " + childType);
println(" deleting....");
catch( ex ) {
println(" --> Caught " + ex );

The problem I find at this point is this exception:

Caused by: org.rhq.core.clientapi.agent.PluginContainerException: Component does not support the [org.rhq.core.pluginapi.inventory.DeleteResourceFacet] interface: ResourceContainer[resource=Resource[id=12421, type=Stateless Session EJB, key=jboss.management.local:EJBModule=BitacoraEJB-3.4.jar,J2EEApplication=BitacoraEar.ear,J2EEServer=Local,j2eeType=StatelessSessionBean,name=MaterialBean, name=MaterialBean, parent=nostromo:1099 node1]]

Apparently the EJBs don't support the delete operation.

This is a big problem when using JON to deploy/undeploy applications remotely.

Note You need to log in before you can comment on or make changes to this bug.