Loader Element in Tomcat Context Fragment causes "Servlet default is not available"

D

Daniel Bove

Okay, I was experimenting with Context Fragments in Tomcat 5.0.16 and
I am having all sorts of problems. I was hoping someone could point
out what I am doing wrong.

I've boiled everything down to this. Create a new web application
that contains nothing but an image and a minimal web.xml file.

-----------------
The web.xml looked something like this:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
<display-name>New Test</display-name>
</web-app>

-----------------

and then, in conf/Catalina/localhost, create a context fragment called
newtest.xml. It looks like this:

<Context path="/newtest" docBase="newtest" privileged="true"
reloadable="true" debug="0">
<Loader checkInterval="15" />
</Context>

I also tried filling in the defaults, leaving them, et cetera, et
cetera.

-----------------

If I try to reach the image from my browser when there is no Loader
element in the Context fragment then everything works as expected. If
I add the Loader element to my context fragment, attempts to access
the image return:

HTTP Status 404 - Servlet default is not available

type Status report

message Servlet default is not available

description The requested resource (Servlet default is not available)
is not available.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,709
Latest member
AustinMudi

Latest Threads

Top