Re: IllegalStateException: Cannot forward. Response already committed.
Try turning the page buffer up really high... Like 256k or something obnoxious. It's obviously not a real solution, but it might get you by if you're on a deadline. I would try firing up a debugger and see what is generating the output. Another solution would be to try a different app server. If you're running in Tomcat, try Jetty to see if that helps you narrow down the issue. -Wes On Thursday 21 May 2009 09:57:20 am Hermann X Lau wrote: > Hi, > > I tried out your suggestions and I am still getting this exception. I even > put everything in the JSP in one line and mad sure there were no > whitespaces. > > <%@ taglib uri="http://struts.apache.org/tags-logic"; prefix="logic"%><%@ > page contentType="text/html" import="org.apache.log4j.Logger"%><%final > Logger log = > Logger.getLogger("index.jsp");log.debug("begin");%> name="welcome" /> > > Any other ideas? > > -Original Message- > From: Wes Wannemacher [mailto:w...@wantii.com] > Sent: Wednesday, May 20, 2009 4:48 PM > To: Struts Users Mailing List > Subject: Re: IllegalStateException: Cannot forward. Response already > committed. > > The JSP compiler simple turns those <% %> tags inside out and > everything outside of those tags is a string with an out.print... In > your case, the first two things in the file generate returns... > Whitespace is significant... Let me see if I can make it visually more > understandable > > Index.jsp > <%@ taglib uri="http://struts.apache.org/tags-logic"; prefix="logic"%> > < RIGHT HERE, You will get a out.print("\n"); > <%@ page contentType="text/html" import="org.apache.log4j.Logger"%> > <- SAME HERE > <% > > Hopefully it doesn't get all wrapped and screwed up. > > You might be wondering now, why does it work sometimes and not > others... Well, the IllegalStateException is only thrown if output has > been flushed, so you can get away with breaking the rules from time to > time. You can even set the page buffer variable really high so that > you reserve the right to redirect, even if you have generated some > output. > > Anyhow, try to remove whitespace, you could probably just do it this > way and have it work - > Index.jsp -> > <%@ taglib uri="http://struts.apache.org/tags-logic"; prefix="logic" %><%@ >page contentType="text/html" import="org.apache.log4j.Logger" > %><% > final Logger log = Logger.getLogger("index.jsp"); > log.debug("begin"); > %> > > > On Wed, May 20, 2009 at 4:39 PM, Hermann X Lau > > wrote: > > Thanks in advance for any help on this... > > > > I understand we get this exception when the JSP attempts to write to the > > print stream after the response has been committed but I don't see how > > this is occurring in my situation since my JSP just contains a simple > > forward. > > > > Index.jsp > > <%@ taglib uri="http://struts.apache.org/tags-logic"; prefix="logic"%> > > <%@ page contentType="text/html" import="org.apache.log4j.Logger"%> > > <% > >final Logger log = Logger.getLogger("index.jsp"); > >log.debug("begin"); > > %> > > > > > > Here is my action class (note that in my logs, this exception occurs even > > before the execute method is called!): public class ChoiceAction extends > > StrutsAction { > > > >public ActionForward execute(ActionMapping mapping, > > ActionForm form, HttpServletRequest request, HttpServletResponse > > response) throws Exception { log4j.debug("execute"); > >ManifestChoiceFormBean choiceForm = > > (ManifestChoiceFormBean) form; Connection conn = > > DAOUtils.getConnection("jdbc/OSURptDb"); > > > >try { > >RenderRequest req = > > (RenderRequest)request.getAttribute("javax.portlet.request"); String > > sites = getResources(request).getMessage("upsws.site.list." + > > req.getPreferences().getValue("SITE_IND","").toLowerCase()); > > log4j.debug(sites); IMailManifestDAO dao = > > DAOBuilder.buildMailManifestDAO(conn); boolean uspsActive = > > dao.uspsJobsExist(sites); choiceForm.setUspsActive(uspsActive); > > log4j.info("USPS link is " + ((uspsActive) ? &
RE: IllegalStateException: Cannot forward. Response already committed.
Hi, I tried out your suggestions and I am still getting this exception. I even put everything in the JSP in one line and mad sure there were no whitespaces. <%@ taglib uri="http://struts.apache.org/tags-logic"; prefix="logic"%><%@ page contentType="text/html" import="org.apache.log4j.Logger"%><%final Logger log = Logger.getLogger("index.jsp");log.debug("begin");%> Any other ideas? -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Wednesday, May 20, 2009 4:48 PM To: Struts Users Mailing List Subject: Re: IllegalStateException: Cannot forward. Response already committed. The JSP compiler simple turns those <% %> tags inside out and everything outside of those tags is a string with an out.print... In your case, the first two things in the file generate returns... Whitespace is significant... Let me see if I can make it visually more understandable Index.jsp <%@ taglib uri="http://struts.apache.org/tags-logic"; prefix="logic"%> < RIGHT HERE, You will get a out.print("\n"); <%@ page contentType="text/html" import="org.apache.log4j.Logger"%> <- SAME HERE <% Hopefully it doesn't get all wrapped and screwed up. You might be wondering now, why does it work sometimes and not others... Well, the IllegalStateException is only thrown if output has been flushed, so you can get away with breaking the rules from time to time. You can even set the page buffer variable really high so that you reserve the right to redirect, even if you have generated some output. Anyhow, try to remove whitespace, you could probably just do it this way and have it work - Index.jsp -> <%@ taglib uri="http://struts.apache.org/tags-logic"; prefix="logic" %><%@ page contentType="text/html" import="org.apache.log4j.Logger" %><% final Logger log = Logger.getLogger("index.jsp"); log.debug("begin"); %> On Wed, May 20, 2009 at 4:39 PM, Hermann X Lau wrote: > Thanks in advance for any help on this... > > I understand we get this exception when the JSP attempts to write to the > print stream after the response has been committed but I don't see how this > is occurring in my situation since my JSP just contains a simple forward. > > Index.jsp > <%@ taglib uri="http://struts.apache.org/tags-logic"; prefix="logic"%> > <%@ page contentType="text/html" import="org.apache.log4j.Logger"%> > <% > final Logger log = Logger.getLogger("index.jsp"); > log.debug("begin"); > %> > > > Here is my action class (note that in my logs, this exception occurs even > before the execute method is called!): > public class ChoiceAction extends StrutsAction { > > public ActionForward execute(ActionMapping mapping, ActionForm > form, HttpServletRequest request, HttpServletResponse response) throws > Exception { > log4j.debug("execute"); > ManifestChoiceFormBean choiceForm = > (ManifestChoiceFormBean) form; > Connection conn = > DAOUtils.getConnection("jdbc/OSURptDb"); > > try { > RenderRequest req = > (RenderRequest)request.getAttribute("javax.portlet.request"); > String sites = > getResources(request).getMessage("upsws.site.list." + > req.getPreferences().getValue("SITE_IND","").toLowerCase()); > log4j.debug(sites); > IMailManifestDAO dao = > DAOBuilder.buildMailManifestDAO(conn); > boolean uspsActive = > dao.uspsJobsExist(sites); > > choiceForm.setUspsActive(uspsActive); > log4j.info("USPS link is " + > ((uspsActive) ? " active": " not active")); > > return > mapping.findForward("next"); > > } finally { > DAOUtils.closeConnection(conn); > } > } > static final Logger log4j = > Logger.getLogger(ChoiceAction.class); > } > > log: > INFO : 2009-05-20 16:26:18,581 > com.bbb.a
Re: IllegalStateException: Cannot forward. Response already committed.
Sorry to hijack this thread, but it looks like Wes has already given you a pretty complete answer. At first I thought you were going to be asking about this: http://wiki.glassfish.java.net/Wiki.jsp?page=FaqWebAppUnableToSetRequestCharEncoding I get a warning in my glassfish logs for pretty much every request, and while I've not spent time to track this down I was hoping someone else here might have figured this one out already. I see that in the prepare method of org.apache.struts2.dispatcher.Dispatcher it calls setCharacterEncoding on the request, so that does seem pretty early in the process... ...so either that's not getting called or something else is also trying to set this later and that's the source of my problems? -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: IllegalStateException: Cannot forward. Response already committed.
The JSP compiler simple turns those <% %> tags inside out and everything outside of those tags is a string with an out.print... In your case, the first two things in the file generate returns... Whitespace is significant... Let me see if I can make it visually more understandable Index.jsp <%@ taglib uri="http://struts.apache.org/tags-logic"; prefix="logic"%> < RIGHT HERE, You will get a out.print("\n"); <%@ page contentType="text/html" import="org.apache.log4j.Logger"%> <- SAME HERE <% Hopefully it doesn't get all wrapped and screwed up. You might be wondering now, why does it work sometimes and not others... Well, the IllegalStateException is only thrown if output has been flushed, so you can get away with breaking the rules from time to time. You can even set the page buffer variable really high so that you reserve the right to redirect, even if you have generated some output. Anyhow, try to remove whitespace, you could probably just do it this way and have it work - Index.jsp -> <%@ taglib uri="http://struts.apache.org/tags-logic"; prefix="logic" %><%@ page contentType="text/html" import="org.apache.log4j.Logger" %><% final Logger log = Logger.getLogger("index.jsp"); log.debug("begin"); %> On Wed, May 20, 2009 at 4:39 PM, Hermann X Lau wrote: > Thanks in advance for any help on this... > > I understand we get this exception when the JSP attempts to write to the > print stream after the response has been committed but I don't see how this > is occurring in my situation since my JSP just contains a simple forward. > > Index.jsp > <%@ taglib uri="http://struts.apache.org/tags-logic"; prefix="logic"%> > <%@ page contentType="text/html" import="org.apache.log4j.Logger"%> > <% > final Logger log = Logger.getLogger("index.jsp"); > log.debug("begin"); > %> > > > Here is my action class (note that in my logs, this exception occurs even > before the execute method is called!): > public class ChoiceAction extends StrutsAction { > > public ActionForward execute(ActionMapping mapping, ActionForm > form, HttpServletRequest request, HttpServletResponse response) throws > Exception { > log4j.debug("execute"); > ManifestChoiceFormBean choiceForm = > (ManifestChoiceFormBean) form; > Connection conn = > DAOUtils.getConnection("jdbc/OSURptDb"); > > try { > RenderRequest req = > (RenderRequest)request.getAttribute("javax.portlet.request"); > String sites = > getResources(request).getMessage("upsws.site.list." + > req.getPreferences().getValue("SITE_IND","").toLowerCase()); > log4j.debug(sites); > IMailManifestDAO dao = > DAOBuilder.buildMailManifestDAO(conn); > boolean uspsActive = > dao.uspsJobsExist(sites); > > choiceForm.setUspsActive(uspsActive); > log4j.info("USPS link is " + > ((uspsActive) ? " active": " not active")); > > return > mapping.findForward("next"); > > } finally { > DAOUtils.closeConnection(conn); > } > } > static final Logger log4j = > Logger.getLogger(ChoiceAction.class); > } > > log: > INFO : 2009-05-20 16:26:18,581 > com.bbb.adf.controller.WpsStrutsPortletOSU:WpsStrutsPortletOSU init() using > URL = file:/usr/WebSphere/wps61/wp_profile/installedApps/ret7a15 > 9/PA_MailManifest.ear/MailManifest.war/WEB-INF/classes/log4j.properties > DEBUG: 2009-05-20 16:26:19,264 index.jsp:begin > ERROR: 2009-05-20 16:26:19,713 com.bbb.exceptions.DefaultHandler:Exception > caught by default handler. > javax.portlet.PortletException: javax.portlet.PortletException: > javax.servlet.jsp.JspException: Exception forwarding for name welcome: > java.lang.IllegalStateException: Cannot > forward. Response already committed. > at > com.ibm.portal.struts.command.StrutsViewJspCommand.includeURL(StrutsViewJs
IllegalStateException: Cannot forward. Response already committed.
Thanks in advance for any help on this... I understand we get this exception when the JSP attempts to write to the print stream after the response has been committed but I don't see how this is occurring in my situation since my JSP just contains a simple forward. Index.jsp <%@ taglib uri="http://struts.apache.org/tags-logic"; prefix="logic"%> <%@ page contentType="text/html" import="org.apache.log4j.Logger"%> <% final Logger log = Logger.getLogger("index.jsp"); log.debug("begin"); %> Here is my action class (note that in my logs, this exception occurs even before the execute method is called!): public class ChoiceAction extends StrutsAction { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { log4j.debug("execute"); ManifestChoiceFormBean choiceForm = (ManifestChoiceFormBean) form; Connection conn = DAOUtils.getConnection("jdbc/OSURptDb"); try { RenderRequest req = (RenderRequest)request.getAttribute("javax.portlet.request"); String sites = getResources(request).getMessage("upsws.site.list." + req.getPreferences().getValue("SITE_IND","").toLowerCase()); log4j.debug(sites); IMailManifestDAO dao = DAOBuilder.buildMailManifestDAO(conn); boolean uspsActive = dao.uspsJobsExist(sites); choiceForm.setUspsActive(uspsActive); log4j.info("USPS link is " + ((uspsActive) ? " active": " not active")); return mapping.findForward("next"); } finally { DAOUtils.closeConnection(conn); } } static final Logger log4j = Logger.getLogger(ChoiceAction.class); } log: INFO : 2009-05-20 16:26:18,581 com.bbb.adf.controller.WpsStrutsPortletOSU:WpsStrutsPortletOSU init() using URL = file:/usr/WebSphere/wps61/wp_profile/installedApps/ret7a15 9/PA_MailManifest.ear/MailManifest.war/WEB-INF/classes/log4j.properties DEBUG: 2009-05-20 16:26:19,264 index.jsp:begin ERROR: 2009-05-20 16:26:19,713 com.bbb.exceptions.DefaultHandler:Exception caught by default handler. javax.portlet.PortletException: javax.portlet.PortletException: javax.servlet.jsp.JspException: Exception forwarding for name welcome: java.lang.IllegalStateException: Cannot forward. Response already committed. at com.ibm.portal.struts.command.StrutsViewJspCommand.includeURL(StrutsViewJspCommand.java:192) at com.ibm.portal.struts.command.StrutsViewJspCommand.execute(StrutsViewJspCommand.java:154) Caused by: javax.portlet.PortletException: javax.servlet.jsp.JspException: Exception forwarding for name welcome: java.lang.IllegalStateException: Cannot forward. Response already commit ted. at com.ibm.ws.portletcontainer.core.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:125) at com.ibm.ws.portletcontainer.core.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:230) at com.ibm.wps.standard.struts.util.WpsStrutsUtil.include(WpsStrutsUtil.java:2242) at com.ibm.portal.struts.command.StrutsViewJspCommand.includeURL(StrutsViewJspCommand.java:186) ... 240 more Caused by: javax.servlet.jsp.JspException: Exception forwarding for name welcome: java.lang.IllegalStateException: Cannot forward. Response already committed. at org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:173) at com.ibm.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:94) ... DEBUG: 2009-05-20 16:26:19,946 com.bbb.ui.actions.ChoiceAction:execute DEBUG: 2009-05-20 16:26:20,234 com.bbb.ui.actions.ChoiceAction:CPC,CPC-OH INFO : 2009-05-20 16:26:20,254 com.bbb.ui.actions.ChoiceAction:USPS link is not active I am using WebSphere Portal 6.1 This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those o
Re: Response already committed when using ActionTag
My impression was that ActionComponent executed the action via an action proxy (although I'm looking at trunk). But the tag is in a JSP page that will have already been writing, at which point I don't think you'd be able to modify the headers (I've never used response.reset, I don't know if that would help or not). Dave --- On Sat, 6/14/08, Jeromy Evans <[EMAIL PROTECTED]> wrote: > From: Jeromy Evans <[EMAIL PROTECTED]> > Subject: Re: Response already committed when using ActionTag > To: "Struts Users Mailing List" > Date: Saturday, June 14, 2008, 10:01 PM > [EMAIL PROTECTED] wrote: > > Hi Jeromy, thanks for the respose. > > > > The response is already committed in the action class > (before the Result is > > executed). In the execute() method, the result of > 'response.isCommitted()' > > is true. So I think the response is committed even > before getting to the > > Result. > > > > According to J2EE documentation, when using > > RequestDispatcher.include(rquest, response), you > can't set headers in the > > response, which means you can't set cookies. > That's the problem I'm having > > - I can't set a cookie in the action class called > via s:action. So perhaps > > that's what s:action does, it does an include. > > > > > > David > > > Okay, that makes sense. I didn't think it did an > include though as that > was this tag's main distinction from the include tag > (in that it invokes > an action directly). But as you're already within a > result (rendering > JSP) perhaps the parent result has already prevented you > from setting > the headers? > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Response already committed when using ActionTag
[EMAIL PROTECTED] wrote: Hi Jeromy, thanks for the respose. The response is already committed in the action class (before the Result is executed). In the execute() method, the result of 'response.isCommitted()' is true. So I think the response is committed even before getting to the Result. According to J2EE documentation, when using RequestDispatcher.include(rquest, response), you can't set headers in the response, which means you can't set cookies. That's the problem I'm having - I can't set a cookie in the action class called via s:action. So perhaps that's what s:action does, it does an include. David Okay, that makes sense. I didn't think it did an include though as that was this tag's main distinction from the include tag (in that it invokes an action directly). But as you're already within a result (rendering JSP) perhaps the parent result has already prevented you from setting the headers? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Response already committed when using ActionTag
Hi Jeromy, thanks for the respose. The response is already committed in the action class (before the Result is executed). In the execute() method, the result of 'response.isCommitted()' is true. So I think the response is committed even before getting to the Result. According to J2EE documentation, when using RequestDispatcher.include(rquest, response), you can't set headers in the response, which means you can't set cookies. That's the problem I'm having - I can't set a cookie in the action class called via s:action. So perhaps that's what s:action does, it does an include. David Jeromy Evans <[EMAIL PROTECTED] eskyminds.com.au> To Struts Users Mailing List 06/13/2008 10:04 PM cc Subject Please respond to Re: Response already committed when "Struts Users using ActionTag Mailing List" <[EMAIL PROTECTED] he.org> [EMAIL PROTECTED] wrote: > I have a JSP that uses an ActionTag to call a Struts 2 action > class directly from the JSP. But in the action class, the HTTP response > has already been committed. This makes it impossible for me to set cookies > from my action class. > > I tested this by calling HttpServletResponse.isCommitted() is my execute() > method of my action class, and it returns true. > > Is this a bug? Why is the response committed if the JSP hasn't finished > rendering? > Struts2 ActionInvocations are not designed to be nested, but the s:action tag attempts to do this. It works most of the time, but not all Results can be executed within another page, and not pages can handle changes to the ActionContext by the nest invocation. The Action tag is quite dodgy for this reason but there is currently no better alternative in S2. The problem is your case is with the Result that was executed. I presume it has executed a ServletRedirectResult which assumes it can commit the response (and does). TilesResult also has the same problem. Try a different Result type. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - This message, together with any attachments, is intended only for the use of the individual or entity to which it is addressed. It may contain information that is confidential and prohibited from disclosure. If you are not the intended recipient, you are hereby notified that any dissemination or copying of this message or any attachment is strictly prohibited. If you have received this message in error, please notify the original sender immediately by telephone or by return e-mail and delete this message, along with any attachments, from your computer. Thank you. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Response already committed when using ActionTag
[EMAIL PROTECTED] wrote: I have a JSP that uses an ActionTag to call a Struts 2 action class directly from the JSP. But in the action class, the HTTP response has already been committed. This makes it impossible for me to set cookies from my action class. I tested this by calling HttpServletResponse.isCommitted() is my execute() method of my action class, and it returns true. Is this a bug? Why is the response committed if the JSP hasn't finished rendering? Struts2 ActionInvocations are not designed to be nested, but the s:action tag attempts to do this. It works most of the time, but not all Results can be executed within another page, and not pages can handle changes to the ActionContext by the nest invocation. The Action tag is quite dodgy for this reason but there is currently no better alternative in S2. The problem is your case is with the Result that was executed. I presume it has executed a ServletRedirectResult which assumes it can commit the response (and does). TilesResult also has the same problem. Try a different Result type. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Response already committed when using ActionTag
I have a JSP that uses an ActionTag to call a Struts 2 action class directly from the JSP. But in the action class, the HTTP response has already been committed. This makes it impossible for me to set cookies from my action class. I tested this by calling HttpServletResponse.isCommitted() is my execute() method of my action class, and it returns true. Is this a bug? Why is the response committed if the JSP hasn't finished rendering? --somePage.jsp-- --struts.xml-- /page.jsp --MyAction.java-- public String execute() { System.out.println("response.isCommitted() = " + response.isCommitted()); //this prints true } Thanks, David - This message, together with any attachments, is intended only for the use of the individual or entity to which it is addressed. It may contain information that is confidential and prohibited from disclosure. If you are not the intended recipient, you are hereby notified that any dissemination or copying of this message or any attachment is strictly prohibited. If you have received this message in error, please notify the original sender immediately by telephone or by return e-mail and delete this message, along with any attachments, from your computer. Thank you. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs
Can u post the complete stacktrace. - Original Message - From: "Paul Benedict" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, October 29, 2007 10:15 AM Subject: Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs Test your app in Tomcat. If it works there, you have a WebSphere problem. In my experience, WebSphere is a big bloated mess but I know that doesn't help you. However, you need to determine if it is a bug within WAS itself. Paul On 10/24/07, patb23 <[EMAIL PROTECTED]> wrote: Hi, I am using RAD 7.0 with WAS test environment. My Struts2 app is not working (There is no Action mapped for action name - error) in the test environment. I exported my project as WAR and deployed it in the app server. This time it worked. I observed the same behavior even with the Struts Blank application. With resources in my workspace, it is not working but when I deploy the app as WAR it is working. I even upgraded to WAS 6.1.0.5 Fix pack but with no luck. Could anyone explain the reason for this strange behavior? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs
Test your app in Tomcat. If it works there, you have a WebSphere problem. In my experience, WebSphere is a big bloated mess but I know that doesn't help you. However, you need to determine if it is a bug within WAS itself. Paul On 10/24/07, patb23 <[EMAIL PROTECTED]> wrote: > > > Hi, > I am using RAD 7.0 with WAS test environment. > My Struts2 app is not working (There is no Action mapped for action name - > error) in the test environment. I exported my project as WAR and deployed > it > in the app server. This time it worked. I observed the same behavior even > with the Struts Blank application. With resources in my workspace, it is > not > working but when I deploy the app as WAR it is working. > > I even upgraded to WAS 6.1.0.5 Fix pack but with no luck. > > Could anyone explain the reason for this strange behavior? > > Thanks > >
Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs
n, distribution or copying of this communication >>>>>>>>>> is >>>>>>>>>> strictly prohibited. >>>>>>>>>> --- >>>>>>>>>> Le présent message électronique (y compris les pièces qui y sont >>>>>>>>>> annexées, >>>>>>>>>> le cas échéant) s'adresse au destinataire indiqué et peut >>>>>>>>>> contenir >>>>>>>>>> des >>>>>>>>>> renseignements de caractère privé ou confidentiel. Si vous n'êtes >>>>>>>>>> pas >>>>>>>>>> le >>>>>>>>>> destinataire de ce document, nous vous signalons qu'il est >>>>>>>>>> strictement >>>>>>>>>> interdit de le diffuser, de le distribuer ou de le reproduire. >>>>>>>>>> - Original Message - >>>>>>>>>> From: "alkira" <[EMAIL PROTECTED]> >>>>>>>>>> To: >>>>>>>>>> Sent: Monday, March 26, 2007 3:16 PM >>>>>>>>>> Subject: [S2] Websphere 6.1 Showcase application, Response >>>>>>>>>> already >>>>>>>>>> committed warning in logs >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Hi, >>>>>>>>>>> >>>>>>>>>>> I am running Struts2 under Websphere 6.1, and getting a lot of >>>>>>>>>>> warning >>>>>>>>>>> messages in the logs. This is only happening under WebSphere >>>>>>>>>>> 6.1, >>>>>>>>>>> but >>>>>>>>>>> it >>>>>>>>>>> works fine under Tomcat. Also, it's happening both for the >>>>>>>>>>> Showcase >>>>>>>>>>> application, as well as my own applications in Struts2. >>>>>>>>>>> >>>>>>>>>>> The following is the message (which can occur multiple times for >>>>>>>>>>> the >>>>>>>>>>> same >>>>>>>>>>> page): >>>>>>>>>>> [3/25/07 15:39:05:343 EDT] 002b SRTServletRes W WARNING: >>>>>>>>>>> Cannot >>>>>>>>>>> set >>>>>>>>>>> status. Response already committed. >>>>>>>>>>> [3/25/07 15:39:05:343 EDT] 002b SRTServletRes W WARNING: >>>>>>>>>>> Cannot >>>>>>>>>>> set >>>>>>>>>>> header. Response already committed. >>>>>>>>>>> >>>>>>>>>>> Is anyone else seeing this as well? >>>>>>>>>>> >>>>>>>>>>> Thanks! >>>>>>>>>>> >>>>>>>>>>> Alex >>>>>>>>>>> -- >>>>>>>>>>> View this message in context: >>>>>>>>>>> http://www.nabble.com/-S2--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-tf3468980.html#a9679630 >>>>>>>>>>> Sent from the Struts - User mailing list archive at Nabble.com. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> - >>>>>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Using Opera's revolutionary e-mail client: >>>>>>>> http://www.opera.com/mail/ >>>>>>>> >>>>>>>> - >>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ >>>>> >>>>> - >>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/-S2--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-tf3468980.html#a13391717 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] - [FIXED!] Websphere 6.1 Showcase application, Response already committed warning in logs
Hi Antony, Did you fix this in the IRAD IDE or on the WAS server ?. I'm using RAD 7.0.0 and wasn't able to apply the patch ; seems 6.1.0.5 won't work on this version. Thanks, Joseph newton.dave wrote: > > --- Antony Stubbs <[EMAIL PROTECTED]> wrote: >> Just as an after thought - perhaps this should be >> added to the wiki somewhere? I would be happy to add > >> a summary if someone would suggest an appropriate >> place to put it? Installation notes? (NB: If >> installing on Websphere 6 <> 6.1.05 etc) > > I had started a small section in the FAQS called > "Issues in Specific Environments"; that might be okay > for now, but all that should probably have a link from > one of the "Getting Started" pages. > > d. > > > > > > Never miss an email again! > Yahoo! Toolbar alerts you the instant new Mail arrives. > http://tools.search.yahoo.com/toolbar/features/mail/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-S2--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-tf3468980.html#a12300707 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Response already committed
I just re-read your email... pls ignore my last reply. My s2 knowlege is very minimal but chances are that an ajax action is triggered by an XmlHttpRequest. In this case, you don't want to redirect this request. What you want to do is send something (javascript) back to the calling page telling it to redirect itself. I'm sure one of the s2 users out there have some suggestions here. Lance. Lance wrote: It sounds like you are still redirecting after the repsponse is comitted. If you attempt to do this on tomcat, an error will be reported then instead of redirecting, the redirect page will be included at the end of the current page. Gajbhe, Laxman (Contractor) wrote: Lance, Thanks for your help! I am now able to redirect the page except on timeout it still opens right under the clicked tab instead of as a full login page. It seems even the redirected page gets displayed as an ajax content if the original request was triggered by the ajax action. Can you think any way to handle this? Thanks again! Laxman This e-mail and its attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them. -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 25, 2007 3:47 AM To: Struts Users Mailing List Subject: Re: Response already committed The response is considered committed once you have written to the outputstream (perhaps in a jsp). Once a response has been comitted, you can not redirect or forward etc. The best solution is to redirect before you write anything to the output stream, sometimes this is not possible. Another slightly dodgy solution (I have used this) is to write a script tag to the outputstream. document.location.href = 'loginPage.do'; You can check if the response has been comitted using response.isComitted() http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletRespo nse.html Gajbhe, Laxman (Contractor) wrote: Hi, I've following global result to handle authentication. login /home input ... For most part this works fine. The only problem with this is that on session timeout, it opens up the login page nested inside the page being requested. For example if there are tabs on the page and if the user clicks on one of the tab when the session is timed out, it opens the login page as a content of the current tab. So, I figured changing result type to 'redirect-action' should fix it. Now it started complaing about "response already commited" when I am logging in first time itself. Here is the snippets of my interceptor code: public String intercept(final ActionInvocation invocation) throws Exception { final SessionMap session = (SessionMap) ActionContext.getContext().get(ActionContext.SESSION); final SessionSecureUser user = (SessionSecureUser) session.get(Constants.AUTHORIZED_KEY); if (user == null) { return Action.LOGIN; } Could you please suggest where I could be going wrong with this? thanks for your help! Laxman This e-mail and its attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Response already committed
It sounds like you are still redirecting after the repsponse is comitted. If you attempt to do this on tomcat, an error will be reported then instead of redirecting, the redirect page will be included at the end of the current page. Gajbhe, Laxman (Contractor) wrote: Lance, Thanks for your help! I am now able to redirect the page except on timeout it still opens right under the clicked tab instead of as a full login page. It seems even the redirected page gets displayed as an ajax content if the original request was triggered by the ajax action. Can you think any way to handle this? Thanks again! Laxman This e-mail and its attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them. -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 25, 2007 3:47 AM To: Struts Users Mailing List Subject: Re: Response already committed The response is considered committed once you have written to the outputstream (perhaps in a jsp). Once a response has been comitted, you can not redirect or forward etc. The best solution is to redirect before you write anything to the output stream, sometimes this is not possible. Another slightly dodgy solution (I have used this) is to write a script tag to the outputstream. document.location.href = 'loginPage.do'; You can check if the response has been comitted using response.isComitted() http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletRespo nse.html Gajbhe, Laxman (Contractor) wrote: Hi, I've following global result to handle authentication. login /home input ... For most part this works fine. The only problem with this is that on session timeout, it opens up the login page nested inside the page being requested. For example if there are tabs on the page and if the user clicks on one of the tab when the session is timed out, it opens the login page as a content of the current tab. So, I figured changing result type to 'redirect-action' should fix it. Now it started complaing about "response already commited" when I am logging in first time itself. Here is the snippets of my interceptor code: public String intercept(final ActionInvocation invocation) throws Exception { final SessionMap session = (SessionMap) ActionContext.getContext().get(ActionContext.SESSION); final SessionSecureUser user = (SessionSecureUser) session.get(Constants.AUTHORIZED_KEY); if (user == null) { return Action.LOGIN; } Could you please suggest where I could be going wrong with this? thanks for your help! Laxman This e-mail and its attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Response already committed
Lance, Thanks for your help! I am now able to redirect the page except on timeout it still opens right under the clicked tab instead of as a full login page. It seems even the redirected page gets displayed as an ajax content if the original request was triggered by the ajax action. Can you think any way to handle this? Thanks again! Laxman This e-mail and its attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them. -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 25, 2007 3:47 AM To: Struts Users Mailing List Subject: Re: Response already committed The response is considered committed once you have written to the outputstream (perhaps in a jsp). Once a response has been comitted, you can not redirect or forward etc. The best solution is to redirect before you write anything to the output stream, sometimes this is not possible. Another slightly dodgy solution (I have used this) is to write a script tag to the outputstream. document.location.href = 'loginPage.do'; You can check if the response has been comitted using response.isComitted() http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletRespo nse.html Gajbhe, Laxman (Contractor) wrote: > Hi, > > I've following global result to handle authentication. > > > > > > login > > /home > > input > > > > ... > > > > For most part this works fine. The only problem with this is that on > session timeout, it opens up the login page nested inside the page being > requested. > > For example if there are tabs on the page and if the user clicks on one > of the tab when the session is timed out, it opens the login page as a > content of the current tab. > > So, I figured changing result type to 'redirect-action' should fix it. > Now it started complaing about "response already commited" when I am > logging in first time itself. > > Here is the snippets of my interceptor code: > > public String intercept(final ActionInvocation invocation) throws > Exception { > > final SessionMap session = (SessionMap) > ActionContext.getContext().get(ActionContext.SESSION); > > final SessionSecureUser user = (SessionSecureUser) > session.get(Constants.AUTHORIZED_KEY); > > if (user == null) { > > return Action.LOGIN; > > } > > Could you please suggest where I could be going wrong with this? > > thanks for your help! > > Laxman > > > > > > This e-mail and its attachments are confidential and solely for the > intended addressee(s). Do not share or use them without Fannie Mae's > approval. If received in error, contact the sender and delete them. > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Response already committed
The response is considered committed once you have written to the outputstream (perhaps in a jsp). Once a response has been comitted, you can not redirect or forward etc. The best solution is to redirect before you write anything to the output stream, sometimes this is not possible. Another slightly dodgy solution (I have used this) is to write a script tag to the outputstream. document.location.href = 'loginPage.do'; You can check if the response has been comitted using response.isComitted() http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletResponse.html Gajbhe, Laxman (Contractor) wrote: Hi, I've following global result to handle authentication. login /home input ... For most part this works fine. The only problem with this is that on session timeout, it opens up the login page nested inside the page being requested. For example if there are tabs on the page and if the user clicks on one of the tab when the session is timed out, it opens the login page as a content of the current tab. So, I figured changing result type to 'redirect-action' should fix it. Now it started complaing about "response already commited" when I am logging in first time itself. Here is the snippets of my interceptor code: public String intercept(final ActionInvocation invocation) throws Exception { final SessionMap session = (SessionMap) ActionContext.getContext().get(ActionContext.SESSION); final SessionSecureUser user = (SessionSecureUser) session.get(Constants.AUTHORIZED_KEY); if (user == null) { return Action.LOGIN; } Could you please suggest where I could be going wrong with this? thanks for your help! Laxman This e-mail and its attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Response already committed
Hi, I've following global result to handle authentication. login /home input ... For most part this works fine. The only problem with this is that on session timeout, it opens up the login page nested inside the page being requested. For example if there are tabs on the page and if the user clicks on one of the tab when the session is timed out, it opens the login page as a content of the current tab. So, I figured changing result type to 'redirect-action' should fix it. Now it started complaing about "response already commited" when I am logging in first time itself. Here is the snippets of my interceptor code: public String intercept(final ActionInvocation invocation) throws Exception { final SessionMap session = (SessionMap) ActionContext.getContext().get(ActionContext.SESSION); final SessionSecureUser user = (SessionSecureUser) session.get(Constants.AUTHORIZED_KEY); if (user == null) { return Action.LOGIN; } Could you please suggest where I could be going wrong with this? thanks for your help! Laxman This e-mail and its attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them.
Re: [S2] - [FIXED!] Websphere 6.1 Showcase application, Response already committed warning in logs
--- Antony Stubbs <[EMAIL PROTECTED]> wrote: > Just as an after thought - perhaps this should be > added to the wiki somewhere? I would be happy to add > a summary if someone would suggest an appropriate > place to put it? Installation notes? (NB: If > installing on Websphere 6 <> 6.1.05 etc) I had started a small section in the FAQS called "Issues in Specific Environments"; that might be okay for now, but all that should probably have a link from one of the "Getting Started" pages. d. Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] - [FIXED!] Websphere 6.1 Showcase application, Response already committed warning in logs
Just as an after thought - perhaps this should be added to the wiki somewhere? I would be happy to add a summary if someone would suggest an appropriate place to put it? Installation notes? (NB: If installing on Websphere 6 <> 6.1.05 etc) Antony Stubbs wrote: > > Just marking as fixed. > > > Antony Stubbs wrote: >> >> Great news guys - problems solved. Everything now seems to be working >> great. >> >> So - to get it working, i installed the 6.1.0.5 fix pack, and the >> http://www-1.ibm.com/support/docview.wss?rs=0&uid=swg24014758 interim fix >> for PK33090 . There is another related issue:PK27620. >> >> Now here's the key - what you also have to do, is set >> com.ibm.ws.webcontainer.invokefilterscompatibility custom property on >> your web container settings to 'true' for the fix to take effect. >> >> Hoorah! The struts2-blank, struts2-showcase also works great, as well as >> the AJAX pages! And my app as well - along with SiteMesh decoration! >> >> >> "When a request is made for a file that does not exist at the >> location specified in the request the Webcontainer calls the >> filters (if any) associated with the request. If the filters >> were able to find the requested resource the request is >> supposed to continue on as normal. However the webcontainer is >> sending back a 404 error even though the filters were able to >> find the resource." >> >> AND >> >> "If a JSP is accessed using a URI that >> does not exist as part of a web >> application (but can be mapped via a >> servlet filter), a 404 "File not >> found" exception will be reported." >> >> http://forum.springframework.org/newreply.php?do=newreply&noquote=1&p=100026 >> "pea1: >> I got a response from IBM. They ackowledge this problem and gave me a >> work-around. >> Quote: >> One of our level 2 technicians stated this about the apar... >> "APAR PK27620 changed a lot of the code dealing with filters. We had to >> add a property in our methods to keep certain functionality. While >> fixing some problems it(the apar) has changed the behaviour of certain >> filter functionality. So we had to add a new custom property for >> 6.1.0.3+" >> >> The custom property he is talkin about is; >> com.ibm.ws.webcontainer.invokefilterscompatibility >> >> The com.ibm.ws.webcontainer.invokefilterscompatibility should be set to >> true >> through Application Servers -> -> Web Container Settings -> Web >> Container -> Custom Properties. Once set, you don't need to remove this >> custom property even if you upgrade the WAS. >> I tried this and it appears to work for me. Here's a similar issue: >> http://www-1.ibm.com/support/docview...=utf-8&lang=en >> >> Note, that I have some other apps using Acegi 1.0.2 on WebSphere 6.1.0.3 >> and they weren't having this issue, so it's not a consistent problem." >> >> >> Antony Stubbs wrote: >>> >>> Ok, after installing Websphere 6.1 update pack >>> (6.1.0.5-WS-WAS-IFPK33090), I know get a worse result. It seems that the >>> struts2 filter isn't even being run? >>> >>> now *all* i get is "Error 404: SRVE0190E: File not found: >>> /eventProfile.action" >>> printed to the screen, and *nothing* in the logs. ugh. >>> >>> It appears as though Struts2 filter isn't even being invoked. >>> I switched to Tapio's custom WebsphereFilterDispatcher and put some >>> break points in there to catch execution, but it never breaks - it just >>> very quickly puts up that msg. >>> >>> struts1 within the same project still works fine though, running the >>> servlet *.do mapping. >>> >>> And just in case someone asks: >>> >>> struts2>>>>>>>>>> This e-mail message (including attachments, if any) is intended >>>>>>>>>>> for >>>>>>>>>>> the >>>>>>>>>>> use of the individual or entity to which it is addressed and may >>>>>>>>>>> contain >>>>>>>>>>> information that is privileged, proprietary , confidential and >>>>>>>>>>> exempt >>>>>>>>>>> from >>>>>>>>>>> disclosure. If you are not the intended recipient, you are >>>&
Re: [S2] - [FIXED!] Websphere 6.1 Showcase application, Response already committed warning in logs
Just marking as fixed. Antony Stubbs wrote: > > Great news guys - problems solved. Everything now seems to be working > great. > > So - to get it working, i installed the 6.1.0.5 fix pack, and the > http://www-1.ibm.com/support/docview.wss?rs=0&uid=swg24014758 interim fix > for PK33090 . There is another related issue:PK27620. > > Now here's the key - what you also have to do, is set > com.ibm.ws.webcontainer.invokefilterscompatibility custom property on your > web container settings to 'true' for the fix to take effect. > > Hoorah! The struts2-blank, struts2-showcase also works great, as well as > the AJAX pages! And my app as well - along with SiteMesh decoration! > > > "When a request is made for a file that does not exist at the > location specified in the request the Webcontainer calls the > filters (if any) associated with the request. If the filters > were able to find the requested resource the request is > supposed to continue on as normal. However the webcontainer is > sending back a 404 error even though the filters were able to > find the resource." > > AND > > "If a JSP is accessed using a URI that > does not exist as part of a web > application (but can be mapped via a > servlet filter), a 404 "File not > found" exception will be reported." > > http://forum.springframework.org/newreply.php?do=newreply&noquote=1&p=100026 > "pea1: > I got a response from IBM. They ackowledge this problem and gave me a > work-around. > Quote: > One of our level 2 technicians stated this about the apar... > "APAR PK27620 changed a lot of the code dealing with filters. We had to > add a property in our methods to keep certain functionality. While > fixing some problems it(the apar) has changed the behaviour of certain > filter functionality. So we had to add a new custom property for > 6.1.0.3+" > > The custom property he is talkin about is; > com.ibm.ws.webcontainer.invokefilterscompatibility > > The com.ibm.ws.webcontainer.invokefilterscompatibility should be set to > true > through Application Servers -> -> Web Container Settings -> Web > Container -> Custom Properties. Once set, you don't need to remove this > custom property even if you upgrade the WAS. > I tried this and it appears to work for me. Here's a similar issue: > http://www-1.ibm.com/support/docview...=utf-8&lang=en > > Note, that I have some other apps using Acegi 1.0.2 on WebSphere 6.1.0.3 > and they weren't having this issue, so it's not a consistent problem." > > > Antony Stubbs wrote: >> >> Ok, after installing Websphere 6.1 update pack >> (6.1.0.5-WS-WAS-IFPK33090), I know get a worse result. It seems that the >> struts2 filter isn't even being run? >> >> now *all* i get is "Error 404: SRVE0190E: File not found: >> /eventProfile.action" >> printed to the screen, and *nothing* in the logs. ugh. >> >> It appears as though Struts2 filter isn't even being invoked. >> I switched to Tapio's custom WebsphereFilterDispatcher and put some break >> points in there to catch execution, but it never breaks - it just very >> quickly puts up that msg. >> >> struts1 within the same project still works fine though, running the >> servlet *.do mapping. >> >> And just in case someone asks: >> >> struts2>>>>>>>>> This e-mail message (including attachments, if any) is intended >>>>>>>>>> for >>>>>>>>>> the >>>>>>>>>> use of the individual or entity to which it is addressed and may >>>>>>>>>> contain >>>>>>>>>> information that is privileged, proprietary , confidential and >>>>>>>>>> exempt >>>>>>>>>> from >>>>>>>>>> disclosure. If you are not the intended recipient, you are >>>>>>>>>> notified >>>>>>>>>> that >>>>>>>>>> any dissemination, distribution or copying of this communication >>>>>>>>>> is >>>>>>>>>> strictly prohibited. >>>>>>>>>> --- >>>>>>>>>> Le présent message électronique (y compris les pièces qui y sont >>>>>>>>>> annexées, >>>>>>>>>> le cas échéant) s'adresse au destinatair
Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs
Great news guys - problems solved. Everything now seems to be working great. So - to get it working, i installed the 6.1.0.5 fix pack, and the http://www-1.ibm.com/support/docview.wss?rs=0&uid=swg24014758 interim fix for PK33090 . There is another related issue:PK27620. Now here's the key - what you also have to do, is set com.ibm.ws.webcontainer.invokefilterscompatibility custom property on your web container settings to 'true' for the fix to take effect. Hoorah! The struts2-blank, struts2-showcase also works great, as well as the AJAX pages! And my app as well - along with SiteMesh decoration! "When a request is made for a file that does not exist at the location specified in the request the Webcontainer calls the filters (if any) associated with the request. If the filters were able to find the requested resource the request is supposed to continue on as normal. However the webcontainer is sending back a 404 error even though the filters were able to find the resource." AND "If a JSP is accessed using a URI that does not exist as part of a web application (but can be mapped via a servlet filter), a 404 "File not found" exception will be reported." http://forum.springframework.org/newreply.php?do=newreply&noquote=1&p=100026 "pea1: I got a response from IBM. They ackowledge this problem and gave me a work-around. Quote: One of our level 2 technicians stated this about the apar... "APAR PK27620 changed a lot of the code dealing with filters. We had to add a property in our methods to keep certain functionality. While fixing some problems it(the apar) has changed the behaviour of certain filter functionality. So we had to add a new custom property for 6.1.0.3+" The custom property he is talkin about is; com.ibm.ws.webcontainer.invokefilterscompatibility The com.ibm.ws.webcontainer.invokefilterscompatibility should be set to true through Application Servers -> -> Web Container Settings -> Web Container -> Custom Properties. Once set, you don't need to remove this custom property even if you upgrade the WAS. I tried this and it appears to work for me. Here's a similar issue: http://www-1.ibm.com/support/docview...=utf-8&lang=en Note, that I have some other apps using Acegi 1.0.2 on WebSphere 6.1.0.3 and they weren't having this issue, so it's not a consistent problem." Antony Stubbs wrote: > > Ok, after installing Websphere 6.1 update pack (6.1.0.5-WS-WAS-IFPK33090), > I know get a worse result. It seems that the struts2 filter isn't even > being run? > > now *all* i get is "Error 404: SRVE0190E: File not found: > /eventProfile.action" > printed to the screen, and *nothing* in the logs. ugh. > > It appears as though Struts2 filter isn't even being invoked. > I switched to Tapio's custom WebsphereFilterDispatcher and put some break > points in there to catch execution, but it never breaks - it just very > quickly puts up that msg. > > struts1 within the same project still works fine though, running the > servlet *.do mapping. > > And just in case someone asks: > > struts2>>>>>>>> This e-mail message (including attachments, if any) is intended >>>>>>>>> for >>>>>>>>> the >>>>>>>>> use of the individual or entity to which it is addressed and may >>>>>>>>> contain >>>>>>>>> information that is privileged, proprietary , confidential and >>>>>>>>> exempt >>>>>>>>> from >>>>>>>>> disclosure. If you are not the intended recipient, you are >>>>>>>>> notified >>>>>>>>> that >>>>>>>>> any dissemination, distribution or copying of this communication >>>>>>>>> is >>>>>>>>> strictly prohibited. >>>>>>>>> --- >>>>>>>>> Le présent message électronique (y compris les pièces qui y sont >>>>>>>>> annexées, >>>>>>>>> le cas échéant) s'adresse au destinataire indiqué et peut contenir >>>>>>>>> des >>>>>>>>> renseignements de caractère privé ou confidentiel. Si vous n'êtes >>>>>>>>> pas >>>>>>>>> le >>>>>>>>> destinataire de ce document, nous vous signalons qu'il est >>>>>>>>> strictement >>>>>>>>> interdit de le diffuser, de le distribuer ou de le re
Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs
Ok, after installing Websphere 6.1 update pack (6.1.0.5-WS-WAS-IFPK33090), I know get a worse result. It seems that the struts2 filter isn't even being run? now *all* i get is "Error 404: SRVE0190E: File not found: /eventProfile.action" printed to the screen, and *nothing* in the logs. ugh. It appears as though Struts2 filter isn't even being invoked. I switched to Tapio's custom WebsphereFilterDispatcher and put some break points in there to catch execution, but it never breaks - it just very quickly puts up that msg. struts1 within the same project still works fine though, running the servlet *.do mapping. And just in case someone asks: struts2>>>>>>> This e-mail message (including attachments, if any) is intended for >>>>>>>> the >>>>>>>> use of the individual or entity to which it is addressed and may >>>>>>>> contain >>>>>>>> information that is privileged, proprietary , confidential and >>>>>>>> exempt >>>>>>>> from >>>>>>>> disclosure. If you are not the intended recipient, you are notified >>>>>>>> that >>>>>>>> any dissemination, distribution or copying of this communication is >>>>>>>> strictly prohibited. >>>>>>>> --- >>>>>>>> Le présent message électronique (y compris les pièces qui y sont >>>>>>>> annexées, >>>>>>>> le cas échéant) s'adresse au destinataire indiqué et peut contenir >>>>>>>> des >>>>>>>> renseignements de caractère privé ou confidentiel. Si vous n'êtes >>>>>>>> pas >>>>>>>> le >>>>>>>> destinataire de ce document, nous vous signalons qu'il est >>>>>>>> strictement >>>>>>>> interdit de le diffuser, de le distribuer ou de le reproduire. >>>>>>>> - Original Message - >>>>>>>> From: "alkira" <[EMAIL PROTECTED]> >>>>>>>> To: >>>>>>>> Sent: Monday, March 26, 2007 3:16 PM >>>>>>>> Subject: [S2] Websphere 6.1 Showcase application, Response already >>>>>>>> committed warning in logs >>>>>>>> >>>>>>>> >>>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> I am running Struts2 under Websphere 6.1, and getting a lot of >>>>>>>>> warning >>>>>>>>> messages in the logs. This is only happening under WebSphere 6.1, >>>>>>>>> but >>>>>>>>> it >>>>>>>>> works fine under Tomcat. Also, it's happening both for the >>>>>>>>> Showcase >>>>>>>>> application, as well as my own applications in Struts2. >>>>>>>>> >>>>>>>>> The following is the message (which can occur multiple times for >>>>>>>>> the >>>>>>>>> same >>>>>>>>> page): >>>>>>>>> [3/25/07 15:39:05:343 EDT] 002b SRTServletRes W WARNING: >>>>>>>>> Cannot >>>>>>>>> set >>>>>>>>> status. Response already committed. >>>>>>>>> [3/25/07 15:39:05:343 EDT] 002b SRTServletRes W WARNING: >>>>>>>>> Cannot >>>>>>>>> set >>>>>>>>> header. Response already committed. >>>>>>>>> >>>>>>>>> Is anyone else seeing this as well? >>>>>>>>> >>>>>>>>> Thanks! >>>>>>>>> >>>>>>>>> Alex >>>>>>>>> -- >>>>>>>>> View this message in context: >>>>>>>>> http://www.nabble.com/-S2--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-tf3468980.html#a9679630 >>>>>>>>> Sent from the Struts - User mailing list archive at Nabble.com. >>>>>>>>> >>>>>>>>> >>>>>>>>> - >>>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ >>>>>> >>>>>> - >>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>> >>> >>> >>> -- >>> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/-S2--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-tf3468980.html#a9806456 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs
Just double checked your fix, still doesn't work for me. I will let you know how it goes after I finish installing the fix packs. Antony Stubbs wrote: > > Yes I have tried your solution, and I still get those messages, along with > the lines appended to my js files. > > I'm trying to patch WebSphere now, but am not sure if the fix described > here is available. > You see I think it may be caused by > http://www-1.ibm.com/support/docview.wss?uid=swg24014758 this WebSphere > issue . > Found while browsing > http://www.mail-archive.com/dev@myfaces.apache.org/msg17765.html this > thread . > > I will double check your fix again in a second - download of fix pack to > 6.0.5 is going to take an hour. then there's a interim fix for the issue i > linked to (but gotta install the .5 fix pack first). > > > Tapio Holopainen wrote: >> >> If you define WebsphereFilterDispatcher in your web.xml, do you still get >> those 'response already committed' -messages? >> >> I'm using 2.0.6 release and managed to get rid of those messages by >> defining the filterdispatcher. >> >> But the AJAX problem is still not solved. I'm hoping that someone in >> Struts2 team would start to investigate this issue... >> >> - Tapio >> >> >> On Tue, 03 Apr 2007 06:19:36 +0300, Antony Stubbs >> <[EMAIL PROTECTED]> wrote: >> >>> >>> FYI - the same thing is occuring the the struts-blank.war application. >>> (i.e. >>> the Cannot set status / header. Response already committed messages.) >>> >>> I have even downloaded the 2.0.7 release and tried using that - no >>> difference. >>> >>> >>> Antony Stubbs wrote: >>>> >>>> Looks like I've hit the same >>>> http://www.nabble.com/Config-Browser-half-works---java.io.FileNotFoundException-tf3503552.html#a9785373 >>>> problem . >>>> Any news? The fix you posted to doesn't work, however it does make the >>>> errors show faster. >>>> It breaks my dojo js, because WebSphere appends the error >>>> message:"Error >>>> 404: SRVE0190E: File not found: /struts/simple/dojoRequire.js" onto the >>>> bottom of the js files. >>>> E.g. >>>> dojo.hostenv.writeIncludes(); // not needed, but allows the Venkman >>>> debugger to work with the includes >>>> 2 >>>> 3Error 404: SRVE0190E: File not found: /struts/simple/dojoRequire.js >>>> 4 >>>> >>>> Info-I'm using Strust2 and have removed all my other filters (e.g. >>>> struts >>>> 1 and sitemesh) from web.xml - i.e. it's practically empty. >>>> >>>> Tapio Holopainen wrote: >>>>> >>>>> Hi, >>>>> >>>>> I solved this 'response already committed' problem in my application >>>>> by >>>>> writing own FilterDispatcher. Here's instructions -> >>>>> https://issues.apache.org/struts/browse/WW-1526 >>>>> >>>>> What is still not solved is how to make AJAX work in Websphere 6.1. I >>>>> have >>>>> created issue for this -> >>>>> https://issues.apache.org/struts/browse/WW-1839 >>>>> >>>>> Regards, >>>>> >>>>> - Tapio >>>>> >>>>> >>>>> On Tue, 27 Mar 2007 00:49:50 +0300, alkira <[EMAIL PROTECTED]> >>>>> wrote: >>>>> >>>>>> >>>>>> >>>>>> I am using Struts2 version 2.0.6, but not using JSF. This is >>>>>> happening >>>>>> on >>>>>> the vanilla version of the Showcase application as well, so nothing >>>>>> specific >>>>>> to my code. I tried to upgrade to the latest Websphere fixpack but >>>>>> that >>>>>> didnt help as well. Let me know if you need any other info. >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Alex >>>>>> >>>>>> >>>>>> >>>>>> Martin Gainty wrote: >>>>>>> >>>>>>> Hi Alex- >>>>>>> >>>>>>> Looks as if you have 2 responses for same Request >>>>>>> (GET/POST/PUT/DELETE) >>>>>>> so >>>>>>&
Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs
Yes I have tried your solution, and I still get those messages, along with the lines appended to my js files. I'm trying to patch WebSphere now, but am not sure if the fix described here is available. You see I think it may be caused by http://www-1.ibm.com/support/docview.wss?uid=swg24014758 this WebSphere issue . Found while browsing http://www.mail-archive.com/dev@myfaces.apache.org/msg17765.html this thread . I will double check your fix again in a second - download of fix pack to 6.0.5 is going to take an hour. then there's a interim fix for the issue i linked to (but gotta install the .5 fix pack first). Tapio Holopainen wrote: > > If you define WebsphereFilterDispatcher in your web.xml, do you still get > those 'response already committed' -messages? > > I'm using 2.0.6 release and managed to get rid of those messages by > defining the filterdispatcher. > > But the AJAX problem is still not solved. I'm hoping that someone in > Struts2 team would start to investigate this issue... > > - Tapio > > > On Tue, 03 Apr 2007 06:19:36 +0300, Antony Stubbs > <[EMAIL PROTECTED]> wrote: > >> >> FYI - the same thing is occuring the the struts-blank.war application. >> (i.e. >> the Cannot set status / header. Response already committed messages.) >> >> I have even downloaded the 2.0.7 release and tried using that - no >> difference. >> >> >> Antony Stubbs wrote: >>> >>> Looks like I've hit the same >>> http://www.nabble.com/Config-Browser-half-works---java.io.FileNotFoundException-tf3503552.html#a9785373 >>> problem . >>> Any news? The fix you posted to doesn't work, however it does make the >>> errors show faster. >>> It breaks my dojo js, because WebSphere appends the error message:"Error >>> 404: SRVE0190E: File not found: /struts/simple/dojoRequire.js" onto the >>> bottom of the js files. >>> E.g. >>> dojo.hostenv.writeIncludes(); // not needed, but allows the Venkman >>> debugger to work with the includes >>> 2 >>> 3Error 404: SRVE0190E: File not found: /struts/simple/dojoRequire.js >>> 4 >>> >>> Info-I'm using Strust2 and have removed all my other filters (e.g. >>> struts >>> 1 and sitemesh) from web.xml - i.e. it's practically empty. >>> >>> Tapio Holopainen wrote: >>>> >>>> Hi, >>>> >>>> I solved this 'response already committed' problem in my application by >>>> writing own FilterDispatcher. Here's instructions -> >>>> https://issues.apache.org/struts/browse/WW-1526 >>>> >>>> What is still not solved is how to make AJAX work in Websphere 6.1. I >>>> have >>>> created issue for this -> >>>> https://issues.apache.org/struts/browse/WW-1839 >>>> >>>> Regards, >>>> >>>> - Tapio >>>> >>>> >>>> On Tue, 27 Mar 2007 00:49:50 +0300, alkira <[EMAIL PROTECTED]> wrote: >>>> >>>>> >>>>> >>>>> I am using Struts2 version 2.0.6, but not using JSF. This is >>>>> happening >>>>> on >>>>> the vanilla version of the Showcase application as well, so nothing >>>>> specific >>>>> to my code. I tried to upgrade to the latest Websphere fixpack but >>>>> that >>>>> didnt help as well. Let me know if you need any other info. >>>>> >>>>> Thanks, >>>>> >>>>> Alex >>>>> >>>>> >>>>> >>>>> Martin Gainty wrote: >>>>>> >>>>>> Hi Alex- >>>>>> >>>>>> Looks as if you have 2 responses for same Request >>>>>> (GET/POST/PUT/DELETE) >>>>>> so >>>>>> if Servlet responds with a 200 then Servlet cannot send a second one >>>>>> with >>>>>> a 404 >>>>>> Give us a bit on your environment JSF or Struts2 and which version >>>>>> There may be a latency issue here .. tough to say w/o looking at the >>>>>> code >>>>>> >>>>>> M- >>>>>> --- >>>>>> This e-mail message (including attachments, if any) is intended for >>>>>> the >>>>>> use of the individual
Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs
If you define WebsphereFilterDispatcher in your web.xml, do you still get those 'response already committed' -messages? I'm using 2.0.6 release and managed to get rid of those messages by defining the filterdispatcher. But the AJAX problem is still not solved. I'm hoping that someone in Struts2 team would start to investigate this issue... - Tapio On Tue, 03 Apr 2007 06:19:36 +0300, Antony Stubbs <[EMAIL PROTECTED]> wrote: FYI - the same thing is occuring the the struts-blank.war application. (i.e. the Cannot set status / header. Response already committed messages.) I have even downloaded the 2.0.7 release and tried using that - no difference. Antony Stubbs wrote: Looks like I've hit the same http://www.nabble.com/Config-Browser-half-works---java.io.FileNotFoundException-tf3503552.html#a9785373 problem . Any news? The fix you posted to doesn't work, however it does make the errors show faster. It breaks my dojo js, because WebSphere appends the error message:"Error 404: SRVE0190E: File not found: /struts/simple/dojoRequire.js" onto the bottom of the js files. E.g. dojo.hostenv.writeIncludes(); // not needed, but allows the Venkman debugger to work with the includes 2 3Error 404: SRVE0190E: File not found: /struts/simple/dojoRequire.js 4 Info-I'm using Strust2 and have removed all my other filters (e.g. struts 1 and sitemesh) from web.xml - i.e. it's practically empty. Tapio Holopainen wrote: Hi, I solved this 'response already committed' problem in my application by writing own FilterDispatcher. Here's instructions -> https://issues.apache.org/struts/browse/WW-1526 What is still not solved is how to make AJAX work in Websphere 6.1. I have created issue for this -> https://issues.apache.org/struts/browse/WW-1839 Regards, - Tapio On Tue, 27 Mar 2007 00:49:50 +0300, alkira <[EMAIL PROTECTED]> wrote: I am using Struts2 version 2.0.6, but not using JSF. This is happening on the vanilla version of the Showcase application as well, so nothing specific to my code. I tried to upgrade to the latest Websphere fixpack but that didnt help as well. Let me know if you need any other info. Thanks, Alex Martin Gainty wrote: Hi Alex- Looks as if you have 2 responses for same Request (GET/POST/PUT/DELETE) so if Servlet responds with a 200 then Servlet cannot send a second one with a 404 Give us a bit on your environment JSF or Struts2 and which version There may be a latency issue here .. tough to say w/o looking at the code M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: "alkira" <[EMAIL PROTECTED]> To: Sent: Monday, March 26, 2007 3:16 PM Subject: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs Hi, I am running Struts2 under Websphere 6.1, and getting a lot of warning messages in the logs. This is only happening under WebSphere 6.1, but it works fine under Tomcat. Also, it's happening both for the Showcase application, as well as my own applications in Struts2. The following is the message (which can occur multiple times for the same page): [3/25/07 15:39:05:343 EDT] 002b SRTServletRes W WARNING: Cannot set status. Response already committed. [3/25/07 15:39:05:343 EDT] 002b SRTServletRes W WARNING: Cannot set header. Response already committed. Is anyone else seeing this as well? Thanks! Alex -- View this message in context: http://www.nabble.com/-S2--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-tf3468980.html#a9679630 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi
Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs
FYI - the same thing is occuring the the struts-blank.war application. (i.e. the Cannot set status / header. Response already committed messages.) I have even downloaded the 2.0.7 release and tried using that - no difference. Antony Stubbs wrote: > > Looks like I've hit the same > http://www.nabble.com/Config-Browser-half-works---java.io.FileNotFoundException-tf3503552.html#a9785373 > problem . > Any news? The fix you posted to doesn't work, however it does make the > errors show faster. > It breaks my dojo js, because WebSphere appends the error message:"Error > 404: SRVE0190E: File not found: /struts/simple/dojoRequire.js" onto the > bottom of the js files. > E.g. > dojo.hostenv.writeIncludes(); // not needed, but allows the Venkman > debugger to work with the includes > 2 > 3Error 404: SRVE0190E: File not found: /struts/simple/dojoRequire.js > 4 > > Info-I'm using Strust2 and have removed all my other filters (e.g. struts > 1 and sitemesh) from web.xml - i.e. it's practically empty. > > Tapio Holopainen wrote: >> >> Hi, >> >> I solved this 'response already committed' problem in my application by >> writing own FilterDispatcher. Here's instructions -> >> https://issues.apache.org/struts/browse/WW-1526 >> >> What is still not solved is how to make AJAX work in Websphere 6.1. I >> have >> created issue for this -> https://issues.apache.org/struts/browse/WW-1839 >> >> Regards, >> >> - Tapio >> >> >> On Tue, 27 Mar 2007 00:49:50 +0300, alkira <[EMAIL PROTECTED]> wrote: >> >>> >>> >>> I am using Struts2 version 2.0.6, but not using JSF. This is happening >>> on >>> the vanilla version of the Showcase application as well, so nothing >>> specific >>> to my code. I tried to upgrade to the latest Websphere fixpack but >>> that >>> didnt help as well. Let me know if you need any other info. >>> >>> Thanks, >>> >>> Alex >>> >>> >>> >>> Martin Gainty wrote: >>>> >>>> Hi Alex- >>>> >>>> Looks as if you have 2 responses for same Request (GET/POST/PUT/DELETE) >>>> so >>>> if Servlet responds with a 200 then Servlet cannot send a second one >>>> with >>>> a 404 >>>> Give us a bit on your environment JSF or Struts2 and which version >>>> There may be a latency issue here .. tough to say w/o looking at the >>>> code >>>> >>>> M- >>>> --- >>>> This e-mail message (including attachments, if any) is intended for the >>>> use of the individual or entity to which it is addressed and may >>>> contain >>>> information that is privileged, proprietary , confidential and exempt >>>> from >>>> disclosure. If you are not the intended recipient, you are notified >>>> that >>>> any dissemination, distribution or copying of this communication is >>>> strictly prohibited. >>>> ------- >>>> Le présent message électronique (y compris les pièces qui y sont >>>> annexées, >>>> le cas échéant) s'adresse au destinataire indiqué et peut contenir des >>>> renseignements de caractère privé ou confidentiel. Si vous n'êtes pas >>>> le >>>> destinataire de ce document, nous vous signalons qu'il est strictement >>>> interdit de le diffuser, de le distribuer ou de le reproduire. >>>> - Original Message - >>>> From: "alkira" <[EMAIL PROTECTED]> >>>> To: >>>> Sent: Monday, March 26, 2007 3:16 PM >>>> Subject: [S2] Websphere 6.1 Showcase application, Response already >>>> committed warning in logs >>>> >>>> >>>>> >>>>> Hi, >>>>> >>>>> I am running Struts2 under Websphere 6.1, and getting a lot of warning >>>>> messages in the logs. This is only happening under WebSphere 6.1, but >>>>> it >>>>> works fine under Tomcat. Also, it's happening both for the Showcase >>>>> application, as well as my own applications in Struts2. >>>>> >>>>> The following is the message (which can occur multiple times for the >>>>> same >>>>>
Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs
Looks like I've hit the same http://www.nabble.com/Config-Browser-half-works---java.io.FileNotFoundException-tf3503552.html#a9785373 problem . Any news? The fix you posted to doesn't work, however it does make the errors show faster. It breaks my dojo js, because WebSphere appends the error message:"Error 404: SRVE0190E: File not found: /struts/simple/dojoRequire.js" onto the bottom of the js files. E.g. dojo.hostenv.writeIncludes(); // not needed, but allows the Venkman debugger to work with the includes 2 3Error 404: SRVE0190E: File not found: /struts/simple/dojoRequire.js 4 Info-I'm using Strust2 and have removed all my other filters (e.g. struts 1 and sitemesh) from web.xml - i.e. it's practically empty. Tapio Holopainen wrote: > > Hi, > > I solved this 'response already committed' problem in my application by > writing own FilterDispatcher. Here's instructions -> > https://issues.apache.org/struts/browse/WW-1526 > > What is still not solved is how to make AJAX work in Websphere 6.1. I have > created issue for this -> https://issues.apache.org/struts/browse/WW-1839 > > Regards, > > - Tapio > > > On Tue, 27 Mar 2007 00:49:50 +0300, alkira <[EMAIL PROTECTED]> wrote: > >> >> >> I am using Struts2 version 2.0.6, but not using JSF. This is happening >> on >> the vanilla version of the Showcase application as well, so nothing >> specific >> to my code. I tried to upgrade to the latest Websphere fixpack but that >> didnt help as well. Let me know if you need any other info. >> >> Thanks, >> >> Alex >> >> >> >> Martin Gainty wrote: >>> >>> Hi Alex- >>> >>> Looks as if you have 2 responses for same Request (GET/POST/PUT/DELETE) >>> so >>> if Servlet responds with a 200 then Servlet cannot send a second one >>> with >>> a 404 >>> Give us a bit on your environment JSF or Struts2 and which version >>> There may be a latency issue here .. tough to say w/o looking at the >>> code >>> >>> M- >>> --- >>> This e-mail message (including attachments, if any) is intended for the >>> use of the individual or entity to which it is addressed and may contain >>> information that is privileged, proprietary , confidential and exempt >>> from >>> disclosure. If you are not the intended recipient, you are notified that >>> any dissemination, distribution or copying of this communication is >>> strictly prohibited. >>> --- >>> Le présent message électronique (y compris les pièces qui y sont >>> annexées, >>> le cas échéant) s'adresse au destinataire indiqué et peut contenir des >>> renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le >>> destinataire de ce document, nous vous signalons qu'il est strictement >>> interdit de le diffuser, de le distribuer ou de le reproduire. >>> - Original Message - >>> From: "alkira" <[EMAIL PROTECTED]> >>> To: >>> Sent: Monday, March 26, 2007 3:16 PM >>> Subject: [S2] Websphere 6.1 Showcase application, Response already >>> committed warning in logs >>> >>> >>>> >>>> Hi, >>>> >>>> I am running Struts2 under Websphere 6.1, and getting a lot of warning >>>> messages in the logs. This is only happening under WebSphere 6.1, but >>>> it >>>> works fine under Tomcat. Also, it's happening both for the Showcase >>>> application, as well as my own applications in Struts2. >>>> >>>> The following is the message (which can occur multiple times for the >>>> same >>>> page): >>>> [3/25/07 15:39:05:343 EDT] 002b SRTServletRes W WARNING: Cannot >>>> set >>>> status. Response already committed. >>>> [3/25/07 15:39:05:343 EDT] 002b SRTServletRes W WARNING: Cannot >>>> set >>>> header. Response already committed. >>>> >>>> Is anyone else seeing this as well? >>>> >>>> Thanks! >>>> >>>> Alex >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/-S2--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-tf3468980.html#a9679630 >>>> Sent from the Struts - User mailing list archive at Nabble.com. >>>> >>>> >>>> - >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>> >>>> >>> >> > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-S2--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-tf3468980.html#a9793011 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs
Hi, I solved this 'response already committed' problem in my application by writing own FilterDispatcher. Here's instructions -> https://issues.apache.org/struts/browse/WW-1526 What is still not solved is how to make AJAX work in Websphere 6.1. I have created issue for this -> https://issues.apache.org/struts/browse/WW-1839 Regards, - Tapio On Tue, 27 Mar 2007 00:49:50 +0300, alkira <[EMAIL PROTECTED]> wrote: I am using Struts2 version 2.0.6, but not using JSF. This is happening on the vanilla version of the Showcase application as well, so nothing specific to my code. I tried to upgrade to the latest Websphere fixpack but that didnt help as well. Let me know if you need any other info. Thanks, Alex Martin Gainty wrote: Hi Alex- Looks as if you have 2 responses for same Request (GET/POST/PUT/DELETE) so if Servlet responds with a 200 then Servlet cannot send a second one with a 404 Give us a bit on your environment JSF or Struts2 and which version There may be a latency issue here .. tough to say w/o looking at the code M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: "alkira" <[EMAIL PROTECTED]> To: Sent: Monday, March 26, 2007 3:16 PM Subject: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs Hi, I am running Struts2 under Websphere 6.1, and getting a lot of warning messages in the logs. This is only happening under WebSphere 6.1, but it works fine under Tomcat. Also, it's happening both for the Showcase application, as well as my own applications in Struts2. The following is the message (which can occur multiple times for the same page): [3/25/07 15:39:05:343 EDT] 0000002b SRTServletRes W WARNING: Cannot set status. Response already committed. [3/25/07 15:39:05:343 EDT] 0000002b SRTServletRes W WARNING: Cannot set header. Response already committed. Is anyone else seeing this as well? Thanks! Alex -- View this message in context: http://www.nabble.com/-S2--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-tf3468980.html#a9679630 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs
I am using Struts2 version 2.0.6, but not using JSF. This is happening on the vanilla version of the Showcase application as well, so nothing specific to my code. I tried to upgrade to the latest Websphere fixpack but that didnt help as well. Let me know if you need any other info. Thanks, Alex Martin Gainty wrote: > > Hi Alex- > > Looks as if you have 2 responses for same Request (GET/POST/PUT/DELETE) so > if Servlet responds with a 200 then Servlet cannot send a second one with > a 404 > Give us a bit on your environment JSF or Struts2 and which version > There may be a latency issue here .. tough to say w/o looking at the code > > M- > --- > This e-mail message (including attachments, if any) is intended for the > use of the individual or entity to which it is addressed and may contain > information that is privileged, proprietary , confidential and exempt from > disclosure. If you are not the intended recipient, you are notified that > any dissemination, distribution or copying of this communication is > strictly prohibited. > --- > Le présent message électronique (y compris les pièces qui y sont annexées, > le cas échéant) s'adresse au destinataire indiqué et peut contenir des > renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le > destinataire de ce document, nous vous signalons qu'il est strictement > interdit de le diffuser, de le distribuer ou de le reproduire. > - Original Message - > From: "alkira" <[EMAIL PROTECTED]> > To: > Sent: Monday, March 26, 2007 3:16 PM > Subject: [S2] Websphere 6.1 Showcase application, Response already > committed warning in logs > > >> >> Hi, >> >> I am running Struts2 under Websphere 6.1, and getting a lot of warning >> messages in the logs. This is only happening under WebSphere 6.1, but it >> works fine under Tomcat. Also, it's happening both for the Showcase >> application, as well as my own applications in Struts2. >> >> The following is the message (which can occur multiple times for the same >> page): >> [3/25/07 15:39:05:343 EDT] 002b SRTServletRes W WARNING: Cannot set >> status. Response already committed. >> [3/25/07 15:39:05:343 EDT] 002b SRTServletRes W WARNING: Cannot set >> header. Response already committed. >> >> Is anyone else seeing this as well? >> >> Thanks! >> >> Alex >> -- >> View this message in context: >> http://www.nabble.com/-S2--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-tf3468980.html#a9679630 >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> ----- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > -- View this message in context: http://www.nabble.com/-S2--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-tf3468980.html#a9682464 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs
Hi Alex- Looks as if you have 2 responses for same Request (GET/POST/PUT/DELETE) so if Servlet responds with a 200 then Servlet cannot send a second one with a 404 Give us a bit on your environment JSF or Struts2 and which version There may be a latency issue here .. tough to say w/o looking at the code M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: "alkira" <[EMAIL PROTECTED]> To: Sent: Monday, March 26, 2007 3:16 PM Subject: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs > > Hi, > > I am running Struts2 under Websphere 6.1, and getting a lot of warning > messages in the logs. This is only happening under WebSphere 6.1, but it > works fine under Tomcat. Also, it's happening both for the Showcase > application, as well as my own applications in Struts2. > > The following is the message (which can occur multiple times for the same > page): > [3/25/07 15:39:05:343 EDT] 002b SRTServletRes W WARNING: Cannot set > status. Response already committed. > [3/25/07 15:39:05:343 EDT] 002b SRTServletRes W WARNING: Cannot set > header. Response already committed. > > Is anyone else seeing this as well? > > Thanks! > > Alex > -- > View this message in context: > http://www.nabble.com/-S2--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-tf3468980.html#a9679630 > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
[S2] Websphere 6.1 Showcase application, Response already committed warning in logs
Hi, I am running Struts2 under Websphere 6.1, and getting a lot of warning messages in the logs. This is only happening under WebSphere 6.1, but it works fine under Tomcat. Also, it's happening both for the Showcase application, as well as my own applications in Struts2. The following is the message (which can occur multiple times for the same page): [3/25/07 15:39:05:343 EDT] 002b SRTServletRes W WARNING: Cannot set status. Response already committed. [3/25/07 15:39:05:343 EDT] 002b SRTServletRes W WARNING: Cannot set header. Response already committed. Is anyone else seeing this as well? Thanks! Alex -- View this message in context: http://www.nabble.com/-S2--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-tf3468980.html#a9679630 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
response already committed
Dears, In my struts application I open another application using Url conection, this application gets a PDF file and write it to my output stream. I tried the application and if I run my client code from JSP ==> it work fine, but if I run it inside Struts Action I get that the response is already committed, although I return null in the action forward. Any help? Thanks
Re: about and "response already committed" exception
Two things come to mind: 1. Try increasing the buffer size on myjsp.jsp. Default is 8kb 2. Make sure that you are not changing the header portion of the response in your included jsp page. [EMAIL PROTECTED] wrote: > Buddies, Can anyone help with my below problem? > > >> From: "Mu Mike" <[EMAIL PROTECTED]> >> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >> To: [EMAIL PROTECTED] >> Subject: about and "response already committed" exception >> Date: Fri, 09 Apr 2004 01:45:22 + >> >> Hi,all >> >> I m using a in my jsp file(myjsp.jsp), the file >> contains also a form, when I submit the form, the action will >> actually foward back to this jsp---the included content in the >> will have been changed thus display new content, the >> fact is , it throws response already committed exception constanly, >> but not always, why? >> >> and what can I do to solve or avoid this problem? somebody suggested >> using but brought much more problems to me(because >> of my specific code), I tried <%@ include file="<%=myvariable %>", >> yet seems that tag doesnt allow jsp variables >> >> Thanks&Regards >> >> _ >> 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > _ > 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: about and "response already committed" exception
Buddies, Can anyone help with my below problem? From: "Mu Mike" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: about and "response already committed" exception Date: Fri, 09 Apr 2004 01:45:22 + Hi,all I m using a in my jsp file(myjsp.jsp), the file contains also a form, when I submit the form, the action will actually foward back to this jsp---the included content in the will have been changed thus display new content, the fact is , it throws response already committed exception constanly, but not always, why? and what can I do to solve or avoid this problem? somebody suggested using but brought much more problems to me(because of my specific code), I tried <%@ include file="<%=myvariable %>", yet seems that tag doesnt allow jsp variables Thanks&Regards _ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
about and "response already committed" exception
Hi,all I m using a in my jsp file(myjsp.jsp), the file contains also a form, when I submit the form, the action will actually foward back to this jsp---the included content in the will have been changed thus display new content, the fact is , it throws response already committed exception constanly, but not always, why? and what can I do to solve or avoid this problem? somebody suggested using but brought much more problems to me(because of my specific code), I tried <%@ include file="<%=myvariable %>", yet seems that tag doesnt allow jsp variables Thanks&Regards _ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: why I got "response already committed" exception
btw, typo for "onclick" ? Regards, Daniel -Original Message- From: Sanoj, Antony (IE10) [mailto:[EMAIL PROTECTED] Sent: Monday, 05 April, 2004 2:28 PM To: Struts Users Mailing List Subject: RE: why I got "response already committed" exception Have you tried using the jsp include directive? This will include the contents of your snapshotHtml page in the body.jsp, before it compiles. -Original Message- From: Mu Mike [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:24 AM To: [EMAIL PROTECTED] Subject: RE: why I got "response already committed" exception I tried, got the same exception >From: "Sanoj, Antony (IE10)" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: Struts Users Mailing List <[EMAIL PROTECTED]> >Subject: RE: why I got "response already committed" exception >Date: Sun, 4 Apr 2004 22:56:39 -0700 > > >Try > > > >This will prevent the buffer from flushing before the target page specified >by page attribute executes. >But this can be done only in containers implementing jsp1.2 spec. > > > > > > >-Original Message- >From: Mu Mike [mailto:[EMAIL PROTECTED] >Sent: Monday, April 05, 2004 10:53 AM >To: [EMAIL PROTECTED] >Subject: why I got "response already committed" exception > >I have a body.jsp jsp page which has a statement like this > > > >there exists also a form in the jsp page > > > >... > > > > >dosub() >{ > myform.target=window.opener.name; > myform.submit(); >} > >now I opened body.jsp in a "" which exists in another jsp page, but >when I submitted the form, there threw the exception "response already >committed" ,why? and how can I solve this problem? > >Thanks&Regards >Mike > >_ >与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > _ 免费下载 MSN Explorer: http://explorer.msn.com/lccn/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: why I got "response already committed" exception
Have you tried using the jsp include directive? This will include the contents of your snapshotHtml page in the body.jsp, before it compiles. -Original Message- From: Mu Mike [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:24 AM To: [EMAIL PROTECTED] Subject: RE: why I got "response already committed" exception I tried, got the same exception >From: "Sanoj, Antony (IE10)" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: Struts Users Mailing List <[EMAIL PROTECTED]> >Subject: RE: why I got "response already committed" exception >Date: Sun, 4 Apr 2004 22:56:39 -0700 > > >Try > > > >This will prevent the buffer from flushing before the target page specified >by page attribute executes. >But this can be done only in containers implementing jsp1.2 spec. > > > > > > >-Original Message- >From: Mu Mike [mailto:[EMAIL PROTECTED] >Sent: Monday, April 05, 2004 10:53 AM >To: [EMAIL PROTECTED] >Subject: why I got "response already committed" exception > >I have a body.jsp jsp page which has a statement like this > > > >there exists also a form in the jsp page > > > >... > > > > >dosub() >{ > myform.target=window.opener.name; > myform.submit(); >} > >now I opened body.jsp in a "" which exists in another jsp page, but >when I submitted the form, there threw the exception "response already >committed" ,why? and how can I solve this problem? > >Thanks&Regards >Mike > >_ >与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > _ 免费下载 MSN Explorer: http://explorer.msn.com/lccn/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: why I got "response already committed" exception
I tried, got the same exception From: "Sanoj, Antony (IE10)" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: RE: why I got "response already committed" exception Date: Sun, 4 Apr 2004 22:56:39 -0700 Try This will prevent the buffer from flushing before the target page specified by page attribute executes. But this can be done only in containers implementing jsp1.2 spec. -Original Message- From: Mu Mike [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 10:53 AM To: [EMAIL PROTECTED] Subject: why I got "response already committed" exception I have a body.jsp jsp page which has a statement like this there exists also a form in the jsp page ... dosub() { myform.target=window.opener.name; myform.submit(); } now I opened body.jsp in a "" which exists in another jsp page, but when I submitted the form, there threw the exception "response already committed" ,why? and how can I solve this problem? Thanks&Regards Mike _ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ 免费下载 MSN Explorer: http://explorer.msn.com/lccn/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: why I got "response already committed" exception
Try This will prevent the buffer from flushing before the target page specified by page attribute executes. But this can be done only in containers implementing jsp1.2 spec. -Original Message- From: Mu Mike [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 10:53 AM To: [EMAIL PROTECTED] Subject: why I got "response already committed" exception I have a body.jsp jsp page which has a statement like this there exists also a form in the jsp page ... dosub() { myform.target=window.opener.name; myform.submit(); } now I opened body.jsp in a "" which exists in another jsp page, but when I submitted the form, there threw the exception "response already committed" ,why? and how can I solve this problem? Thanks&Regards Mike _ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
why I got "response already committed" exception
I have a body.jsp jsp page which has a statement like this there exists also a form in the jsp page ... dosub() { myform.target=window.opener.name; myform.submit(); } now I opened body.jsp in a "" which exists in another jsp page, but when I submitted the form, there threw the exception "response already committed" ,why? and how can I solve this problem? Thanks&Regards Mike _ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]