dev@grizzly.java.net

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

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 07 Jul 2009 10:44:36 -0400

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.