Just for fun, I tested this with the snoop.jsp file included in the examples by adding:
<jsp:include page="./testTxt.sum" flush="true" /> I then created a one-line testTxt.sum file in the same directory with the following contents: Successfully included testTxt.sum! You're right! It doesn't work. I get the same exception in my logs. I then tried several different extensions and found that the only ones that seem to work are .jsp, .html, and .txt. This is a bug. For the time being, can you copy your *.sum files to *.txt in your JSP prior to the jsp:include directive. It's a hack, but it should work until this is resolved. --jeff ----- Original Message ----- From: "Kusel, Jonathan J" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 07, 2001 2:22 AM Subject: Unable to include *.sum files (Again) > > Hi all, > I've mailed the follwoing to the tomcat users group but nobody has responded > yet so I took the liberty of posting it again. > > Here's the message: > --------------------------------> > > I'm trying to include normal text files with ".sum" extensions using the > jsp:include directive: > '<jsp:include page="testTxt.sum" flush="true" />' > but tomcat throws an exception(see bottom for the exception). When I change > the file's extension to .txt for example it works, but the files that I > wan't to include are generated by another program on a daily basis so > changing the extension is not an option. > > When I use the '<%@include file="testTxt.sum" %>' directive it works, but I > need to use the <jsp:include> since the filenames are dynamically generated. > > Is this a bug or am I doing something wrong? I'm using tomcat4.0 for NT 4.0. > > THE STACKTRACE: > ---------------- > > ApplicationDispatcher[/interestrates]: Servlet.service() for servlet default > threw exception > java.lang.IllegalStateException > at > org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(Serv > letResponseWrapperInclude.java:109) > at > org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav > a:1143) > at > org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. > java:679) > at > org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch > er.java:570) > at > org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher > .java:493) > at > org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8 > 18) > at org.apache.jsp.test$jsp._jspService(test$jsp.java:67) > 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:202) > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > FilterChain.java:247) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > ain.java:193) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > va:243) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 > 66) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > va:201) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 > 66) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > at > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 > ) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 > 66) > at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. > java:170) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 > 64) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 > ) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 > 64) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java > :163) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 > 66) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371) > at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424) > at java.lang.Thread.run(Thread.java:484) > StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception > java.lang.IllegalStateException > java.lang.IllegalStateException > at > org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(Serv > letResponseWrapperInclude.java:109) > at > org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav > a:1143) > at > org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. > java:679) > at > org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch > er.java:570) > at > org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher > .java:493) > at > org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8 > 18) > at org.apache.jsp.test$jsp._jspService(test$jsp.java:67) > 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:202) > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > FilterChain.java:247) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > ain.java:193) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > va:243) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 > 66) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > va:201) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 > 66) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > at > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 > ) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 > 66) > at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. > java:170) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 > 64) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 > ) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 > 64) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java > :163) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 > 66) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371) > at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424) > at java.lang.Thread.run(Thread.java:484) > > Regards, > Jonathan K�sel > SCMB - Treasury IT > mailto:[EMAIL PROTECTED] > (011) 636 1160 > > > > > > > Disclaimer and Confidentiality Note. > > Everything in this e-mail and attachments relating to the > official business of Standard Bank Investment Corporation(Stanbic) > is proprietary to the company. It is confidential, legally privileged > and protected by law. Stanbic does not own and endorse > any other content. Views and opinions are those of the > sender unless clearly stated as being that of Stanbic. > > The person addressed in the e-mail is the sole authorised recipient. > Please notify the sender immediately if it has unintentionally reached > you and do not read, disclose or use the content in any way. > > Stanbic can not assure that the integrity of this communication has been > maintained nor that it is free of errors, virus, interception or interference. > > > > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
