File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes JBOSS - how to undeploy an app using JMX management console Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBOSS - how to undeploy an app using JMX management console" Watch "JBOSS - how to undeploy an app using JMX management console" New topic
Author

JBOSS - how to undeploy an app using JMX management console

Walker Rustin
Ranch Hand

Joined: Mar 08, 2004
Posts: 37
Hi,
I am using JBoss 3.2 with eclipse (with myeclipse plugin). Time and again eclipse halts and asks to manually undeploy the app from JBoss. I have to stop JBoss to undeploy the app. I was wondering if there is a way to undeploy my app using JMX management console.
thanks.
- walk rustin


SCBCD
Aneesh Kumar. E.P
Greenhorn

Joined: Jun 06, 2009
Posts: 1
Hi Walker Rustin,


Yes you can undeploy your applications using jboss web console.

1) Open the web console of the jboss. http://localhost:8080/web-console/
2) In the jboss management console navigate in to System --> JMX MBeans --> jboss.web.deployment
3) Then from the list, select the application you want to undeploy.
4) Now in the right window you can see the details of the application you have selected . You can also see the options for destroy,
stop ,start and create options. To undeploy you can select the destroy option

5) Now you have undeployed your application.


Please find the attachment for screen shots.










[Thumbnail for Screenshot.png]

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Annesh.

Great first post. Welcome to JavaRanch.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Guy Roth
Ranch Hand

Joined: Aug 09, 2009
Posts: 74
I deployed my application (a .war file) to JBoss by just copying the file through the file-sysytem into the foldar:
jboss-5.1.0.GA\server\default\deploy
I got an error during startup that this application failed to deploy.

now I'd like to redeploy a newer version of this .war file. When I opened jmx web-console, as the instruction here guided,
I didn't see my application.
-. is it becuase it failed to deploy? In other application server such as Websphere and Weblogic I can see in console also the application that failed to be deployed too and by that manage them too.
-. how should I now switch the application? just override it in the same location in the filesystem?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9953
    
161

For 5.1.0 version of AS, there's an admin console available at http://IP:port/admin-console. You will probably be able to see your application there. The easiest way to redeploy the failed application is to overwrite the one on the filesystem manually. I haven't used the admin-console yet for most of my work so i don't know if it's easier to do it through admin-console.

If you have any further questions, please create a new topic and we can discuss it there.

[My Blog] [JavaRanch Journal]
Guy Roth
Ranch Hand

Joined: Aug 09, 2009
Posts: 74
Ok - very clear

Thanks

kunu patil
Greenhorn

Joined: Sep 24, 2007
Posts: 20
Hi

I am using JB0ss 5.1 GA. Is it possible to start/stop an application, deployed in default server configuration, using command prompt?

For example, I have two applications app1 and app2 deployed in default server config. Is there any command to stop app1 using command prompt, without stopping app2?

I understand that same can be done using admin-console, but if in case it is not possible to access it, how can we start/stop appliactions?

Thanks.
Kunal
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9953
    
161

Kunal,

Please create a separate thread to discuss your question.
kunu patil
Greenhorn

Joined: Sep 24, 2007
Posts: 20
Started a new thread topic: "JBOSS 5.1 GA - How to start/stop application using command prompt"

Please help.

Thanks,
Kunal
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBOSS - how to undeploy an app using JMX management console
 
Similar Threads
Start/stop applications using JBOSS API
JMX Vs MC4J
JBoss admin console
Reg.Exception while calling a method in ContextDestroyed JBOSS 5.0
JBoss problems