users@grizzly.java.net

Grizzly 1.9.6 puzzler

From: Richard Corsale <igf1_at_yahoo.com>
Date: Mon, 23 Feb 2009 13:44:37 -0800 (PST)

Ok when I include the 1.9.5 in my classpath, everything works fine. I upgraded to 1.9.6 and now It wont run a servlet that has been registered. I think the problem is centered around the
RootFolder is this a known issue?

--Richard





----- Original Message ----
From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
To: users_at_grizzly.dev.java.net
Sent: Monday, February 23, 2009 10:30:07 AM
Subject: Re: grizzly request return NULL for request.getPathInfo(); and request.getServletPath();

Salut,

looks like a bug. Can you file an issue with the war (not just the Servlet, I'm lazy :-)).

Thanks!!!!

-- Jeanfrancois

Survivant 00 wrote:
> When I enter this URL : http://localhost:8080/index.ftl
>
> httprequest return "" for request.getPathInfo(); and request.getServletPath();
>
> is it normal ?
>
> and I try to move the servlet into a war and change the path to http://localhost:8080/test2/index.ftl it still return NULL.
>
> if I put the same war into jetty, it works.
>
> here my testcase
>
> public static void main(String[] args) {
> GrizzlyWebServerDeployer gws = new GrizzlyWebServerDeployer();
>
> try {
> //args = new String[]{"-a","./web.xml"};
> args = new String[]{"-a","C:/jetty-7.0.0.pre5/webapps/test2"};
> // ready to launch
> gws.init(args);
> gws.launch();
> } catch (Exception e){
> e.printStackTrace();
> }
> }
>
> when web.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
> version="2.4">
> <display-name>FreeMarker</display-name>
> <description>FreeMarker on Grizzly demo</description>
> <servlet>
> <servlet-name>freemarker</servlet-name>
> <servlet-class>freemarker.ext.servlet.FreemarkerServlet</servlet-class>
> <!-- FreemarkerServlet settings: -->
> <init-param>
> <param-name>TemplatePath</param-name>
> <param-value>/</param-value>
> </init-param>
> <init-param>
> <param-name>NoCache</param-name>
> <param-value>true</param-value>
> </init-param>
> <init-param>
> <param-name>Debug</param-name>
> <param-value>true</param-value>
> </init-param>
> <init-param>
> <param-name>ContentType</param-name>
> <param-value>text/html</param-value>
> </init-param>
> <!-- FreeMarker settings: -->
> <init-param>
> <param-name>template_update_delay</param-name>
> <param-value>0</param-value> <!-- 0 is for development only! Use higher value otherwise. -->
> </init-param>
> <init-param>
> <param-name>default_encoding</param-name>
> <param-value>ISO-8859-1</param-value>
> </init-param>
> <init-param>
> <param-name>number_format</param-name>
> <param-value>0.##########</param-value>
> </init-param>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>freemarker</servlet-name>
> <url-pattern>index.ftl</url-pattern>
> </servlet-mapping>
>
> </web-app>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
For additional commands, e-mail: users-help_at_grizzly.dev.java.net