On 08/11/2010 15:06, Ronald Klop wrote: > 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.
Does it perform an HTTP request to during init to rrdstats? p > 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. > >
0x62590808.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature