Is there a replacement for the MainDeployer MBean on JBoss EAP 5?

Solution Verified - Updated -

Issue

  • The MainDeployer MBean does not function correctly in JBoss EAP 5.x. This leaves customers without a good way to programmatically deploy or undeploy applications.
  • Customers are running into issues deploying/undeploying items using the MainDeployer MBean via JMX. For example, if an EAR is copied to the deploy directory then JBoss started, that EAR cannot be undeployed using the MainDeployer MBean. The following error will show up in the server.log:
file:/home/user/dev/java/jboss-eap-5.0/jboss-as/server/default/deploy/SimpleEAR_EJB3.ear' : package not deployed
  • How to force programmatically the undeployment of what has been already deployed?

Environment

Red Hat JBoss Enterprise Application Platform (EAP)

  • 5.x (prior to 5.1.2)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content