>
> I downloaded the latest patch and apply it to
> the petstore example. Everything seems to be fine. I can login with j2ee
> account. I can create a new user through JDBCRealm. But the problem happens
> when I logout and relogin.
I was able to duplicate the problem.
Until I get a chance to take a better look at it, here are Aaron Mulder's
notes on a problem with the initial Pet Store version:
Resolve the Logoff Situation
When you log off the pet store, it tries to invalidate the current servlet
session and then immediately grab a new one to initialize. This fails in
Tomcat, since you can't get a new session until you've loaded a new page.
You can solve this by ... changing the file
src/com/sun/estore/control/web/RequestProcessor.java around line 121
(where it handles the logoff event) so it just invalidates the current
session and does not try to generate a new one.
If anyone fixes this, please post the fix to the mailing list.
Thanks very much,
Tom
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]