File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes RedeployFromTheJMXConsole Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "RedeployFromTheJMXConsole" Watch "RedeployFromTheJMXConsole" New topic


Prithvee Raj

Joined: Apr 20, 2010
Posts: 2

I have a webservice war file deployed in the jboss .
i have made a change in a particular class file and tried to redeploy it using the below steps in the wiki .

wiki :
Start the JMXConsole

Find the MainDeployer MBean (jboss.system:service=MainDeployer)

Invoke the listDeployedAsString() operation

Find your deployment and copy the URL, e.g.: file:/path/to/jboss-x.x.x/server/default/deploy/http-invoker.sar/invoker.war/

Find MBean operation redeploy() with param url of type java.lang.String, paste the URL as param value and invoke

I checked the server log - there was a message stating undeployin my war and then
deploying the war

in the temp folder and the work directory the tmp folder for war got deleted and new folders got created

But when i do a webservice invokation . i dont see my changes getting reflected .I added few loggers for debugging

They are missing in logs and i downloaded the class file and decompiled it and checked .
My changes are there in the class file

Please let me know how to fix this .
Is there any steps which i am missing .I cannot restart the jboss .It is a shared instance, other applications will be impacted by the down time

anandraj tadkal
Ranch Hand

Joined: Feb 22, 2011
Posts: 98


The changes done by the JMX Console are not permanent and hence I believe the application is not available for access.

Probably you can use the Admin Console to deploy the application, so that it becomes available for the client access.

1. Login into the Admin Console, navigate to the Applications --> Type of applications that needs to be deployed.
2. Deploy the application.

NOTE: When deployed , it copies over the deployment into the jbossAs/server/server-profile/deploy folder


Follow us on facebook:
I agree. Here's the link:
subject: RedeployFromTheJMXConsole
It's not a secret anymore!