Salut,
Nice to see you here :-)
Claudio Miranda wrote:
> I am new to grizzly, I have started grizzly webserver as below, but browser
> was unable to show anything, no error, no message (on browser or console)
>
> http://localhost:8081/CadEmprego.jsp
> http://localhost:8081/jobs/CadEmprego.jsp
>
> How can I launch an .war application ?
>
> $ java -jar grizzly-http-webserver-1.8.3.jar -p 8081 -a
> /home/claudio/alphaworks/projects/soujava/jobs/dist/jobs.war
> Running from: /tmp/jobs
> 16/07/2008 19:00:40 com.sun.grizzly.http.SelectorThread displayConfiguration
> INFO:
> Grizzly configuration for port 8081
> maxThreads: 5
> minThreads: 5
> ByteBuffer size: 8192
> maxHttpHeaderSize: 8192
> maxKeepAliveRequests: 256
> keepAliveTimeoutInSeconds: 30
> Static File Cache enabled: true
> Static resources directory: /tmp/jobs
> Adapter : com.sun.grizzly.tcp.StaticResourcesAdapter
> Thread Pool (Pipeline): com.sun.grizzly.http.LinkedListPipeline
> Asynchronous Request Processing enabled: false
>
you need to use the grizzly-servlet-webserver.jar bundle, and start your
Servlet like the folllowing:
java -jar grizzly-servlet-webserver-1.8.3.jar -p 8088 -a jobs.war
NAME_OF_YOUR_SERVLET
Based on the above, I see you are trying to serve jsp. The Servlet
Container in Grizzly doesn't support jsp, and it is not yet fully
compliant with the Servlet Spec. What's missing? Three functionalities:
+ Request Dispatcher support
+ All Listeners support
+ Deployment support
Right now the Servlet is useful because you can programmatically
configure it from a java class, by following what I described in [1] and
[2].
Contributions and blogs welcome (I keep bugging the community with blogs
those days :-))
A+
-- Jeanfrancois
[1]
https://grizzly.dev.java.net/nonav/apidocs/com/sun/grizzly/http/servlet/ServletAdapter.html
[2]
http://weblogs.java.net/blog/jfarcand/archive/2008/07/extending_the_g.html
> Thanks
>
> Claudio Miranda
>
> -----
> Claudio Miranda
> http://weblogs.java.net/blog/claudio
> http://www.claudius.com.br/blog