Hello again,
I'm sure anyone interested in this post would appreciate knowing that the struts-example application will most likely not run on WAS 3.5.4 (and on up to WAS 4.0).
The problem is when we click the Register or Login links, the following exception occurs:
java.lang.IllegalArgumentException: cant remove Attributes from request scope
at java.lang.RuntimeException.<init>(RuntimeException.java:49)
at java.lang.IllegalArgumentException.<init>(IllegalArgumentException.java:45)
at org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl.java:236)
at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:632)
at _registration_jsp_0._jspService(_registration_jsp_0.java:935)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:127)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:396)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:718)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:872)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:626)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160)
<truncated>
At first glance, it looks like the FormTag.doEndTag() is at fault. But, further research indicates that, in reality, PageContextImpl.removeAttribute() does not comform to specifications.
In short, the problem lies in the fact that WAS relies on a version of Jasper associated with TomCat 3.1. To work properly, a version of Jasper associated with TomCat 3.2.2 is needed. However, I have seen that people running WAS 4.0 are having the same trouble, and someone mentioned that WAS 4.0.1 has fixed the problem, but he didn't give any resources.
Basically, an upgrade of WAS is needed (still unsure about version), or patch Struts yourself and re-build it.
Ted
SCJ2P
References:
http://issues.apache.org/bugzilla/ Bugs 2123, 2259, 932.
http://groups.google.com/groups?hl=en&q=cant%20remove%20Attributes%20from%20request%20scope&group=ibm.software.websphere.* [ October 03, 2002: Message edited by: Ted Schrader ]