jQuery in Action, 2nd edition*
The moose likes JBoss/WildFly and the fly likes WAR file appears in JMX but I can't reach it in a web browser 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 "WAR file appears in JMX but I can Watch "WAR file appears in JMX but I can New topic
Author

WAR file appears in JMX but I can't reach it in a web browser

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
Hi,

I'm using JBoss 5.1 AS on Mac 10.5.6. I used the Mavn 2 JBoss plugin to deploy a WAR file to JBoss. The WAR shows up when I visit the "jboss.web.deployment" of the JMX-console (I see war=/myco-galc-capitol-tours-webapp ). However, when I visit the app's context path URL, I get a 404. I don't see any errors in my logs to indicate why the deployment would have failed (Maven didn't tell me anything either).

How do I tell in the JMX console what URL JBoss expects a deployed WAR file to resolve to?

Thanks, - Dave
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

When you start the app server, or deploy your app, you should see some line line this in the console log:

23:01:33,591 INFO [TomcatDeployment] deploy, ctxPath=/vote

In this case, the app is vote.war and the URL is http://localhost:8080/vote

If you already know the context, you can find this mbean (the context is "/vote" in this case): jboss.deployment:id="jboss.web.deployment:war=/vote",type=Component

I suspect the url you need is http://localhost:8080/myco-galc-capitol-tours-webapp

I am now patiently awaiting your question on how to specify a different context name...


JBoss In Action
Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
The problem turned out to be the jboss-web.xml file (which specifies the context path) was not getting included in the WAR. Oops! -
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: WAR file appears in JMX but I can't reach it in a web browser
 
Similar Threads
username and Password for Jboss JMX console
JBOSS - how to undeploy an app using JMX management console
implement JMX deployment in JBOSS 4.0.5
Jboss doesn't start - hangs on resource:jboss-log4j.xml
How do I find out the path to my WAR file in the JMX console?