Hi Frank, In article <[EMAIL PROTECTED]>, Thu, 11 Mar 2004 17:06:27 +0100, Thorsten Frank <[EMAIL PROTECTED]> wrote: tfrank> we're trying to test Struts actions with the StrutsTestCase package tfrank> integrated into Cactus. All actions depend on a login, or more specific, tfrank> parameters loaded after a successful login. our idea was to use a base tfrank> class which stores a FormAuthentication object for all the test cases. We tfrank> are using Websphere 5.0, struts 1.1, J2EE spec 1.3 tfrank> tfrank> Our problems seem to be similar to the one described in a previous mail of tfrank> this list (no 04940): tfrank> tfrank> when trying the tests depicted further below, we get the following error tfrank> messages: [snip] tfrank> java.lang.NullPointerException: missing cookie name tfrank> at org.apache.cactus.Cookie.<init>(Cookie.java:132)
Possible causes: 1. your ServletRedirector is not configured to be secure You might check your web.xml. Redirectors your are using should be secured to testing secure codes. See also http://jakarta.apache.org/cactus/writing/howto_security.html 2. name of the session cookie is not JSESSIONID I think, this is not your case. But if so, and you are using Cactus-1.5, please try nightly build version of Cactus. It have FormAuthentication#setSessionCookieName(String) to change the cookie name. I hope this helps, ---- Kazuhito SUGURI mailto:[EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
