Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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
  • 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
  • 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! -
 
Bring out your dead! Or a 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
    Bookmark Topic Watch Topic
  • New Topic