dev@grizzly.java.net

need help to continue on http-deployer : problem with servlet mapping in GWS

From: Survivant 00 <survivant00_at_gmail.com>
Date: Mon, 13 Apr 2009 11:17:52 -0400

I have 2 servlets.

#1 it,s a helloworld servlet.. and I it to be called when the mapping is *.x
#2 - I want a second servlet that is called on *.jsp

#1
deploy:sa context=/

sa servletPath=/

alias=/*.x

sa rootFolder=C:/Source/grizzly/modules/http-servlet-deployer/war2/

#2
sa context=/

sa servletPath=/

sa alias=/*.jsp

sa rootFolder=C:/Source/grizzly/modules/http-servlet-deployer/war2/


when I enter anything in the URL.. the first one is always called.

ex :

http://localhost:8080/index/ccc

[http8080-WorkerThread(3)] Mon Apr 13 11:15:04 EDT 2009 [FIN]
com.sun.grizzly.tcp.StaticResourcesAdapter service:File not found
.\index\ccc

[http8080-WorkerThread(3)] Mon Apr 13 11:15:04 EDT 2009 [FIN]
com.sun.grizzly.tcp.StaticResourcesAdapter service:File not found
C:\Source\grizzly\modules\http-servlet-deployer\war2\index\ccc

the OUTPUT result :

Hello, world!



here the code

if (logger.isLoggable(Level.FINEST)) {
                logger.log(Level.FINEST, "sa context=" + sa.getContextPath());
                logger.log(Level.FINEST, "sa servletPath=" +
sa.getServletPath());
                logger.log(Level.FINEST, "sa alias=" + alias);
                logger.log(Level.FINEST, "sa rootFolder=" + sa.getRootFolder());
            }

 ws.addGrizzlyAdapter(sa, new String[]{alias});