Re: Struts and WAS 3.5.4 (cant remove Attributes from request scope")
have a look to the post by [EMAIL PROTECTED] at: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg31223.html >From: Mohamed Abu Zur <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Struts and WAS 3.5.4 (cant remove Attributes from request scope") >Date: Wed, 5 Jun 2002 01:17:03 -0700 (PDT) > >I have installed struts in Websphere 3.5.4 and every >thing goes well. >But in the struts-example application when i go from >the http://localhost/struts-example/index.jsp >page to >http://localhost/struts-example/logon.jsp >in the server log I have the following error: > >Server caught unhandled exception from servlet >[jsp11]: cant remove Attributes from request scope" > >com.ibm.servlet.engine.webapp.UncaughtServletException: >Server caught unhandled exception from servlet >[jsp11]: cant remove Attributes from request scope > > > > >= >http://www.alquds-palestina.org > >__ >Do You Yahoo!? >Yahoo! - Official partner of 2002 FIFA World Cup >http://fifaworldcup.yahoo.com > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> Adolfo's signature Adolfo Rodriguez Miguelez _ 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]>
Struts and WAS 3.5.4 (cant remove Attributes from request scope")
I have installed struts in Websphere 3.5.4 and every thing goes well. But in the struts-example application when i go from the http://localhost/struts-example/index.jsp page to http://localhost/struts-example/logon.jsp in the server log I have the following error: Server caught unhandled exception from servlet [jsp11]: cant remove Attributes from request scope" com.ibm.servlet.engine.webapp.UncaughtServletException: Server caught unhandled exception from servlet [jsp11]: cant remove Attributes from request scope = http://www.alquds-palestina.org __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Getting "Error 500 cant remove Attributes from request scope" on struts-example.
We are trying to run the Struts example application under WebSphere 3.5.3 but get the following exception. Any ideas of what this means or where to go from here? Thanks Error 500 An error has occured while processing request:http://localhost/struts/editRegistration.do Message: Server caught unhandled exception from servlet [action]: Server caught unhandled exception from servlet [jsp11]: cant remove Attributes from request scope Target Servlet: action StackTrace: Root Error-1: cant remove Attributes from request scope java.lang.IllegalArgumentException: cant remove Attributes from request scope at java.lang.RuntimeException.(RuntimeException.java:49) at java.lang.IllegalArgumentException.(IllegalArgumentException.java:45) at org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl.ja va:236) at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591) at _registration_jsp_0._jspService(_registration_jsp_0.java:959) 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.ja va:381) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:702) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:822) 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(StrictLifecycl eServlet.java:160) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:287) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:105) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:36 0) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:775) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:701) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W ebAppRequestDispatcher.java:404) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest Dispatcher.java:203) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD ispatcher.java:107) at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja va:1758) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 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(StrictLifecycl eServlet.java:160) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:287) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:105) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:36 0) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:775) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:701) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W ebAppRequestDispatcher.java:404) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest Dispatcher.java:203) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD ispatcher.java:107) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker. java:77) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn vocation.java:67) at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cacheabl eInvocationContext.java:106) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ estProcessor.java:160) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener .java:300) at com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQ EventListenerImp.java:230) at com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventL istenerImp.java:104) at com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQE ventSource.java:212) at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu nnable.notifyService(SQWrapperEventSource.java:353) at
cant remove Attributes from request scope
Hi folks, I'm new to Struts and to JSP's. I'm trying to convince my team to use struts in a project. I have been unable to setup the example application... I'm running WebSphere 3.5.4 and went through the installation procedure outlined in the website. I can see index.jsp, but can't see logon.jsp or registration.jsp. Please help!!! Thanks in advance Sunil Here's part of the stack trace: An error has occured while processing request:http://localhost/struts-example/editRegistration.do Message: Server caught unhandled exception from servlet [action]: Server caught unhandled exception from servlet [jsp11]: cant remove Attributes from request scope Target Servlet: action StackTrace: ---- ---- Root Error-1: cant remove Attributes from request scope java.lang.IllegalArgumentException: cant remove Attributes from request scope at java.lang.RuntimeException.(RuntimeException.java:49) at java.lang.IllegalArgumentException.(IllegalArgumentException.java:45) at org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl.ja va:236) at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591) at _registration_jsp_0._jspService(_registration_jsp_0.java:959) _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: Help Error run Struts in VAJ 4 "cant remove Attributes from request scope" remain
The correct Jar is also available on the Ted's site and http://www.enfused.com/struts.jar Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 2:50 PM To: [EMAIL PROTECTED] Subject: Re: Help Error run Struts in VAJ 4 "cant remove Attributes from request scope" remain Julia, I had the same problem with VAJ 3.5.3, but I presume this will work with 4.0. You need to make sure you are changing the code in the correct place. There are two FormTag classes - one in the base taglib package and one in the taglib.html package. In order to get the application to work with VAJ, you need to change it in the html package. Eric Stievater Distributed Application Development 201.418.5663 "Julia Yang" n.com> cc: Subject: Help Error run Struts in VAJ 4 "cant remove Attributes from request scope" 09/07/01 02:36remain PM Please respond to struts-user Hi, Geoff and Mark and all Thank you for answer my question on how to use struts in VAJ I got it run but with a error Server caught unhandled exception from servlet [jsp]: cant remove Attributes from request scope I followed the e-mail Geoff sent out on 8/21/2001 with Replace the following lines in the doEndTag() method in the FormTag class: pageContext.removeAttribute(Constants.BEAN_KEY, PageContext.REQUEST_SCOPE); pageContext.removeAttribute(Constants.FORM_KEY, PageContext.REQUEST_SCOPE); with the following: pageContext.getRequest().removeAttribute(Constants.BEAN_KEY); pageContext.getRequest().removeAttribute(Constants.FORM_KEY); The problem remains, is there anything else I need do ? Julia *** IMPORTANT NOTE * The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman & Co., its subsidiaries and affiliates ("BBH"). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus.
Help Error run Struts in VAJ 4 "cant remove Attributes from request scope" remain
Hi, Geoff and Mark and all Thank you for answer my question on how to use struts in VAJ I got it run but with a error Server caught unhandled exception from servlet [jsp]: cant remove Attributes from request scope I followed the e-mail Geoff sent out on 8/21/2001 with Replace the following lines in the doEndTag() method in the FormTag class: pageContext.removeAttribute(Constants.BEAN_KEY, PageContext.REQUEST_SCOPE); pageContext.removeAttribute(Constants.FORM_KEY, PageContext.REQUEST_SCOPE); with the following: pageContext.getRequest().removeAttribute(Constants.BEAN_KEY); pageContext.getRequest().removeAttribute(Constants.FORM_KEY); The problem remains, is there anything else I need do ? Julia -Original Message- From: David Corbin [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 9:26 AM To: [EMAIL PROTECTED] Subject: Re: bean:define, bean:write For the record, my mistake was in use the "scope" attribute instead of the "toScope" attribute. - Original Message - From: "Keith Bacon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 06, 2001 1:38 PM Subject: Re: bean:define, bean:write > My guess is that jsp:define creates it if not there > but struts bean:define doesn't. > > > --- David Corbin <[EMAIL PROTECTED]> wrote: > > I thought that bean:define takes care of that > > - Original Message - > > From: "Keith Bacon" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, September 06, 2001 11:18 AM > > Subject: Re: bean:define, bean:write > > > > > > > Is it because you haven't done a > > > > > > request.putAttribute("pageTitle", yourObject); > > > > > > in your ActionForm? > > > > > > Keith. > > > > > > > > > --- David Corbin <[EMAIL PROTECTED]> wrote: > > > > Why does this jsp fragment generate an exception > > > > > > > > javax.servlet.jsp.JspException: Cannot find bean pageTitle in > > scope > > > > request > > > > > > > > --cut-- > > > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > > > > > > > > > > > > > > > > > > > > > > > scope="request"/> > > > > > > > > . . . > > > > > > > > --cut-- > > > > > > > > Thanks > > > > David Corbin > > > > > > > > > > > > > __ > > > Do You Yahoo!? > > > Get email alerts & NEW webcam video instant messaging with Yahoo! > > Messenger > > > http://im.yahoo.com > > > > > > > > > > > __ > Do You Yahoo!? > Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger > http://im.yahoo.com > >
Re: VAJ 4.0 and WTE "cant remove Attributes from request scope"
Replace the following lines in the doEndTag() method in the FormTag class: pageContext.removeAttribute(Constants.BEAN_KEY, PageContext.REQUEST_SCOPE); pageContext.removeAttribute(Constants.FORM_KEY, PageContext.REQUEST_SCOPE); with the following: pageContext.getRequest().removeAttribute(Constants.BEAN_KEY); pageContext.getRequest().removeAttribute(Constants.FORM_KEY); and your problem will disappear : ) Regards, Geoff Bennett, Multitask Consulting, [EMAIL PROTECTED] "Mark Chen" , "Mike Pettersen" <[EMAIL PROTECTED]> ltd.com> cc: Subject: VAJ 4.0 and WTE "cant remove Attributes from request scope" 24/08/2001 08:14 AM Please respond to struts-user Hi, I found one suggestion from Johan about VAJ3.5.3 problem to cant remove attributes from request scope. I had a same problem when tried to setup VAJ 4.0 to run struts and I got the same problem as attached below. Anybody knows IBM has fixed this problem. Thanks! Mark Message: Server caught unhandled exception from servlet [jsp]: cant remove Attributes from request scope Target Servlet: jsp StackTrace: Root Error-1: cant remove Attributes from request scope java.lang.IllegalArgumentException: cant remove Attributes from request scope java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String) java.lang.RuntimeException(java.lang.String) java.lang.IllegalArgumentException(java.lang.String) void org.apache.jasper.runtime.PageContextImpl.removeAttribute(java.lang.String, int) int org.apache.struts.taglib.html.FormTag.doEndTag()
VAJ 4.0 and WTE "cant remove Attributes from request scope"
Hi, I found one suggestion from Johan about VAJ3.5.3 problem to cant remove attributes from request scope. I had a same problem when tried to setup VAJ 4.0 to run struts and I got the same problem as attached below. Anybody knows IBM has fixed this problem. Thanks! Mark Message: Server caught unhandled exception from servlet [jsp]: cant remove Attributes from request scopeTarget Servlet: jspStackTrace: Root Error-1: cant remove Attributes from request scopejava.lang.IllegalArgumentException: cant remove Attributes from request scope java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String) java.lang.RuntimeException(java.lang.String) java.lang.IllegalArgumentException(java.lang.String) void org.apache.jasper.runtime.PageContextImpl.removeAttribute(java.lang.String, int) int org.apache.struts.taglib.html.FormTag.doEndTag()
RE: WEBSPHERE 3.5.4 and STRUTS 1.0: cant remove attributes from request scope
On Tue, 7 Aug 2001, Mark Wilson wrote: > WAS 4.0 so far is no different, you will get the same error. > > The problem was fixed, by changing the code in > org.apache.struts.taglib.html.FormTag per this solution posted a while ago: > http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10964.html > > There is another FormTag class, org.apache.struts.taglib.FormTag. Make sure > you got the right one, and rebuilt correctly? This solution has worked > successfully repeatedly. > > The problem lies with the IBM implementation of the org.apache.jasper > package. It behaves differently than the tomcat reference implementation, in > that it will always throw an exception when specifically removing attributes > from request scope. > More specifically, they used the Jasper that was in Tomcat 3.1 (which also has this same problem). For Tomcat, it was fixed in 3.2 and all later versions. > Mark > Craig
RE: WEBSPHERE 3.5.4 and STRUTS 1.0: cant remove attributes from request scope
WAS 4.0 so far is no different, you will get the same error. The problem was fixed, by changing the code in org.apache.struts.taglib.html.FormTag per this solution posted a while ago: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10964.html There is another FormTag class, org.apache.struts.taglib.FormTag. Make sure you got the right one, and rebuilt correctly? This solution has worked successfully repeatedly. The problem lies with the IBM implementation of the org.apache.jasper package. It behaves differently than the tomcat reference implementation, in that it will always throw an exception when specifically removing attributes from request scope. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 10:18 AM To: [EMAIL PROTECTED] Subject: WEBSPHERE 3.5.4 and STRUTS 1.0: cant remove attributes from request scope Hello, I write an application using struts. I have a first JSP page with a link to a second JSP page which contains a form. The link looks like: I get the first page with the link. But, when I click on it, I get the following message: "...cant remove Attributes from request scope..." I've seen a lot of mails in the struts-user list about the "doEndTag" method; so I tried to change the code of the "FormTag" class (in /taglib/html). It changes nothing. So, if anyone has a solution... A few questions: Where does the problem come from (Struts, Websphere)? Is there any improvement with Websphere 4.0? Thanks for your help. MIKAEL
WEBSPHERE 3.5.4 and STRUTS 1.0: cant remove attributes from request scope
Hello, I write an application using struts. I have a first JSP page with a link to a second JSP page which contains a form. The link looks like: I get the first page with the link. But, when I click on it, I get the following message: "...cant remove Attributes from request scope..." I've seen a lot of mails in the struts-user list about the "doEndTag" method; so I tried to change the code of the "FormTag" class (in /taglib/html). It changes nothing. So, if anyone has a solution... A few questions: Where does the problem come from (Struts, Websphere)? Is there any improvement with Websphere 4.0? Thanks for your help. MIKAEL
AW: javax.servlet.ServletException: cant remove Attributes from request scope
We had the same problem using tomcat3.1. When using 3.2, it worked. HTH -Ursprüngliche Nachricht- Von: vj nas [mailto:[EMAIL PROTECTED]] Gesendet: Sonntag, 8. Juli 2001 00:36 An: [EMAIL PROTECTED] Betreff: javax.servlet.ServletException: cant remove Attributes from request scope I had successfully configured the example war to run on jbuilder4 But I started getting this error message on the scope, I am three days old i n using Struts. I like it very much. Could you please tell me why it is occuring. Is the Servlet.jar file too old. or missing some settings in server.xml, etc.., I tried to figure out myself. But going no where. Your help is greatly appreciated. Thanks, Sincerely, Vijai. javax.servlet.ServletException: cant remove Attributes from request scope at java.lang.Throwable.(Throwable.java:96) at java.lang.Exception.(Exception.java:44) at javax.servlet.ServletException.(ServletException.java:161) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386) at src._0002fsrc_0002flogon_0002ejsplogon_jsp_0._jspService(_0002fsrc_0002flogon_0002ejsplogon_jsp_0.java:395) 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.java:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at com.borland.jbuilder.webserverglue.tomcat.jsp.JspLoaderEcho.service(Unknown Source) 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(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java:498) Root cause: java.lang.IllegalArgumentException: cant remove Attributes from request scope at java.lang.Throwable.(Throwable.java:96) at java.lang.Exception.(Exception.java:44) at java.lang.RuntimeException.(RuntimeException.java:49) at java.lang.IllegalArgumentException.(IllegalArgumentException.java:45) at org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl.java:236) at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591) at src._0002fsrc_0002flogon_0002ejsplogon_jsp_0._jspService(_0002fsrc_0002flogon_0002ejsplogon_jsp_0.java:370) 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.java:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at com.borland.jbuilder.webserverglue.tomcat.jsp.JspLoaderEcho.service(Unknown Source) 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(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java:498) _ Get your FREE download of MSN Explorer at http://explorer.msn.com
javax.servlet.ServletException: cant remove Attributes from request scope
I had successfully configured the example war to run on jbuilder4 But I started getting this error message on the scope, I am three days old i n using Struts. I like it very much. Could you please tell me why it is occuring. Is the Servlet.jar file too old. or missing some settings in server.xml, etc.., I tried to figure out myself. But going no where. Your help is greatly appreciated. Thanks, Sincerely, Vijai. javax.servlet.ServletException: cant remove Attributes from request scope at java.lang.Throwable.(Throwable.java:96) at java.lang.Exception.(Exception.java:44) at javax.servlet.ServletException.(ServletException.java:161) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386) at src._0002fsrc_0002flogon_0002ejsplogon_jsp_0._jspService(_0002fsrc_0002flogon_0002ejsplogon_jsp_0.java:395) 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.java:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at com.borland.jbuilder.webserverglue.tomcat.jsp.JspLoaderEcho.service(Unknown Source) 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(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java:498) Root cause: java.lang.IllegalArgumentException: cant remove Attributes from request scope at java.lang.Throwable.(Throwable.java:96) at java.lang.Exception.(Exception.java:44) at java.lang.RuntimeException.(RuntimeException.java:49) at java.lang.IllegalArgumentException.(IllegalArgumentException.java:45) at org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl.java:236) at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591) at src._0002fsrc_0002flogon_0002ejsplogon_jsp_0._jspService(_0002fsrc_0002flogon_0002ejsplogon_jsp_0.java:370) 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.java:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at com.borland.jbuilder.webserverglue.tomcat.jsp.JspLoaderEcho.service(Unknown Source) 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(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java:498) _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: cant remove Attributes from request scope
The problem is that the underlying Tomcat is 3.1, which has surfaces this bug. See this URL for instructions on how to upgrade Tomcat. http://community.borland.com/article/0,1410,26943,00.html -- Dan Miser http://www.distribucon.com - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 8:36 AM Subject: cant remove Attributes from request scope I have tryed to run the struts-example with tomcat inside JBuilder4. This causes the following exception: Error: 500 Location: /registration.jsp Internal Servlet Error:javax.servlet.ServletException: cant remove Attributes from request scope
cant remove Attributes from request scope
Hi, I have tryed to run the struts-example with tomcat inside JBuilder4. This causes the following exception: Error: 500 Location: /registration.jsp Internal Servlet Error:javax.servlet.ServletException: cant remove Attributes from request scope at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386) at _0002fregistration_0002ejspregistration_jsp_0._jspService(_0002fregistration_0002ejspregistration_jsp_0.java:1561) 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.java:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at com.borland.jbuilder.webserverglue.tomcat.jsp.JspLoaderEcho.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:163) at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1758) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 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(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.IllegalArgumentException: cant remove Attributes from request scope at org.apache.jasper.runtime.PageContextImpl.removeAttribute(PageContextImpl.java:236) at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:591) at _0002fregistration_0002ejspregistration_jsp_0._jspService(_0002fregistration_0002ejspregistration_jsp_0.java:1034) 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.java:174) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at com.borland.jbuilder.webserverglue.tomcat.jsp.JspLoaderEcho.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:163) at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1758) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 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(HttpConnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) at java.lang.Thread.run(Thread.java:484) Does anyone know something about that? Anything I missed? The example runs pretty well with a 'standalone' tomcat. Thanks, Richard
Server caught unhandled exception from servlet [jsp11]: cant remove Attributes from request scope
Hi, I tried to run struts example application in Websphere3.5.3. It's giving following error message. Any ideas how to correct this? An error has occured while processing request:http://localhost/struts-example/editRegistration.do Message: Server caught unhandled exception from servlet [action]: Server caught unhandled exception from servlet [jsp11]: cant remove Attributes from request scope Target Servlet: action StackTrace: Root Error-1: cant remove Attributes from request scope java.lang.IllegalArgumentException: cant remove Attributes from request scope Thanks Siva -Original Message- From: Richard Backhouse [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 29, 2001 4:55 PM To: [EMAIL PROTECTED] Subject: Sample HDML/Wireless Struts Application For anyone who is interested, I have put together a sample hdml/wireless based struts application. You can get the source and a pre-build j2ee binary at : http://www.oakgrovesoftware.com/~rbackhouse It is a simple shared contact database that phone users can access and add/edit/delete contacts. You should be be able to getting it running with either the default setup of JBoss/Tomcat or Orion. There is more information at the above link. Richard Backhouse Oak Grove Software
Re: VAJ 3.5.3 and WTE "cant remove Attributes from request scope"
Yes this is a bug in the WTE (and also in Tomcat3.1, IBM hasn't upgraded some classes) If you want to be able to run them change the pageContext.x(REQUEST_SCOPE) calls to do it directy to the request is self. johan - Original Message - From: Kenneth Petersen To: [EMAIL PROTECTED] Sent: Sunday, May 20, 2001 6:40 PM Subject: VAJ 3.5.3 and WTE "cant remove Attributes from request scope" After finally being able to run the HelloWorld from the Bluestone Software's "Welcome to the Struts Framework" trail, I get the following error message when trying to use ActionMapping as described in step 4 of the same trail:Message: Server caught unhandled exception from servlet [jsp]: cant remove Attributes from request scopeThe full path of the Exception is at the bottom. The Exception is thrown with in the FormTag.doEndTag() method. To be more specific the commands that are not processed succesfully are:pageContext.removeAttribute(Constants.BEAN_KEY, PageContext.REQUEST_SCOPE);pageContext.removeAttribute(Constants.FORM_KEY, PageContext.REQUEST_SCOPE);Have anyone have simular problems? Any ideas on a solution to the problem would be welcomed.RegardsKPRoot Error-1: cant remove Attributes from request scopejava.lang.IllegalArgumentException: cant remove Attributes from request scope java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String) java.lang.RuntimeException(java.lang.String) java.lang.IllegalArgumentException(java.lang.String) void org.apache.jasper.runtime.PageContextImpl.removeAttribute(java.lang.String, int) int org.apache.struts.taglib.html.FormTag.doEndTag() void _input_xjsp._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean) void org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Throwable, boolean) void org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engine.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse, com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.servlet.engine.webapp.ServletInstanceReference, javax.servlet.ServletRequest, javax.servlet.ServletResponse, com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.servlet.ServletRequest, javax.servlet.ServletResponse, com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(com.ibm.servlet.engine.webapp.WebAppRequest, javax.servlet.http.HttpServletResponse, boolean) void com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet.ServletRequest, javax.servlet.ServletResponse, boolean) void com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Object) void com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lang.Object) void com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.String, com.ibm.servlet.engine.srp.ISRPConnection) void com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.servlet.engine.oselistener.api.IOSEConnection) void com.ibm.servlet.engine.http_transport.HttpTra
VAJ 3.5.3 and WTE "cant remove Attributes from request scope"
After finally being able to run the HelloWorld from the Bluestone Software's "Welcome to the Struts Framework" trail, I get the following error message when trying to use ActionMapping as described in step 4 of the same trail: Message: Server caught unhandled exception from servlet [jsp]: cant remove Attributes from request scope The full path of the Exception is at the bottom. The Exception is thrown with in the FormTag.doEndTag() method. To be more specific the commands that are not processed succesfully are: pageContext.removeAttribute(Constants.BEAN_KEY, PageContext.REQUEST_SCOPE); pageContext.removeAttribute(Constants.FORM_KEY, PageContext.REQUEST_SCOPE); Have anyone have simular problems? Any ideas on a solution to the problem would be welcomed. Regards KP Root Error-1: cant remove Attributes from request scope java.lang.IllegalArgumentException: cant remove Attributes from request scope java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String) java.lang.RuntimeException(java.lang.String) java.lang.IllegalArgumentException(java.lang.String) void org.apache.jasper.runtime.PageContextImpl.removeAttribute(java.lang.String, int) int org.apache.struts.taglib.html.FormTag.doEndTag() void _input_xjsp._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean) void org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Throwable, boolean) void org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engine.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse, com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.servlet.engine.webapp.ServletInstanceReference, javax.servlet.ServletRequest, javax.servlet.ServletResponse, com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.servlet.ServletRequest, javax.servlet.ServletResponse, com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent) void com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(com.ibm.servlet.engine.webapp.WebAppRequest, javax.servlet.http.HttpServletResponse, boolean) void com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet.ServletRequest, javax.servlet.ServletResponse, boolean) void com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse) void com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Object) void com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lang.Object) void com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.String, com.ibm.servlet.engine.srp.ISRPConnection) void com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.servlet.engine.oselistener.api.IOSEConnection) void com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(java.net.Socket) void com.ibm.servlet.engine.http_transport.HttpTransportHandler.run() void java.lang.Thread.run() Wrapped Error-2: cant remove Attributes from request scope javax.servlet.ServletException: cant remove Attributes from request scope java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String) javax.servlet.ServletException(java.lang.Throwable) void org.apache.jasper.runtime.PageContextImpl.handlePageException(java.lang.Exception) void _input_xjsp._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) void org.apache.jasper.runtime.Http