Meaningless Drivel is fun!*
The moose likes JBoss/WildFly and the fly likes Web App Ctx Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Web App Ctx" Watch "Web App Ctx" New topic

Web App Ctx

James Clinton
Ranch Hand

Joined: Jun 23, 2003
Posts: 190
I have looked on the net, but cannot find an example on how to configure the context of a deployed war file.

What I want is have a war file named xxx.war, but when you start the application you goto /yyy/index.jsp.

I'm not in the position to deploy this within an ear, which would allow me to use jboss web context xml file...

Do anyone know how to acheive this?

Kind regards,

Jaikiran Pai

Joined: Jul 20, 2005
Posts: 9927

Try this - in the WEB-INF folder of your war, create a jboss-web.xml containing:

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: Web App Ctx
Similar Threads
Forward to JSP outside of war
whats wrong with this code?
Context and WAR file
Please help for Context root