> > > From: Edward Quick [mailto:[EMAIL PROTECTED] > > Subject: multi-level 
> > > context path> > > > The context path is set to deploy it to /dpm/myApp.> 
> > > > What context path? If you're talking about the path attribute of the> 
> > > <Context> element, it must not be used unless the <Context> element is> 
> > > in server.xml (strongly discouraged). The best you can hope for is that> 
> > > the path attribute will be ignored.
 
In my webapp, I have a context.xml file in the META-INF directory with 
path="/dpm/myWebapp"
Nothing webapp specific in the server.xml as I realise changes there require a 
restart.
> > > However tomcat is deploying it to /myApp.> > What mechanism are you using 
> > > to deploy your webapp?
 
I'm not sure how Netbeans does it. I just click Build, then Run and it works as 
I want. It doesn't appear to be configured from the server.xml either. 
On the broken server, I used Tomcat Manager.
 
On my pc (running netbeans), I can see 
apache-tomcat-6.0.14_base\conf\Catalina\localhost\dpm#myWebapp.xml
I can also see apache-tomcat-6.0.14_base\work\Catalina\localhost\dpm_myWebapp 
in the work directory.
I don't have a dpm directory in myApp anywhere, so as far as I can see, the 
netbeans tomcat is doing what I'm telling it to do in the myApp context.xml 
path.
> > > I've tried changing the myApp.war file name to dpm#myApp.war, > > That's 
> > > not effective; the # delimiter is only recognized in the appname> when 
> > > using a <Context> element located in a> 
> > > conf/Catalina/[host]/[appname].xml file. When using the multi-level> 
> > > appname, the webapp .war file or directory must be located outside of> 
> > > the <Host> appBase (usually webapps), or you'll get double deployment> 
> > > and related confusion.> > - Chuck
 
Thanks for your help.
 
Ed.
_________________________________________________________________
Free games, great prizes - get gaming at Gamesbox. 
http://www.searchgamesbox.com

Reply via email to