Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Disable JBoss Management

 
Ranch Hand
Posts: 838
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I log into <servername>:<portnumber> without specifying a war directory I get directed into the JBoss management page. Is there a simple way to disable all management pages for JBoss? Appreciate any help on this.

Rob
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

When I log into <servername>:<portnumber> without specifying a war directory I get directed into the JBoss management page



In %JBOSS_HOME%/server/default/deploy/jbossweb-tomcatxxx.sar folder there's a folder (application) named ROOT.war. You can either delete the ROOT.war or even rename it to ROOT.war.bak (so that it does not get deployed).

The next time you access http://<servername>:<portnumber> you will no longer see the JBoss page. Also, note that you might end up seeing a Page not Found or maybe a similar error when you access this URL, because there's no longer an application which is deployed as default. What you could do is configure your application to act as the default. Assuming that your application is named myApp.war and is placed in %JBOSS_HOME%/server/default/deploy folder, all you have to do (other than deleting/renaming the ROOT.war) is add a jboss-web.xml inside the WEB-INF folder of myApp.war. The jboss-web.xml should contain (in addition to whatever else you might already be having in that):




So the next time you access http://<servername>:<portnumber> you will see the index page of your application.
 
Rob Hunter
Ranch Hand
Posts: 838
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<contect-root/> also works doesn't it? Thanks for the info. I wasn't sure if disabling or setting proper permissions on the ROOT.war would screw up anything else running (i.e. other important components being needed by JBoss in there). Thanks again.

Rob
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, the context-root in the jboss-web.xml should be fine too.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic