-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gael,
Marziou, Gael wrote: > So, we see that the problems occurs between > ProxySessionController.forwardRequest() and the first line of > PassThroughController.doHttp(). In fact we can go down to > PassThroughController.doGet() as it is just directly calling doHttp() > without any change. > > At this point, I must explain what does > ProxySessionController.forwardRequest(): it does select a > RequestDispatcher (a servlet) based on the request path info and then > calls forward() on it. Is it possible to post the code for this method, or even the entire class? I realize that it might be considered sensitive intellectual property, so I understand if that's not possible. If completely public distribution is not possible, but more limited distribution /is/ possible, you might consider sending that code directly to the folks who have been involved in this thread (and if they request it). For instance, I would be glad to look at your code. > An important point here is that we re-use the same RequestDispatcher got > once by ServletContext.getNamedDispatcher() over and over. > In Tomcat, the class implementing RequestDispatcher is > org.apache.catalina.core.ApplicationDispatcher > > So, it means that the 2 concurrent threads will call forward() on same > ApplicationDispatcher object. > > By looking at the code of ApplicationDispatcher, I would tend to think > that the answer is no because of fields like wrapRequest and requestURI > (there are other fields but they are unused) however the javadoc does > not mention it. > > Looking at org.apache.catalina.core.ApplicationContextFacade and > org.apache.catalina.core.ApplicationContext, it seems to me that > getNamedDispatcher() always return a fresh RequestDispatcher object, so > it seems that it is intended to be used only once per request. If you call getNamedDispatcher each time, does your problem go away? I would imagine that if the same dispatcher was being used all the time (and that was a problem), that you would get errors all over the place... - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFiW+A9CaO5/Lv0PARAtnAAKC8ACrPTRD+RXAw8rfG02ol6lxA7QCePCQO Wvv/f+ERkGd/z+hzaHLi714= =+Rkg -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]