Howdy,
If it's a tomcat bug, it's a very peculiar one. You need to walk
through the code in your JSP and make sure you're not calling
getWriter() twice on the response.
Yoav Shapira
Millennium ChemInformatics
>-----Original Message-----
>From: Seth Ladd [mailto:seth@(protected)]
>Sent: Monday, December 15, 2003 1:30 PM
>To: tomcat-user@(protected)
>Subject: [Fwd: Re: [Opensymphony-sitemesh] Problems with SM 2.0.1
Example
>and Tomcat 5.0.16]
>
>Hello,
>
>I'm sorry for the forward, but Scott from Sitemesh thought that a
>problem I was experiencing was a Tomcat bug.
>
>Below is a stacktrace I'm experiencing when running the sitemesh
example
>webapp in Tomcat 5.0.16 (SuSE 9, JDK 1.4.2). Scott thinks it's a
Tomcat
>5 bug.
>
>Would the stacktrace appear to be a problem with the sitemesh example
>webapp or with Tomcat?
>
>Thanks very much for your help,
>Seth
>
>
>
>-------- Original Message --------
>Subject: Re: [Opensymphony-sitemesh] Problems with SM 2.0.1 Example and
>Tomcat 5.0.16
>Date: Mon, 15 Dec 2003 15:38:59 +1100
>From: Scott Farquhar <scott@(protected)>
>To: Seth Ladd <seth@(protected)>
>CC: opensymphony-sitemesh@(protected)
>References: <3FDA170A.70806@(protected)>
>
>Seth,
>
>I believe that Sitemesh runs fine under Tomcat 4, but it hasn't been
>tested yet on Tomcat 5.
>
> From the stack trace, it looks like a Tomcat 5 bug - you should always
>be able to get a writer from a JSP?
>
>Can you try the test suite and see if it works for you?
>
>Cheers,
>Scott
>
>Seth Ladd wrote:
>
>> Hello,
>>
>> I am just experimenting with SiteMesh, and ran into some problems. I
>> have deployed the sitemesh-example.war from the 2.0.1 release to
Tomcat
>> 5.0.16.
>>
>> The first problem I have is that the web.xml contains some invalid
>configs.
>>
>> The <url-pattern>*</url-pattern> should be
>> <url-pattern>/*</url-pattern>. Once I changed this, the war was able
to
>> deploy.
>>
>> Then, when I try to access the example webapp, I receive this error:
>>
>>
java.lang.IllegalStateException: getOutputStream() has already been
>> called for this response
>>
>
org.apache.coyote.tomcat5.CoyoteResponse.getWriter (
CoyoteResponse.java:
611)
>>
>>
>
org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponse
Faca
>de.java:190)
>>
>>
>
javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.j
ava:
>156)
>>
>>
>
org.apache.jasper.runtime.JspWriterImpl.initOut (
JspWriterImpl.java:167)
>>
>
org.apache.jasper.runtime.JspWriterImpl.flushBuffer (
JspWriterImpl.java:
160)
>>
>>
org.apache.jasper.runtime.JspWriterImpl.flush (
JspWriterImpl.java:214)
>>
>
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.j
ava:
>990)
>>
>>
>
org.apache.jasper.runtime.PageContextImpl.include (
PageContextImpl.java:
626)
>>
>>
>
com.opensymphony.module.sitemesh.taglib.page.ApplyDecoratorTag.doEndTag(App
>lyDecoratorTag.java:254)
>>
>>
>org.apache.jsp.decorators.main_jsp._jspx_meth_page_applyDecorator_0(mai
n_js
>p.java:171)
>>
>> org.apache.jsp.decorators.main_jsp._jspService(main_jsp.java:80)
>>
org.apache.jasper.runtime.HttpJspBase.service (
HttpJspBase.java:133)
>>
javax.servlet.http.HttpServlet.service (
HttpServlet.java:856)
>>
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava:
>311)
>>
>>
>
org.apache.jasper.servlet.JspServlet.serviceJspFile (
JspServlet.java:301
)
>>
>>
org.apache.jasper.servlet.JspServlet.service (
JspServlet.java:248)
>>
javax.servlet.http.HttpServlet.service (
HttpServlet.java:856)
>>
>
com.opensymphony.module.sitemesh.filter.PageFilter.applyDecorator(PageF
ilte
>r.java:169)
>>
>>
>
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.
java
>:68)
>>
>>
>>
>> I'm not sure how to fix this one. Any ideas or tips?
>>
>> Thanks very much!
>> Seth
>>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)
This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)