Re: Overhead of having a WAR file in docPath
I found that basically Tomcat doesn't auto-deploy when one explicitly declares a context. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment Morten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Overhead of having a WAR file in docPath
Howdy, Yup, by design, and that's why I said you were trying too many things at once ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Morten Sent: Thursday, October 09, 2003 8:14 AM To: [EMAIL PROTECTED] Subject: Re: Overhead of having a WAR file in docPath I found that basically Tomcat doesn't auto-deploy when one explicitly declares a context. http://jakarta.apache.org/tomcat/tomcat-4.1- doc/config/host.html#Automatic%20Application%20Deployment Morten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Overhead of having a WAR file in docPath
Howdy, You're doing too much I think ;) Do you have any custom things inside the Context element, e.g. a Logger/Valve? If not, you don't need a Context element in server.xml, so take it out and let tomcat discover the webapp. If you do have custom context configuration requirements, use either myapp.xml or a Context tag in server.xml, but not both: they're conflicting. If you don't have custom context configuration requirements, again, drop myapp.xml. I would start with just the .war file in webapps, no myapp.xml, nothing in server.xml, and see what happens. Does tomcat properly discover and deploy your webapp, or does it run into errors? Yoav Shapira Millennium ChemInformatics -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Morten Sent: Wednesday, October 08, 2003 3:23 PM To: [EMAIL PROTECTED] Subject: Overhead of having a WAR file in docPath Hi, I'm curious what overhead there is in having a war file in the context docPath attribute, eg. Context path=/myapp docBase=/myapp.war .. /Context What's the overhead of this? Ideally, I'd be able to use Context path=/myapp docBase=myapp ... /Context But in this case, Tomcat (4.1.24) does not find and explode the WAR file - even though I have myapp.war and myapp.xml in the webapps/ dir, why? Thanks in advance, Morten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Overhead of having a WAR file in docPath
Hi, Thanks for the suggestions, but the problem is that I'm declaring 2 data sources for my context. Initally, I declared those in server.xml, but that failed and while browsing about in the archives for a solution, I saw that people recommended using a separate XML file in the webapps directory. If I place only the WAR file in the webapps/ dir, it gets expanded fine and works fine, except for the data sources. So I don't have anything in server.xml, only myapp.xml and myapp.war which I copy to webapps/, I start up Tomcat, and it doesn't find the application unless I set docPath to myapp.war, and even then, the WAR file does not get expanded. Thanks, Morten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]