« A picture is worth a 1000 words. | Main | Fix for incorrect jsf inputCalendar position in tomahawk »

IllegalStateException in MyFaces Extension Filter

I've been receiving this error from myfaces tomahawk 1.1.3  with weblogic 8.1 sp5
java.lang.IllegalStateException: getOutputStream() has already been called for this response
from the myfaces extension filter...

<filter-mapping>
 <filter-name>MyFacesExtensionsFilter</filter-name>
 <url-pattern>*</url-pattern>
</filter-mapping>


I fixed it by changing my mapping to the following:
<filter-mapping>
 <filter-name>MyFacesExtensionsFilter</filter-name>
 <url-pattern>*.jsf</url-pattern>
</filter-mapping>

<filter-mapping>
 <filter-name>MyFacesExtensionsFilter</filter-name>
 <url-pattern>/faces/*</url-pattern>
</filter-mapping>

But to verify, I changed it back to:
<filter-mapping>
 <filter-name>MyFacesExtensionsFilter</filter-name>
 <url-pattern>*</url-pattern>
</filter-mapping>

And added an index.jsp that forwarded to my home.jsf page and now it works fine....


Hosting by Yahoo!

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)