You need a <servlet> block to define a servlet with the name default.
This should come before <servlet-mapping>

<servlet>
 <servlet-name>default</servlet-name>
 <servlet-class>_package.classname_</servlet-class>
</servlet>

Take a look at the DirectoryServlet in resin.conf as an example.

Bill

On 3/8/07, Ioannis Cherouvim <[EMAIL PROTECTED]> wrote:


Hello

I have a webapp which uses a servlet to catch all urls for processing
(front controller).
The pattern for this servlet is: <url-pattern>/</url-pattern>

Before that I need to tell the container that all static content will
pass from the default servlet (or fileservlet in resin).

In tomcat and jetty I do that using:

<servlet-mapping><servlet-name>default</servlet-name><url-pattern>*.swf</url-pattern></servlet-mapping>

<servlet-mapping><servlet-name>default</servlet-name><url-pattern>*.html</url-pattern></servlet-mapping>

<servlet-mapping><servlet-name>default</servlet-name><url-pattern>*.htm</url-pattern></servlet-mapping>

But when I try that in resin I get:
WEB-INF/web.xml:89: `default' is an unknown servlet-name.
servlet-mapping requires that the named servlet be defined in a
<servlet> configuration before the <servlet-mapping>.

I also tried 'file' instead of 'default' as I think that the
fileservlet of resin is called 'file', but no luck.

Any ideas?

thanks,
Ioannis


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to