Re: Issues with tomcat (perhaps SIM-82)

Joseph Ottinger <[email protected]>
Newsgroups gmane.comp.web.sitemesh.general
Message-ID <[email protected]>
Mr. Payne, there's are fairly simple solutions to the problem:

1) Don't use static content in your decorators
2) Process static content as if it were dynamic content (i.e., route .html
through the JSP processor).

Neither solution is very satisfactory to me. They do work, however.

There is an effort underway to refactor how the sitemesh filters work to
attempt to address this. It's not an insignificant process, however, so
it's very difficult to say "it will be ready by THIS DATE."

On Fri, 12 Mar 2004, Matthew Payne wrote:

> I am a fan of the product.
>
> However its tough to go out on a limb, and recommend sitemesh,
> when the example application provided does not work on tomcat?
>
> The same error occurs with both 2.0.1 and 2.0.2 in cvs.
> launching http://localhost:8080/sitemesh-example/ yields
> 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(CoyoteResponseFacad
> e.java:210)
>
>
> javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:1
> 56)
>
>
> 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.java:9
> 90)
>
>
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:626)
>
>
> com.opensymphony.module.sitemesh.taglib.page.ApplyDecoratorTag.doEndTag(Appl
> yDecoratorTag.java:256)
>
>
> org.apache.jsp.decorators.main_jsp._jspx_meth_page_applyDecorator_0(main_jsp
> .java:218)
>
> 	org.apache.jsp.decorators.main_jsp._jspService(main_jsp.java:93)
>
> 	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
>
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 11)
>
>
> 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(PageFilter
> .java:169)
>
>
> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:
> 68)
> Is this any closer to be resolved?  Is there a branch that has this
> resolved?  Need any help testing?
>
> Matthew Payne
>
>

-----------------------------------------------------------------------
Joseph B. Ottinger                             http://enigmastation.com
IT Consultant                                    [email protected]
Editor-in-Chief - Java Developer's Journal   [email protected]



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.