Richard, I too, use 4.1., and in some of my context paths, I close it out with the slash at the end (the closing tag) like you do, and some have many other child XML attributes underneath them, and therefore leave it open, as I have a closing </Context> tag like so.
Make sure you don't have an extra one of these underneath your newest Context tag you added. -----Original Message----- From: richhse [mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 9:48 AM To: users@tomcat.apache.org Subject: Re: Context does not work Can I just follow up a point that was made earlier on as I am having a similar issue: I am using tomcat 4.1: I have defaultContext and all works fine. If I try to add a context as below to server.xml on a fedora box: if i do the same on a windows box, it works fine and the context works like a dream. The default web.xml looks fine (install default ) and there is nothing weird in the app web.xml (it works fine with just the defaultContext on the linux box). <Context docBase="NBDP" path="/NBDP" reloadable="true" /> Any advice appreciated, Richard Chris Riekenberg-2 wrote: > > Hey, > > I'm using Tomcat 5.5.12. If I created a context mapping in > /conf/server.xml to cnetext /welcome. > > <Context path="/welcome" docBase="StrutsDemo" /> > > If I do it like this, it works. But I read, that you should not > insert a mapping in server.xml (bad style?) You should prefer > to insert it into > /conf/context.xml > or > \conf\Catalina\localhost\<ApplicationName>.xml > > > In both I tried this one: > "<Context path="/welcome" docBase="StrutsDemo"> > </Context>" > > But it doesn't work. Did I do something wrong? > > greetz > Christian > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Context-does-not-work-tp14839818p15138139.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]