dev@grizzly.java.net

Re: follow up on https://grizzly.dev.java.net/issues/show_bug.cgi?id=677

From: Survivant 00 <survivant00_at_gmail.com>
Date: Tue, 7 Jul 2009 13:16:56 -0400

oh ya baby.

I had to change a line

servletCtx.setBasePath(getRootFolder() + File.separatorChar + contextPath);

because on Windows I got : c:\\temp\\demo/wordpress and it didn't work

now it's working for PHP, JSP, Hudson ....





2009/7/7 Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com>

> Salut,
>
> can you patch your Grizzly with:
>
> Index: src/main/java/com/sun/grizzly/http/servlet/ServletAdapter.java
>> ===================================================================
>> --- src/main/java/com/sun/grizzly/http/servlet/ServletAdapter.java
>> (revision 3408)
>> +++ src/main/java/com/sun/grizzly/http/servlet/ServletAdapter.java
>> (working copy)
>> @@ -435,7 +435,7 @@
>> if (initialize) {
>> servletCtx.setInitParameter(contextParameters);
>> servletCtx.setContextPath(contextPath); -
>> servletCtx.setBasePath(getRootFolder()); +
>> servletCtx.setBasePath(getRootFolder() + File.separator + contextPath);
>> configureProperties(servletCtx);
>> servletCtx.initListeners(listeners);
>> }
>>
>
> to see if that helps?
>
> A+
>
> -- Jeanfrancois
>
>
>
>
> Survivant 00 wrote:
>
>> thanks Hubert for your time :)
>>
>>
>> look like Hubert didn't find any weird problem in the code, so we are back
>> to the issue.
>>
>> The problem is known.. it's that getRealPath() must return
>> (rootFolder+context)
>>
>> but for JSP and servlet to work, we need to setRootFolder(rootfolder).
>>
>> is it a bug that just been found (that could break API ? )
>>
>>
>> I would like that we talk about this one to close it asap.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>
>