Re: Problem with default context when moving from 5.5.7 to 5.5.12
Thanks very much Chuck! That did indeed fix my problem. I have a couple of related questions though... This worked fine for me in 5.5.7 (on many machines). But it shouldn't have. I suspect this was one of the bugs fixed between .7 and .12, where the documented rules are more tightly enforced. I agree, but the best documentation I could find on this was: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html ...and there's nothing in that document that would lead me to try what you suggested, even reading now knowing that is the solution. In addition, there is that spot (directly quoted in my first email, but I'll paraphrase here) that first says don't put context elements in your server.xml file then says context elements for the default context must go in your server.xml file and then says you must provide a default context. I don't see how all three statements can be true, and yet that is all I had to go off of. Where are you getting documentation that more accurately explains the context setup, and led you to the solution you provided? Thanks! Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with default context when moving from 5.5.7 to 5.5.12
From: Jason Burrows [mailto:[EMAIL PROTECTED] Subject: Re: Problem with default context when moving from 5.5.7 to 5.5.12 I agree, but the best documentation I could find on this was: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html ...and there's nothing in that document that would lead me to try what you suggested, even reading now knowing that is the solution. The documentation has not kept up with the implementation. (Haven't yet met a programmer that actually likes to write documentation.) The key piece of hard-to-find information is that the default web app must be specified with the context name (not path) ROOT. then says context elements for the default context must go in your server.xml file I can't find any place that says that. What it does say is In addition, you MUST define a Context with a context path equal to a zero-length string. Since zero-length filenames are a bit tricky, the current mechanism uses the name ROOT to create a zero-length context path. Where are you getting documentation that more accurately explains the context setup, and led you to the solution you provided? Reading this mailing list carefully, experimenting, and not sleeping much. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with default context when moving from 5.5.7 to 5.5.12
From: Jason Burrows [mailto:[EMAIL PROTECTED] Subject: Problem with default context when moving from 5.5.7 to 5.5.12 Previously, I had a context.xml file in my tomcat\conf directory with this context tag (removed sub elements for brevity): Context path= reloadable=false docBase=c:\eclipse\myProject crossContext=true /Context This worked fine for me in 5.5.7 (on many machines). But it shouldn't have. I suspect this was one of the bugs fixed between .7 and .12, where the documented rules are more tightly enforced. After installing 5.5.12, I see there is a context element in this file already. As I understand it, the conf/context.xml provides global settings applicable to all webapps; it is not there to define a context for any particular webapp, just extend the context for each. How do I set up a default context in 5.5.12 for a web application that is not located in the web apps directory (I could do this for 5.5.7 and before using the method described above). Rename your context.xml file to ROOT.xml (case sensitive) and put it in conf/Catalina/localhost (assuming that's the only Host you have defined). Remove the path attribute if it's still in there. Include a docBase attribute that specifies the location of your webapp (you probably already have that). Delete the webapps/ROOT directory. Restart Tomcat. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]