Ken--_at_newsgroupstats.hk wrote:
> Is GlassFish V3 too heavy for me?
No that's the goal of v3. Really lightweight app server. The only
problem you might found is the size of the v3 bundle (we are working on
reducing that one).
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.
Agree, but under the hood you need a Servlet Container in order to be
able to run JSP.
Let me know if v3 is too heavy...we can think of a solution by using
glassfish v2 WebServer + grizzly.
Thanks
-- Jeanfrancois
>
>
> 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
>>
>>
>>
>