Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RedeployFromTheJMXConsole  RSS feed

Prithvee Raj
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 98
Oracle Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!