users@grizzly.java.net

Re: How to run my webapps by Grizzly Servlet Launcher HTTP Engine?

From: Ken--_at_newsgroupstats.hk <dragonken_at_gmail.com>
Date: Fri, 23 May 2008 05:42:33 -0700 (PDT)

Is GlassFish V3 too heavy for me? What I want to do is to embed an http
server in client server (Grizzly) with jsp supportted. Coding jsp is much
easier than servlet.


Jeanfrancois Arcand-2 wrote:
>
> Hi Ken,
>
> Ken--_at_newsgroupstats.hk wrote:
>> Thanks.
>>
>> I will build my client server by grizzly and embedd http engine for web
>> administration.
>>
>> so my question is:
>>
>> how to call my webapps (struts / jsp) in grizzly http engine?
>
> I see :-) Grizzly http-servlet isn't supporting JSP. So you gonna need
> to use a full Servlet Container to do that, like GlassFish. Fortunately
> for you, GlassFish v3 can be embedded:
>
> http://weblogs.java.net/blog/kohsuke/archive/2008/04/glassfish_v3_ju.html
>
> Are you also extending Grizzly or using it as it is? Because in
> GlassFish v3, under the hood you have the same Grizzly as the one you
> are looking at.
>
> Thanks
>
> - Jeanfrancois
>
>
>
>>
>>
>>
>> Jeanfrancois Arcand-2 wrote:
>>> Hi Ken,
>>>
>>>> Usage: com.sun.grizzly.standalone.servlet.ServletLauncher [options]
>>>> Servlet_Classname
>>>>
>>>> -p, --port=port Runs Servlet on the specified
>>>> port.
>>>> Default: 8080
>>>> -a, --apps=application path The Servlet folder or jar or war
>>>> location.
>>>> Default: .
>>>> -h, --help Show this help message.
>>> So you need to do something like:
>>>
>>> java -jar grizzly-servlet-webserver-1.7-SNAPSHOT.jar -p 8080 -a
>>> myServlet.war com.sun.test.myServlet
>>>
>>> Since this module doesn't (yet) have full deployment support, you need
>>> to tell Grizzly which Servlet class it needs to instantiate. From above,
>>> my Servlet class name is com.sun.test.myServlet.
>>>
>>> Try it and let us know.
>>>
>>> Thanks
>>>
>>> -- Jeanfrancois
>>>
>>>
>>>
>>> Ken--_at_newsgroupstats.hk wrote:
>>>> java -jar grizzly-servlet-webserver-1.7.3.3.jar -p 8080 -a
>>>> d:\jakarta-tomcat\webapps\mywebapps
>>>>
>>>> it show class not found exception
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>
>

-- 
View this message in context: http://www.nabble.com/How-to-run-my-webapps-by-Grizzly-Servlet-Launcher-HTTP-Engine--tp17398515p17424749.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.