Re: Tomcat 5.5 context.xml, how to configure the Host element

2008-08-26 Thread jerrycat
Ooops, I think the [code] tags removed the content. Here is the context.xml Context path= docBase=C://Program Files//Apache Software Foundation//Tomcat 5.5//webapps//test Resource name=jdbc/testDB

Re: Tomcat 5.5 context.xml, how to configure the Host element

2008-08-26 Thread Markus Schönhaber
jerrycat wrote: Here is the context.xml Context path= docBase=C://Program Files//Apache Software Foundation//Tomcat 5.5//webapps//test [...] /Context Please read the docs: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html Especially the last paragraphs in the descriptions of the

Re: Tomcat 5.5 context.xml, how to configure the Host element

2008-08-26 Thread jerrycat
Thanks, just a question here. Set the appBase attributes for all your Host elements to different paths and make sure that not one is contained in another. For example, if you've got two hosts, localhost and www.test.com, you could configure them like that: Host name=localhost

Re: Tomcat 5.5 context.xml, how to configure the Host element

2008-08-26 Thread Markus Schönhaber
jerrycat wrote: Thanks, just a question here. Set the appBase attributes for all your Host elements to different paths and make sure that not one is contained in another. For example, if you've got two hosts, localhost and www.test.com, you could configure them like that: Host name=localhost

Re: Tomcat 5.5 context.xml, how to configure the Host element

2008-08-26 Thread jerrycat
[Tried to read the tomcat docs, but it is a bit confusing] Right, my goal is to deploy war files that get unpacked so that I can see the directory structure. I am not interested in autoDeploy or deployOnStartup, unless it is necessary. Here is a paragraph from the docs: Finally, note that if

Re: Tomcat 5.5 context.xml, how to configure the Host element

2008-08-26 Thread jerrycat
[Tried to read the tomcat docs, but it is a bit confusing] Right, my goal is to deploy war files that get unpacked so that I can see the directory structure. I am not interested in autoDeploy or deployOnStartup, unless it is necessary. Here is a paragraph from the docs: Finally, note that if

Re: Tomcat 5.5 context.xml, how to configure the Host element

2008-08-26 Thread David Smith
If all you want to do is see the directory structure, why don't you just unzip the .war file? That's all a .war/.jar file essentially is -- a zip archive. Admittedly you can't just zip any folder and get a war file, but you can see the contents just by unzipping it. --David jerrycat wrote:

Re: Tomcat 5.5 context.xml, how to configure the Host element

2008-08-26 Thread jerrycat
Right, apparently deployOnStartup must be set to true otherwise the sites don't get uploaded. (No idea in which case it could be set to false) I understand that I can upload unzipped war files, but I still would like to move over war files to my production server. Anyway, apart from the packed

Tomcat 5.5 context.xml, how to configure the Host element

2008-08-25 Thread jerrycat
Dear all, I understand that Tomcat 5.5 prefers that your web application comes with a context.xml file under the META-INF folder. So I added a context.xml file under the META-INF folder of my web application, please have a look below. context.xml [code] [/code] Ok, that is good so

Re: Tomcat 5.5 context.xml, how to configure the Host element

2008-08-25 Thread Markus Schönhaber
jerrycat wrote: I understand that Tomcat 5.5 prefers that your web application comes with a context.xml file under the META-INF folder. OK. So I added a context.xml file under the META-INF folder of my web application, please have a look below. context.xml [code] [/code] Looks