aspose file tools*
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
Author

RedeployFromTheJMXConsole

Prithvee Raj
Greenhorn

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 : http://community.jboss.org/wiki/RedeployFromTheJMXConsole
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

Hi,

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

Cheers,
Anandraj
http://weblogic-wonders.com


Regards,
Anandraj
http://weblogic-wonders.com
Follow us on facebook:
https://www.facebook.com/weblogicwonders
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RedeployFromTheJMXConsole
 
Similar Threads
xpetstore deployment in JBoss 3.2.3
Error while redeploying application to JBoss
How to reload an application.
not getting jmx console
how to configure HSQLDB Datasource name in JBoss