Hello Jesse, please check the struts-user archives and search for "Cannot remove 
attribute from request".  Its a well known issue.  Here is some stuff I sent out 
before:

Read this included thread and follow the links identified.  I am pretty sure that it 
covers your problem and potential fixes.  It reads best if you start with the bottom 
and then read the top.  To summarize, this is a known bug with VAJ and it has to do 
with the version of Jasper they are using.  Jasper is a set of JSP classes produced by 
Apache, lots of servlet engines use the Jasper package but there are known bugs with 
the older versions of it.  This is one of them.  Your two solutions are as follows:

1. Edit org.apache.struts.taglib.html.FormTag.doEndTag() as described (note, there are 
2 "FormTag" classes in Struts.  One in taglib and one in taglib.html, I had to edit 
the one in taglib.html). Recompile struts.

Or 

2. Preferrably get your servlet engine to use the newer version of Jasper (the one you 
need to get is included with the Tomcat 3.2.2 distribution).  I think there are 
actually instructions on how to do this with your servlet engine in the mail archives 
for struts-user.
 
--Steve

--- BEGIN INCLUDED ----

Hi Steve,

Try editing org.apache.struts.taglib.FormTag.doEndTag as follows : 

 
// Remove the page scope attributes we created
pageContext.getRequest().removeAttribute(Constants.BEAN_KEY);
pageContext.getRequest().removeAttribute(Constants.FORM_KEY);

Jon.

-----Original Message-----
From: Ritter, Steve [mailto:[EMAIL PROTECTED]] 
Sent: 05 June 2001 20:03
To: '[EMAIL PROTECTED]'
Subject: Need help with "Can't remove attributes from request scope" probl
em.

Hi everyone,

We ran into a problem running b2/b3 on Servletmill that others seem to have
hit with WTE.  It occurs when trying to access the login page from
struts-example, you get an IllegalArgumentException with message "Can't
remove attributes from request scope".  It seems this thread discusses a
potential HACK to "fix" the issue.

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg08663.html

The top-most posting in this thread indicates bugzilla id 932 which I
checked into:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=932

So, according to Craig the bug is really in the servlet container and it
would seem that my servlet container has the very same prolem.  What is
suggested work around for this?  Can someone help me with some more details
in the event that I need to speak with my container vendor?

--Steve


---- END INCLUDED --------

> -----Original Message-----
> From: Van-Landeghem Tom [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 13, 2001 7:08 AM
> To: '[EMAIL PROTECTED]'
> Subject: can't remove attributes from servlet
> 
> 
> Hi,
>  
> Today is my first day I try to play with Struts using Visual 
> Age V3.5.3.
> I try settingup and running the EmployeeList example 
> application from IBM in
> the WTE of VAJ.
> I get the following exception when I try to run the application :
> can't remove attributes from servlet
> which seems to be thrown by the Formtag.doEndTag()
> anybody has any ideas ?
>  
> Tom
> 
> -----Original Message-----
> From: Zhengxi Ruan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 20, 2001 6:57 AM
> To: '[EMAIL PROTECTED]'
> Subject: "Cannot remove attribute from request"
> 
> 
> Hi,
> We are using Bluestone/HP UBS 7.2 with patch and  Struts 
> building project.
> Struts released its final 1.0 version last Friday. But we got 
> an error which
> was not showing up in the previous Struts release when we 
> moved to 1.0 final
> version . I was wondering if anybody got the same error. Is 
> there any way to
> work around this problem?
> 
>  The following if the error message: 
> 
> java.lang.IllegalArgumentException: Cannot remove attribute 
> from request
>         at
> SaApi.servlet.jsp.SaPageContext.removeAttribute(SaPageContext.
> java:378)
>         at 
> org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591)
>         at
> SaServletEngine.web.kmp_logon_sjsp_VERSION1._jspService(kmp_lo
> gon_sjsp_VERSI
> ON1.java:547)
>         at 
> SaApi.servlet.jsp.SaJspServlet.service(SaJspServlet.java:108)
>         at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>         at
> SaApi.servlet.SaServletUtils.serviceRequest(SaServletUtils.java:1571)
>         at
> SaApi.servlet.SaServletUtils.processServletRequest(SaServletUt
> ils.java:1753)
>         at
> SaApi.servlet.SaServletInvokerApp.SaProcessInputStream(SaServl
> etInvokerApp.j
> ava:290)
>         at
> SaApi.servlet.SaServletInvokerApp.handleClient(SaServletInvoke
> rApp.java:135)
>         at SaApi.SaApp.processRequest(SaApp.java:1335)
>         at 
> SaApi.SaSamUbsContext.processActivator(SaSamUbsContext.java:1640)
>         at 
> SaApi.SaSamUbsContext.queueActivator(SaSamUbsContext.java:1534)
>         at 
> SaApi.SaSamUbsContext.processActivator(SaSamUbsContext.java:1501)
>         at 
> SaApi.SaSamUbsContext.processRequest(SaSamUbsContext.java:1965)
>         at SaApi.SaSamUbsContext.execute(SaSamUbsContext.java:2120)
>         at SaApi.SaThreadPool$Worker.run(SaThreadPool.java:737)
>         at java.lang.Thread.run(Unknown Source)
> 
> 
> Thanks,
> Jesse
> 

Reply via email to