On 05.03.2010 17:28, André Warnier wrote:
David Bolsover wrote:
I'm not sure I'm any further along with this...

If I take this first URL (from Tomcat port 8080) and paste into my
browser address bar, I get the expected image.

http://localhost:8080/Yosemite/faces/a4j/s/3_3_3.CR1org.ajax4jsf.resource.UserResource/n/n/-1487394660/DATA/eAGNkk1rFEEQhitLgh9RCEYQQUE0mES0B2VzUomuiTGyyaJL!ARDzUztbg8z0213z-7IojcRFEXwKih48KIXPfkXAnrIwV8giIgXEbzaMzvoukiwb9VUv2899farbzCiFRwSqskwwLQc6AZTpEWiPGIrmtTFophYUXwODUJ2xme-lmC4Cts9RWjojIgNxcbAjmqAbXRCjJtOzQ3IM8ersIlSya3mTbgDQ1XYHAmfNzj5RT3SxjChvEilneVgJpGyBnqkmSciKWKrzerGGp0ToU-qjm1SV9fennzy9P1SCUpV2OKFqPUyRvT3DHWjeNy0M2zV9o2faxROBk5l0Ip7rZ5Vh1yUkhlshtxlS2Rawp9PpR1ccxH36gqPfSt42kdphEoUjF!PiVlGzArixx-uPBvT02EJIJV2WaX!siqkB30LK7uXqTwjiV6LWIBakmIUsvNaDj6ZHe3ix13q4Tbrr2B3b522dbDvjbP24NPP8qNsTkvyu-8P9Iu79-vfr62fyEk6F6DmyMQNuecw5lyerxxZXD7rBFo2nA6FNiladYV!i2U3U8dmDpfL0!smD3QXKCa75TnhJZENskIYM4k8NrcnLdX-Pqp!zLgYyfDe89l3N17-qGU8WXijnQnYs5EuDLcF9wfTKf7C6!VLn7!s7S70pbMzQ2dcsFpiZGJsI2FkYCy!7ktWyjSV0sDQ0V8!SyDk;jsessionid=1EE788D6C88C67E5E28CC67DA2402866?timestamp=Fri%20Mar%2005%2015%3A47%3A44%20GMT%202010


If I take this second user (from IIS via redirector 1.2.30 to tomcat),
I do not get an image.

http://localhost/Yosemite/faces/a4j/s/3_3_3.CR1org.ajax4jsf.resource.UserResource/n/n/-1487394660/DATA/eAGNkk1rFEEQhitLgh9RCEYQQUE0mES0B2VzUomuiTGyyaJL!ARDzUztbg8z0213z-7IojcRFEXwKih48KIXPfkXAnrIwV8giIgXEbzaMzvoukiwb9VUv2899farbzCiFRwSqskwwLQc6AZTpEWiPGIrmtTFophYUXwODUJ2xme-lmC4Cts9RWjojIgNxcbAjmqAbXRCjJtOzQ3IM8ersIlSya3mTbgDQ1XYHAmfNzj5RT3SxjChvEilneVgJpGyBnqkmSciKWKrzerGGp0ToU-qjm1SV9fennzy9P1SCUpV2OKFqPUyRvT3DHWjeNy0M2zV9o2faxROBk5l0Ip7rZ5Vh1yUkhlshtxlS2Rawp9PpR1ccxH36gqPfSt42kdphEoUjF!PiVlGzArixx-uPBvT02EJIJV2WaX!siqkB30LK7uXqTwjiV6LWIBakmIUsvNaDj6ZHe3ix13q4Tbrr2B3b522dbDvjbP24NPP8qNsTkvyu-8P9Iu79-vfr62fyEk6F6DmyMQNuecw5lyerxxZXD7rBFo2nA6FNiladYV!i2U3U8dmDpfL0!smD3QXKCa75TnhJZENskIYM4k8NrcnLdX-Pqp!zLgYyfDe89l3N17-qGU8WXijnQnYs5EuDLcF9wfTKf7C6!VLn7!s7S70pbMzQ2dcsFpiZGJsI2FkYCy!7ktWyjSV0sDQ0V8!SyDk?timestamp=Fri%20Mar%2005%2015%3A47%3A55%20GMT%202010


So it looks like the redirector (or IIS) is stripping out the
jsessionid - why? I thought that the redirector should simply pass
through the tomcat response - or have I got it wrong?
And I think you are right, it should.

And it does. There is no code changing the contents.

Would the connection errors seen in isapi.log explain this?

I don't think so. As I said, there was only one error for the first request after IIS start. I guess the OP hadn't started Tomcat at that time.

I have this particular problem on W7 32bit but not on Server 2k8 64bit
implementations of the redirector.

If I compare your second link with the first, there is a difference
which is not only the ":8080" part in the hostname.
(I mean that the first link /already contains/ the jsessionid attribute,
while the second one does not.)

So, if you copy the second link above, and /only/ add ":8080" to the
hostname, and paste that in the URL bar of the browser, do you get an
image or not ?

