I ran into an interesting bug with regards to WebWork... thanks for Jeff for
sorting it out. I just wanted to see if anyone here had any advice on
working around this bug?
Forwarded from webwork mailing list:
----- Original Message -----
From: "Jeff Schnitzer" <[EMAIL PROTECTED]>
To: "Stan Ng" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 02, 2001 6:04 PM
Subject: RE: [Webwork-user] Test.action error
This happens consistently when you have cookies disabled and the
appserver tries to rewrite the url.
There seems to be a minor bug in Orion in that the first time you visit
a page after the server is reloaded, Orion fails to set cookies and
falls back to url rewriting. When you reload the page or visit it
subsequently in the future, Orion seems to be ok with cookies.
But when cookies are disabled, Orion can't handle <webwork:include>s,
because WebWork is calling encodeURL() on the URL to include. The
exception is thrown from
com.evermind.server.http.EvermindPageContext.include(). I was planning
on mentioning this to the list but I've been busy with other subjects
:-)
To encode or not encode pageContext.include()s. I didn't see anything
in the JSP spec which implies one way or the other. Wierd.
Jeff
-----Original Message-----
From: Stan Ng [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 2:02 PM
To: [EMAIL PROTECTED]
Subject: [Webwork-user] Test.action error
I just downloaded WebWork 0.91 and it seems excellent! Quick question
-- is there a bug with Test.action? I keep getting the following error
the first time I hit the page.
500 Internal Server Error
java.lang.IllegalArgumentException: Resource
/ServletTest.action;jsessionid=SOMEID not found
...
As far as I can tell, this happens when the request.jsp is included by
the test results after a new session cookie is created. Is this
exception happening because it is trying to read by a cookie that isn't
received by the user agent yet? Or do I have something configured
incorrectly?
For the record, the appserver is Orion 1.4.7 on Win2k and the browsers I
tried were Netscape 4.7.5 & IE 5.5.