dev@grizzly.java.net

Question/Asnwer : why GrizzyAdapterChain rootFolder is not the same as ServletAdapter?

From: Survivant 00 <survivant00_at_gmail.com>
Date: Sat, 4 Apr 2009 22:03:31 -0400

One question. I'm doing this using GrizzlyWebServer

I have a war that have 2 servlets.

I set the rootFolder for theses 2 servletAdapter

and

sa.setHandleStaticResources(true);

but when I trace the code..the GrizzlyChainAdapter is "."

should I set the rootfolder for this one too ?

I try that SelectorThread.setWebAppRootPath(rootFolder); but didn't work
too. (and by the way.. when should I use this line ? )


I trace into the code I found that GWS.updateGrizzlyAdapters() update the
rootfolder for GrizzlyChainAdapter..

but the variable : webResourcesPath is set from the GWS constructor....


if we add a method : setWebResourcesPath(String rootFolder)


will it fix my problem ?