I am having trouble creating a context whose path attribute has a
subdirectory in it. JSP's don't seem to work.
For example:
<?xml version="1.0" encoding="ISO-8859-1"?>
<webapps>
<Context path="/myapp/Registration"
docBase="webapps/registration"
debug="0"
reloadable="true" >
</Context>
</webapps>
startup shows:
2001-09-05 18:03:27 - WorkDirSetup: Creating work dir
/usr/local/tomcat/work/DEFAULT/myapp%2FRegistration
2001-09-05 18:03:27 - ContextManager: Adding DEFAULT:/myapp/Registration
2001-09-05 18:03:27 - WorkDirSetup: Creating work dir
/usr/local/tomcat/work/DEFAULT/webapp
hitting http://server:8080/myapp/Registration in a browser provides a
directory listing.
So far so good.
However, hitting http://server:8080/myapp/Registration/anon_image.jsp
returns a "Not Found (404)"
Logs show
2001-09-05 18:06:42 - Ctx(/myapp/Registration) : Compiling:
/anon_image.jsp to anon_image_0
2001-09-05 18:06:44 - Ctx(/myapp/Registration) : Class not found:
anon_image_1
2001-09-05 18:06:44 - Ctx(/myapp/Registration) : Status code:404
request:R( /myapp/Registration + /anon_image.jsp + null) msg:null
The work directory (work/DEFAULT/myapp%2FRegistration) contains
anon_image.ver, anon_image_1.class, and anon_image_1.java. These files
exactly match the temp files created when the context path is just
/Registration (which works) instead of /myapp/Registration. Under 3.3
Beta1 path="/myapp/Registration" works perfectly. Changing the path to
"/Registration" makes it work under 3.3 Beta2.
Any ideas?
Thanks,
John Paul