• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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! -
reply
    Bookmark Topic Watch Topic
  • New Topic