We got the same for WTE in Visual Age 3.5.3. It is a container bug.

Try by doing the next patch. Replace

        pageContext.removeAttribute(Constants.BEAN_KEY,
                                    PageContext.REQUEST_SCOPE);
        pageContext.removeAttribute(Constants.FORM_KEY,
                                    PageContext.REQUEST_SCOPE);

from org.apache.struts.taglib.html.FormTag.doEndTag()

by
        pageContext.getRequest().removeAttribute(Constants.BEAN_KEY);
        pageContext.getRequest().removeAttribute(Constants.FORM_KEY);
        pageContext.removeAttribute(Constants.BEAN_KEY);
        pageContext.removeAttribute(Constants.FORM_KEY);

It works for us.

Adolfo.

>From: "Karim Qazi" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Cannot remove attributes from request scope???
>Date: Fri, 03 May 2002 15:00:27 -0700
>
>I am getting this error when running struts on enhydra.
>I do not get these errors when running Tomcat 4.0.
>
>Any help is greatly appreciated!
>
>
>Error: 500
>Location: /struts-example/logon.jsp
>Internal Servlet Error:
>
>
>javax.servlet.ServletException: cant remove Attributes from request scope
>at
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
>l.java:386)
>at
>_0002flogon_0002ejsplogon_jsp_0._jspService(_0002flogon_0002ejsplogon_jsp_0.
>java:393)
>at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
>va:174)
>at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
>at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
>at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
>at
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
>onnectionHandler.java:160)
>at
>org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
>)
>at java.lang.Thread.run(Thread.java:479)
>
>Root cause:
>
>
>java.lang.IllegalArgumentException: cant remove Attributes from request
>scope
>at
>org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl.ja
>va:236)
>at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591)
>at
>_0002flogon_0002ejsplogon_jsp_0._jspService(_0002flogon_0002ejsplogon_jsp_0.
>java:368)
>at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
>va:174)
>at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
>at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
>at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
>at
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
>onnectionHandler.java:160)
>at
>org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
>)
>at java.lang.Thread.run(Thread.java:479)
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>




<HTML>
      <HEAD>
             <TITLE>Adolfo's signature</TITLE>
      </HEAD>
      <BODY>
             <center><b><em>Adolfo Rodriguez Miguelez</em><b></center>

      </BODY>
      </HTML>





_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to