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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to