I believe that the problem is not that with the first link you get an
image and with the second one you do not.
The problem is :
- why in the first case do you get a whole html document response from
the server which, among other things, contains an <img> link which
contains a jsessionid attribute
?

I guess, in the case with ";jsessionid" there was not yet a JSESSIONID cookie set and send with the request and thus the URL encoding added the id to the URL, in the second case the request already included the cookie and thus jsessionid was not encoded.

All similar img links one can see in the provided isapi log do *not* contain ";jsessionid".

- and why in the second case do you get a whole html document response
which, among other things, contains an <img> link without such a
jsessionid attribute ?

The problem is already there before you even click on the image link.
The problem is in the page that /contains/ the link.
The connector certainly does not mess with the html /content/ of the
server response page.
The fact that you are getting two different response pages, means eithet
- that the request that /obtains/ this response page is already different
- or that the server which generates this response page is different
That is where the problem is.

I wouldn't focus too much on the ";jsessionid" difference by itself. There is also the "complete" difference. Futhermore the provided iapi log diesn't contain a single request for this image resource, so when it did work, I guess it had been cached by something.

It looks like the whole test is not really clean, starting each time without cookies, with cleaned caches etc. to make the two situation comparable and to actually capture everything in the log.

Regards,

Rainer

P.S.: The complete list of requests captured in the isapi log was:
09:29:06.824 [7800:4152] GET /Yosemite/
09:29:30.529 [7800:4152] GET /Yosemite/
09:29:53.393 [7800:4152] GET /Yosemite/faces/a4j/s/3_3_1.GAorg/richfaces/renderkit/html/css/basic_both.xcss/DATB/eAE78P7a59DlM6QBGugFKA__;jsessionid=SID 09:29:53.441 [7800:7712] GET /Yosemite/faces/a4j/s/3_3_1.GAcss/toolBar.xcss/DATB/eAE78P7a59DlM6QBGugFKA__;jsessionid=SID 09:29:54.542 [7800:6488] GET /Yosemite/faces/a4j/s/3_3_1.GAorg/richfaces/renderkit/html/css/extended_both.xcss/DATB/eAE78P7a59DlM6QBGugFKA__;jsessionid=SID 09:29:55.438 [7800:7592] GET /Yosemite/faces/a4j/s/3_3_1.GAorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAE78P7a59DlM6QBGugFKA__;jsessionid=SID 09:29:55.645 [7800:7760] GET /Yosemite/faces/a4j/s/3_3_1.GAcss/menucomponents.xcss/DATB/eAE78P7a59DlM6QBGugFKA__;jsessionid=SID 09:29:56.937 [7800:7628] GET /Yosemite/faces/a4j/s/3_3_1.GAcss/dropdownmenu.xcss/DATB/eAE78P7a59DlM6QBGugFKA__;jsessionid=SID 09:30:07.403 [7800:7712] GET /Yosemite/faces/a4j/s/3_3_1.GAcss/panel.xcss/DATB/eAE78P7a59DlM6QBGugFKA__;jsessionid=SID
09:30:08.962 [7800:4152] GET /Yosemite/yosemite.css
09:30:14.170 [7800:7712] GET /Yosemite/smalllogo.gif;jsessionid=SID
09:30:26.868 [7800:7760] POST /Yosemite/faces/public/index.jsp;jsessionid=SID 09:30:26.901 [7800:7712] POST /Yosemite/faces/public/index.jsp;jsessionid=SID 09:30:27.074 [7800:4152] POST /Yosemite/faces/public/index.jsp;jsessionid=SID
09:31:00.243 [7800:7760] POST /Yosemite/faces/public/index.jsp
09:31:01.067 [7800:4152] POST /Yosemite/faces/public/index.jsp
09:31:01.712 [7800:7712] POST /Yosemite/faces/public/index.jsp
09:31:32.265 [7800:4152] POST /Yosemite/faces/public/index.jsp
09:31:32.340 [7800:7712] POST /Yosemite/faces/public/index.jsp
09:31:53.768 [7800:4152] POST /Yosemite/faces/public/index.jsp
09:31:54.329 [7800:7712] POST /Yosemite/faces/public/index.jsp
09:35:15.834 [4164:2852] GET /Yosemite/
09:37:00.332 [4164:7756] GET /Yosemite/yosemite.css
09:37:00.787 [4164:2852] GET /Yosemite/smalllogo.gif
09:37:17.099 [4164:7756] POST /Yosemite/faces/public/index.jsp
09:37:17.642 [4164:8160] POST /Yosemite/faces/public/index.jsp
09:38:26.750 [4164:7756] POST /Yosemite/faces/public/index.jsp
09:38:35.754 [4164:8160] POST /Yosemite/faces/public/index.jsp
09:38:42.099 [4164:2852] POST /Yosemite/faces/public/index.jsp

where I abbreviated the session id D5BC53CF31B97A7E3DC12EB9C559AB75 with SID.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to