done.. bug :
https://grizzly.dev.java.net/issues/show_bug.cgi?id=457
you will have to launch the war with the war-servlet launcher.
2009/2/23 Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com>
> 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
>
>