tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: servlet mapping question(I believe)
Date Sun, 03 Feb 2008 18:51:09 GMT
Terence Kent wrote:
> Conclusion:
> My understanding from this configuration is that all requests on port 
> 8010, that end with the extension .ext should be forwarded to the 
> servlet "mycompany". From what I've read, any paths created in the 
> ${APP_BASE} directory should be irrelevant in this mapping and all logic 
> comes from the web.xml file. My understanding appears to be wrong and I 
> would greatly appreciate being pointed in the right direction.

You can't set appBase == docBase.

The following should do what you want:
rename /opt/path/to/webapps/page to /opt/path/to/webapps/ROOT
use appBase="/opt/path/to/webapps"
use docBase="ROOT"

Also, I wouldn't configure the context in server.xml. See 
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html for other options.

HTH,

Mark


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message