6.1 SP5: response.sendRedirect crashes
Hi all,
I am porting a JSP app from Iplanet 4.1 to SunONE 6.1 SP5 (Solaris 5.9).
When I try to do the above statement in a JSP, I get the following in the error log:
[14/Jun/2007:16:05:05] failure ( 3812): for host 172.16.10.184 trying to POST /jspcontent/ozbet.jsp;jsessionid=43DBC3EA6343C4B0E3BF6AD26B943D25, service-j2ee reports: StandardWrapperValve[jsp]: WEB2792: Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException
at org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFacad e.java:179)
at _jsps._jspcontent._ozbet_jsp._jspService(_ozbet_jsp.java:109)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:68 7)
at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:459)
at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:375)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrap perValve.java:771)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 322)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java: 161)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)
I am not sure what I need to declare differently in 6.1. The web app jars are in WEB-INF/lib under the docroot.
The code in the JSP is pretty standard, but ran under Iplanet 4.1.
try {
String URL = "https://www.ozbet.com.au/tab/ozbet.htm?p_date=" //has parameters;
response.sendRedirect(URL);
}
catch (ApplicationException e) {
//do some stuff here
%>
<b>ERROR:</b> <%= msg %>"
<%
}
FYI the webapp is working fine wrt to jdbc, jsp etc. It is just the sendRedirect() that is crashing.
Do I need to declare anything related to NSAPI in obj.conf ?
Please help and thanks in advance.
Richard
Message was edited by:
r_defonseka
Message was edited by:
r_defonseka

