For anyone who gets a similar error to that which i have described below, i have found the solution, but not the answer :-( but i am digging.
The solution is to down-grade to jakarta-tomcat-4.0 and everything works as sweet as can be :-) jakarta-tomcat-4.03b3 does not work, but i'll cycle through all the versions till i find the 2 closest working and not working then will do a diff in the source, and see if any changes could have caused the difference? > -----Original Message----- > From: Bronwen Cassidy [mailto:[EMAIL PROTECTED]] > Sent: 23 July 2002 09:46 > To: 'Tomcat Users List' > Subject: RE: help please with error-page? > > > Some strange things seem to be happening, and i would be > gratefull for any > pointers. I am using Tomcat standalone version 4.0.4 on > windows2K and also > the same running on solaris 8. I am using web-app_2_3.dtd, i > have one filter > (an XSLTFilter), the app uses struts and everything works as it should > except for the <welcome-file-list>, the <error-page> tags, > and if any errors > occur. > > The jsp's are xml-jsps which then are transformed using the > xsltfilter. > > After starting tomcat i navigate to > http://localhost:8080/myapp/ and expect > to see the login.jsp which is not in the top level but under > myapp/jsps, i > have tried in my <welcome-file-list><welcome-file> variations of > jsps/login.jsp, /jsps/login.jsp, myapp/jsps/login.jsp, > /myapp/jsps/login.jsp, and out of desperation > http://localhost:8080/myapp/jsps/login.jsp > > The results of the above attempts are > 1) the file listing of the myapp directory > 2)this exception: > > ApplicationDispatcher[/csrtool] Servlet.service() for servlet > jsp threw > exception > java.lang.IllegalStateException: getOutputStream() has > already been called > for this response > at > org.apache.catalina.connector.ResponseBase.getWriter(ResponseB > ase.java:750) > at > org.apache.catalina.connector.ResponseFacade.getWriter(Respons > eFacade.java:1 > 65) > at > org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl. > java:166) > at > org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterI > mpl.java:158) > at > org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:205) > at > org.apache.jasper.runtime.PageContextImpl.release(PageContextI > mpl.java:177) > at > org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageCo > ntext(JspFacto > ryImpl.java:198) > at > org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(Js > pFactoryImpl.j > ava:193) > at org.apache.jsp.ioerror$jsp._jspService(ioerror$jsp.java:91) > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service > (JspServlet.ja > va:201) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet > .java:381) > at > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat > ionDispatcher. > java:683) > at > org.apache.catalina.core.ApplicationDispatcher.doForward(Appli > cationDispatch > er.java:431) > at > org.apache.catalina.core.ApplicationDispatcher.forward(Applica > tionDispatcher > .java:355) > at > org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDi > spatcherValve. > java:391) > at > org.apache.catalina.valves.ErrorDispatcherValve.throwable(Erro > rDispatcherVal > ve.java:250) > at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi > spatcherValve. > java:178) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP > ipeline.java:5 > 64) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport > Valve.java:170 > ) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP > ipeline.java:5 > 64) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv > e.java:468) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP > ipeline.java:5 > 64) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > ine.java:472) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn > gineValve.java > :174) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP > ipeline.java:5 > 66) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel > ine.java:472) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > at > org.apache.catalina.connector.http.HttpProcessor.process(HttpP > rocessor.java: > 1027) > at > org.apache.catalina.connector.http.HttpProcessor.run(HttpProce > ssor.java:1125 > ) > at java.lang.Thread.run(Thread.java:484) > > I get the same errors for the <error-page> link??? and feel > the problem is > the same. I have a slave driver tester who insists on copy > and pasting urls > which will cause nullPointerExceptions, though i have the <%@ page > language="java" errorPage="../error.jsp"%> and have > > <error-page> > <error-code>500</error-code> > <location>/jsps/error500.jsp</location> > </error-page> > > <error-page> > <exception-type>java.io.IOException</exception-type> > <location>/jsps/ioerror.jsp</location> > </error-page> > > <error-page> > <exception-type>java.lang.NullPointerException</exception-type> > <location>/jsps/nullerror.jsp</location> > </error-page> > > defined in web.xml i always get the Apache Tomcat/4.0.4 - > HTTP Status 500 - > Internal Server Error page with the above exception in the logs and > java.io.IOException: The stream has been closed > at > org.apache.catalina.connector.ResponseStream.flush(ResponseStr > eam.java:237) > on the tomcat error page > > instead of one of the error pages i have defined, either the > error.jsp or > the ones defined in the web.xml?? > I have tried try/catch around anything obtained from the > session, with 1)a > <jsp:forward> in the catch, and then just a sys.out in the catch - the > sys.out is never reached?? > > Any pointers at all would be really appreciated thank-you in advance. > > Regards > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>