This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I'm having a hard time deploying a war file on Tomcat 4.0 b7. I created an examples.war file from within the examples directory. So the paths of all the files inside do not start with "examples". I placed the examples.war file directly inside the webapps directory. And I did not change the server.xml file since there is already an Context entry with "examples" in it. I deleted the entire "examples" directory. I restarted Tomcat. And it refuses to restart. I've heard similar problems and I did not find the right answer. Any idea? Deploying a war is it just a matter of placing the war file inside a directory and registering it with the server.xml file or should we also un-war the files as well? Thanks, Francois
Tomcat should automatically un-war the file if the server.xml has been set correctly to match the war file name AND there is no matching directory already in the webapps directory. Therefore your war file needs be be in a new namespace, not examples. Bill
What do you mean by "to match the war file name"? Based on my readings I thought that the Context tag in the server.xml file is supposed to make a reference to the named context (ie: test): <Context path="/test" docBase="test" debug="0" reloadable="true"> 1) Do I have to actually write "test.war" somewhere in the server/xml file? 2) Must I use the Manager app that comes with Tomcat? I'm still confused as to how to enable it. Thanks, Francois