Hello Kristj�n, Unless you need to configure something specifically for a particular context, there is no need to put a <Context ...> entry into the server.xml. Tomcat will create default entries. With no entry, put your war file or directory in Tomcat's webapps folder and start Tomcat. If the war file is named "foo.war", then it will be automatically expanded to a directory named "foo" and deployed to the "/foo" context. You can access it as:
http://localhost:8080/foo/ Note that war files are *not* expanded to a directory if you have defined a context with the path of "/foo" and the war file is named "foo.war". In this case, you will have to expand it yourself and then start the server. Don't ask me why that is the behavior. It just is. Jake Wednesday, October 16, 2002, 11:13:47 AM, you wrote: KR> Hello everybody! KR> How does that servers.xml tie in with the : KR> <Context path="/foo" docBase="foo" ....... snip ....... /> KR> ServeletContext/Context-tags? KR> I am trying to port somebody elses (Grrrrrrr..... no docu) webapps from KR> Tomcat 3.2.1 to Tomcat 4.0.6 and so far I have figured out that 4.0.6 KR> needs ServeletContext entries (see Ex. above) to be written in KR> $CATALINA_HOME(4.0.6)/conf/server.xml for each servelet. The funny thing KR> is that the Tomcat 3.2.1 $CATALINA_HOME(3.2.1)/conf/server.xml file do not KR> contain any ServeletContext entries and Tomcat 3.2.1 does not seem to need KR> them. (I searched the $CATALINA_HOME(3.2.1)/conf/server.xml file for 3.2.1 KR> in the vi editor looking for the Servelet paths and found nothing). The KR> new 4.0.1 server however seems to need the ServeletContext entries to be KR> in $CATALINA_HOME(4.0.6)/conf/server.xml, at least I get a bunch of 404 KR> errors if they are absent. KR> How precisely did they change server.xml and the architecture of the KR> Tomcat server from 3.x to 4.x? KR> Greetings and Salutations KR> Kristjan Runarsson KR> -- KR> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> KR> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Best regards, Jacob mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
