users@jersey.java.net

Viewable is not able to resolve pre-compiled jsp path in jersey 1.1.5

From: Mahesh Venkat <mhvenkat_at_gmail.com>
Date: Tue, 9 Mar 2010 07:07:00 -0800

Hi,

I have two identical JBoss 4.2.0 environments with Jersey 1.1.5 In one of
them I use jsp as is, while in anther environment I have pre-compiled jsp.
The Viewable interface is unable to resolve the pre-compiled jsp.
My jsp path is /foo/bar.jsp

I have the following in web.xml:
            <init-param>

<param-name>com.sun.jersey.config.property.JSPTemplatesBasePath</param-name>
                <param-value>/foo</param-value>
            </init-param>
            <init-param>

<param-name>com.sun.jersey.config.feature.NormalizeURI</param-name>
                <param-value>true</param-value>
            </init-param>
            <init-param>

<param-name>com.sun.jersey.config.feature.CanonicalizeURIPath</param-name>
                <param-value>true</param-value>
            </init-param>
            <!-- init-param>

<param-name>com.sun.jersey.config.property.WebPageContentRegex</param-name>
                <param-value>/(images|js|styles|(oauth/))/.*</param-value>
            </init-param -->

In the code .. I have the following :

..

                String retour = "/bar.jsp";
                return new Viewable(retour, this);

-- 
Regards
--Mahesh