I have a servlet defined in a package and I tried deploy it by adding the
following entry to orion/default-web-app/WEB-INF/web.xml:

 <servlet>
  <servlet-name>runtest</servlet-name>
  <servlet-class>test.mytest.TestServlet</servlet-class>
 </servlet>

and then copying the package structure to orion/servlets, creating for
example this directory hierarchy:

orion/servlets
orion/servlets/test
orion/servlets/test/mytest
orion/servlets/test/mytest/TestServlet.class

I also had a directory named "mytest" in the orion/default-web-app
directory. This directory contains a number of .jsp and .jpg files.

This is what happens: I get a 404 (page not found). If I either rename the
directory from "mytest" to something else or change the test.mytest package
to something else, it works. In other words there is some sort of name
conflict on mytest.

Can anyone tell me 1) why this occurs? 2) what's the fix (besides what I
tried above) and 3) is this a bug or am I misunderstanging something
configuration-wise?

Thanks,

Kit Cragin


Reply via email to