You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/01/10 10:09:29 UTC
DO NOT REPLY [Bug 15950] New: -
automatic assignment of context path leads to http 404 errors for servlets
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15950>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15950
automatic assignment of context path leads to http 404 errors for servlets
Summary: automatic assignment of context path leads to http 404
errors for servlets
Product: Tomcat 4
Version: 4.1.18
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: rregan@attbi.com
In /tomcat-docs/appdev/deployment.html a method is described to deploy a web
app, ie: "Copy unpacked directory hierarchy into a subdirectory in directory
$CATALINA_HOME/webapps/." I'm a total newbie and there may be a way around this
but I've spent 2 days trying to figure out why my servlets work when I put them
in the examples folder but not when I put them into a folder created as above.
It appears that the docbase Tomcat creates this way is an absolute path that is
not recognized when trying to run any servlets in /WEB-INF/classes. It just
gives HTTP 404 errors saying the requested resource is not available. When I
edited server.xml to change docbase="F:\Tomcat\webapps\myProjects" to
just "myProjects" everything worked fine. Several folders created by Tomcat,
including ROOT and tomcat-docs, also have absolute paths in server.xml and I
could not get the servlets to work in these folders either until I changed to
relative paths.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>