This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Web App Ctx" Watch "Web App Ctx" New topic
Author

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,

James
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9343
    
111

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: http://aspose.com/file-tools
 
subject: Web App Ctx
 
Similar Threads
whats wrong with this code?
Please help for Context root
Obfuscation
Context and WAR file
Forward to JSP outside of war