Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBOSS - how to undeploy an app using JMX management console

 
Walker Rustin
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Aneesh Kumar. E.P
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.








Screenshot.png
[Thumbnail for Screenshot.png]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Annesh.

Great first post. Welcome to JavaRanch.

Mark
 
Guy Roth
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Guy Roth
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok - very clear

Thanks

 
kunu patil
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kunal,

Please create a separate thread to discuss your question.
 
kunu patil
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Started a new thread topic: "JBOSS 5.1 GA - How to start/stop application using command prompt"

Please help.

Thanks,
Kunal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic