Dear all,

I've spent quite a bit of time tracking down a problem I'm having using
wicket and stateful pages.
I've enabled the jsessionid url rewriting in tomcat (by simply using the
default settings) but I get a redirect url without the jsessionid.

I've traced into tomcat's Response.encodeUrl and saw that the jsessionid is
in fact appended (but later removed for in page references by wicket -
that's fine).

What am I doing wrong and am I right in the assumption that wicket should
work without cookies?

When using curl I first get a redirect to ?1, then to /. and then a 404

$ curl -v http://localhost
* About to connect() to localhost port 80 (#0)
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.21.1 (i686-pc-mingw32) libcurl/7.21.1 OpenSSL/0.9.8k
zlib/1.2.3
> Host: localhost
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
< Server: Apache-Coyote/1.1
< Set-Cookie: JSESSIONID=
CA5649F5EA37AC7CDB2D5E06170923A1; Path=/
< Date: Wed, 16 Nov 2011 12:16:15 GMT
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Pragma: no-cache
< Cache-Control: no-cache, no-store
< Location: http://localhost/?1
< Content-Length: 0
<
* Connection #0 to host localhost left intact
* Closing connection #0

thomas@willo ~
$ curl -v http://localhost?1 <http://localhost/?1>
* About to connect() to localhost port 80 (#0)
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET /?1 HTTP/1.1
> User-Agent: curl/7.21.1 (i686-pc-mingw32) libcurl/7.21.1 OpenSSL/0.9.8k
zlib/1.2.3
> Host: localhost
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
< Server: Apache-Coyote/1.1
< Date: Wed, 16 Nov 2011 12:16:21 GMT
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Pragma: no-cache
< Cache-Control: no-cache, no-store
< Location: http://localhost/.
< Content-Length: 0
<
* Connection #0 to host localhost left intact
* Closing connection #0

thomas@willo ~
$ curl -v http://localhost/.
* About to connect() to localhost port 80 (#0)
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET /. HTTP/1.1
> User-Agent: curl/7.21.1 (i686-pc-mingw32) libcurl/7.21.1 OpenSSL/0.9.8k
zlib/1.2.3
> Host: localhost
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Server: Apache-Coyote/1.1
< Content-Type: text/html;charset=utf-8
< Content-Length: 958
< Date: Wed, 16 Nov 2011 12:16:24 GMT
<
<html><head><title>Apache Tomcat/6.0.33 - Error report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:
22px;} H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3 {font-family:Tahoma,Arial,sans-serif;color:white;backgro
und-color:#525D76;font-size:14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:w
hite;background-color:#525D76;} P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR
{color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /.</h1><HR
size="1" noshade="noshade"><p><b>type</b> Status
report</p><p><b>message</b> <u>/.</
u></p><p><b>description</b> <u>The requested resource (/.) is not
available.</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/6.0.33</h3></body></html>*
Connection #0 to host localhost left intact
* Closing connection #0

Reply via email to