Stuck again :(
We have UIResourceServlet which extends
com.sun.jersey.spi.container.servlet.ServletContainer
and my web.xml is
<servlet>
<servlet-name>MyProjWebApplication</servlet-name>
<servlet-class>com.myproj.servlet.UiResourceServlet</servlet-class>
<init-param>
<param-name>com.sun.jersey.config.feature.Redirect</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>com.sun.jersey.config.property.JSPTemplatesBasePath</param-name>
<param-value>/jsps/</param-value>
</init-param>
<init-param>
<param-name>com.sun.jersey.config.property.WebPageContentRegex</param-name>
<param-value>/(images|css|jsp)/.*</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>MyProjWebApplication</servlet-name>
<url-pattern>/myproj/*</url-pattern>
</servlet-mapping>
and my resource class is
@Component
@Path ("/myproj")
public class AdminUiResource extends AbstractResource {
private static final Logger LOG =
LoggerFactory.getLogger(AdminUiResource.class);
@GET
@Path("/signup")
@Produces("text/html")
public Viewable getSignUp() {
return new Viewable("/public/signup");
}
SEVERE: service exception:
java.io.IOException: The template name, /public/signup, could not be
resolved to a fully qualified template name
at
com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.writeTo(ViewableMessageBodyWriter.java:79)
at
com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.writeTo(ViewableMessageBodyWriter.java:62)
at
com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:299)
at
com.sun.jersey.spi.container.AdaptingContainerResponse.write(AdaptingContainerResponse.java:80)
at
com.myproj.web.jersey.WebApplicationWrapper$ContainerResponseWrapper.write(WebApplicationWrapper.java:303)
at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1326)
at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1239)
at
com.myproj.web.jersey.WebApplicationWrapper.handleRequest(WebApplicationWrapper.java:266)
at
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:420)
at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:497)
at com.myproj.servlet.UiResourceServlet.service(UiResourceServlet.java:75)
at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:684)
at com.myproj.servlet.UiResourceServlet.service(UiResourceServlet.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
com.sun.grizzly.http.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:195)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
Thanks
Chandra
--
View this message in context: http://jersey.576304.n2.nabble.com/Forward-to-Servlet-tp5351731p5835274.html
Sent from the Jersey mailing list archive at Nabble.com.