users@jersey.java.net

Re: [Jersey] Jersey and Sitemesh

From: James Strachan <james.strachan_at_gmail.com>
Date: Fri, 30 Jul 2010 08:02:11 +0100

2010/7/30 Alexandru Popescu ☀ <the.mindstorm.mailinglist_at_gmail.com>:
> Hi,
>
> Is there anything special I need to know before trying to use Sitemesh
> with Jersey? I googled this before asking it here and the only thing
> I've found was a post about some "java.lang.IllegalStateException:
> Cannot forward after response has been committed" with no clear
> solution.

the thing to be careful of is you might hit this issue...
https://jersey.dev.java.net/issues/show_bug.cgi?id=485

you often have to configure Jersey with the WebPageContentRegex
setting to specify the regex of what URIs you don't want Jersey to
render (like JSP, JavaScript, images and so forth) - unless you're
JAXRS beans are all within a simple path (like "/app" or something) so
you don't have to map Jersey filter to "/*"

-- 
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://fusesource.com/