Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem turned out to be the jboss-web.xml file (which specifies the context path) was not getting included in the WAR. Oops! -
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic