tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronald Klop <ronald-mailingl...@base.nl>
Subject servlet-mapping order?
Date Mon, 08 Nov 2010 15:06:21 GMT
Hi,

I have a couple of servlets and the mapping in web.xml is like this:

    <servlet-mapping>
        <servlet-name>EntityServlet</servlet-name>
        <url-pattern>/servlets/*</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>RRDStatsServlet</servlet-name>
        <url-pattern>/servlets/rrdstats</url-pattern>
    </servlet-mapping>

On startup EntityServlet sometimes complains that is does not know anything about path /servlets/rrdstats.
This is an error I throw myself.
This is between:
Nov 08 15:35:32 rwlinux54 INFO: Starting Coyote HTTP/1.1 on http-8080
<errors here>
Nov 08 15:35:32 rwlinux54 Nov 8, 2010 3:35:32 PM org.apache.coyote.http11.Http11Protocol start
Nov 08 15:35:32 rwlinux54 INFO: Starting Coyote HTTP/1.1 on http-8443
Nov 08 15:35:32 rwlinux54 Nov 8, 2010 3:35:32 PM org.apache.coyote.http11.Http11Protocol start
Nov 08 15:35:32 rwlinux54 INFO: Starting Coyote HTTP/1.1 on http-8444
Nov 08 15:35:32 rwlinux54 Nov 8, 2010 3:35:32 PM org.apache.catalina.startup.Catalina start
Nov 08 15:35:32 rwlinux54 INFO: Server startup in 75504 ms

After 'Server startup' everything works as expected. So the order of servlet-mapping in web.xml
doesn't look important to me.
What is happening? Are servlets available to early? Before all the mappings are ready.

And what is the best thing to do for me to fix this?

Using Tomcat 6.0.29 on Debian Lenny with java 6.0.20 from Debian pkgs.

Ronald.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message