You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Thomas Vaught <th...@yahoo.com> on 2005/11/14 22:14:01 UTC

ExtensionsFilter and strict servlet API

I am trying to use MyFaces with Spring under WebLogic
9.0 and am getting an error that I do not know how to
resolve. It seems that the MyFaces or another servlet
has already gotten a writer for the response and the
extensions filter is trying to get an output stream.
>From the BEA site, they state that that is not
supported in the Servlet specification. Is there any
way around this through configuration or is it a code
change for MyFaces?

The stacktrace is below.

'> <<WLS Kernel>> <> <> <1132002129055> <BEA-101020>
<[weblogic.servlet.internal.WebAppServletContext@1a29afb
- name: 'int', context-path: '/int'] Servlet failed
with Exception
java.lang.IllegalStateException: strict servlet API:
cannot call getOutputStream() after getWriter()
        at
weblogic.servlet.internal.ServletResponseImpl.getOutputStream(ServletResponseImpl.java:253)
        at
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:127)
        at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
        at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3020)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1925)
        at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1848)
        at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1288)
        at
weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
        at
weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
>


Thanks.

-thom


	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com