Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 6th, 2008, 03:22 PM
Registered User
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unable to set context in web.xml or context.xml.

I'm attempting to set up a War whose file name will change according to the version of the application it contains. I've read that you can set the context path of the running app by creating a context.xml file in META-INF, or by adding parameters to the web.xml file in WEB-INF. So far, I haven't had any luck with that. Can anyone suggest a way that actually works?

Thanks,
Dave


 
Old March 7th, 2008, 07:59 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

create an xml file with <Context path="/myContext" docBase="myContext.war" .../> tag in it, this xml file should also be name as the war file and place this file [if you are using tomcat] in TOMCAT_HOME/conf/Catalina/localhost directory.


- Rakesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create context help in web application? Alexds ASP.NET 2.0 Basics 1 February 1st, 2006 06:23 PM
Tomcat 5.5 and context.xml ashiers Apache Tomcat 0 May 12th, 2005 08:57 PM
Com context andris2000 VB Components 3 June 24th, 2004 08:57 AM
context menu mookashi Pro VB 6 0 March 16th, 2004 06:48 AM
context help smukher Visual C++ 0 June 19th, 2003 08:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.