dev@grizzly.java.net

Re: ServletAdapter alias not working ?

From: Survivant 00 <survivant00_at_gmail.com>
Date: Wed, 17 Jun 2009 10:02:59 -0400

oh ya.

In my test, I wasn't able to get JSP and twitter working using SA for Jasper
and Twitter.. so I added a default SA for "/"

that's all I have to say for now :)



2009/6/17 Survivant 00 <survivant00_at_gmail.com>

> oups.. forgot
>
>
> try with theses 2 links
>
> http://localhost:8080/grizzly-twitter/index.html
> http://localhost:8080/grizzly-twitter/index.jsp
>
>
>
>
> 2009/6/17 Survivant 00 <survivant00_at_gmail.com>
>
> I have a nice demo here that show the problem.
>>
>> I didn't had time to put that on a standalone test, so I had to put a
>> breakpoint to stop the test (maybe a Thread.sleep(5555555) will do the
>> job).. and checked the result on a browser.
>>
>> here the demo
>>
>> I have 3 tests
>>
>> testJSP_Jasper (will compiled JSP fine... that tests is in http-servlet
>> module)
>> testJSP_TwitterOK (grizzly-twitter will works.. ok there is a comet
>> error.. but the page web show fine) and Jasper not activated
>> testJSP_JasperTwitter(twitter +jsp ..) doesn't work. the twitter page is
>> fine, but not the JSP. (it got stock)
>>
>> here the logs from Jasper in the 3th test
>>
>> [http8080-WorkerThread(0)] Wed Jun 17 09:42:06 EDT 2009 [FIN]
>> org.apache.jasper.servlet.JspServlet service:JspEngine --> /index.jsp
>>
>> [http8080-WorkerThread(0)] Wed Jun 17 09:42:06 EDT 2009 [FIN]
>> org.apache.jasper.servlet.JspServlet service: ServletPath:
>>
>> [http8080-WorkerThread(0)] Wed Jun 17 09:42:06 EDT 2009 [FIN]
>> org.apache.jasper.servlet.JspServlet service: PathInfo:
>> /index.jsp
>>
>> [http8080-WorkerThread(0)] Wed Jun 17 09:42:06 EDT 2009 [FIN]
>> org.apache.jasper.servlet.JspServlet service: RealPath:
>> C:\Temp\demo\grizzly-twitter\index.jsp
>>
>> [http8080-WorkerThread(0)] Wed Jun 17 09:42:06 EDT 2009 [FIN]
>> org.apache.jasper.servlet.JspServlet service: RequestURI:
>> /grizzly-twitter/index.jsp
>>
>> [http8080-WorkerThread(0)] Wed Jun 17 09:42:06 EDT 2009 [FIN]
>> org.apache.jasper.servlet.JspServlet service: QueryString: null
>>
>> [http8080-WorkerThread(0)] Wed Jun 17 09:42:06 EDT 2009 [FIN]
>> org.apache.jasper.servlet.JspServlet service: Request Params:
>>
>> [http8080-WorkerThread(0)] Wed Jun 17 09:42:06 EDT 2009 [LE PLUS FIN]
>> com.sun.grizzly.http.SocketChannelOutputBuffer flushChannel:flushChannel
>> isAsyncHttpWriteEnabled=false bb=java.nio.HeapByteBuffer[pos=0 lim=137
>> cap=131072]
>>
>>
>>
>>
>> JF.. I try to put it to "" and didn't work. I try so maby combinaisons
>> yesterday, that maybe I missed one.
>>
>>
>> I to run the test.. simple.. put the source file into http-servlet
>> module.. override the class already there.. but put the lib into the
>> classpath. the grizzly-twitter folder should be moved to the same place as
>> in the testcase (I put it in c:\temp\demo\...)
>>
>>
>>
>>
>>
>> 2009/6/17 Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com>
>>
>> Salut,
>>>
>>> Survivant 00 wrote:
>>>
>>>> Why this ServletAdapter is called when I asked :
>>>> http://localhost:8080/grizzly-twitter/index.html
>>>>
>>>> I forced the SA for Jasper to
>>>> sa.setHandleStaticResources(false);
>>>>
>>>> [main] Tue Jun 16 21:41:33 EDT 2009 [LE PLUS FIN]
>>>> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy:sa
>>>> context=/grizzly-twitter
>>>>
>>>> [main] Tue Jun 16 21:41:33 EDT 2009 [LE PLUS FIN]
>>>> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy:sa
>>>> servletPath=/
>>>>
>>>
>>> Can you set the servlet path to "" instead and see if that help?
>>>
>>> A+
>>>
>>> - Jeanfrancois
>>>
>>>
>>>
>>>> [main] Tue Jun 16 21:41:33 EDT 2009 [LE PLUS FIN]
>>>> com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy:sa
>>>> alias=[/grizzly-twitter/*.jsp]
>>>>
>>>> ...
>>>>
>>>> [http8080-WorkerThread(1)] Tue Jun 16 21:42:19 EDT 2009 [FIN]
>>>> org.apache.jasper.servlet.JspServlet service:JspEngine -->
>>>> /resources/css/themes/blue/theme.css
>>>>
>>>> [http8080-WorkerThread(1)] Tue Jun 16 21:42:19 EDT 2009 [FIN]
>>>> org.apache.jasper.servlet.JspServlet service: ServletPath: /
>>>>
>>>> [http8080-WorkerThread(1)] Tue Jun 16 21:42:19 EDT 2009 [FIN]
>>>> org.apache.jasper.servlet.JspServlet service: PathInfo:
>>>> resources/css/themes/blue/theme.css
>>>>
>>>> [http8080-WorkerThread(1)] Tue Jun 16 21:42:19 EDT 2009 [FIN]
>>>> org.apache.jasper.servlet.JspServlet service: RealPath:
>>>> C:\Documents and Settings\dionnese\Local
>>>> Settings\Temp\grizzly-twitter\resources\css\themes\blue\theme.css
>>>>
>>>> [http8080-WorkerThread(1)] Tue Jun 16 21:42:19 EDT 2009 [FIN]
>>>> org.apache.jasper.servlet.JspServlet service: RequestURI:
>>>> /grizzly-twitter/resources/css/themes/blue/theme.css
>>>>
>>>> [http8080-WorkerThread(1)] Tue Jun 16 21:42:19 EDT 2009 [FIN]
>>>> org.apache.jasper.servlet.JspServlet service: QueryString: null
>>>>
>>>> [http8080-WorkerThread(1)] Tue Jun 16 21:42:19 EDT 2009 [FIN]
>>>> org.apache.jasper.servlet.JspServlet service: Request Params:
>>>>
>>>> Will try to provide a unittest tomorrow if needed.
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
>>> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>>>
>>>
>>
>