nucleus@glassfish.java.net

Re: Using SSL on GF V3

From: Changshin Lee <iasandcb_at_gmail.com>
Date: Thu, 12 Jul 2007 03:34:04 +0900

Hi,

On 7/12/07, Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com> wrote:
> Hi,
>
> removing one mailing list.
>
> Changshin Lee wrote:
> > Hi,
> >
> > Actually I want to do 2 things: HTTPS and context path setting (e.g.
> > context path "/" for a JRuby web application "hello") on GF V3. Of
> > course I'd like to submit patches and hints on where to start (which
> > module, which class, and the like) will help me a lot.
>
> Grizzly have an open issue open about SSL:
>
> https://grizzly.dev.java.net/issues/show_bug.cgi?id=11
>
> The Grizzly framework supports SSL, but we didn't yet implemented in the
> http module (very simple as Grizzly 1.0.x was already supporting it).
> I'm working on that issue and should have something by the end of the
> week if all goes well.

OK, I'm looking forward to it. Please let me know there's anything I can help.

>
> For the context path, right now the "/" is reserved to files located
> under {v3.home}/domains/domain1/docroot. Technically the problem is the
> current asadmin deploy command use the war file to create the context
> root. So right now it is impossible to deploy on /. The solution is to
> implement the solution GlassFish v1/v2 uses, which is parse the
> sun-web.xml where an attribute called context-root can be used. That's
> the first step that needs to be executed. The code needs to be added in
> class:
>
> ${v3.src.home}/glassfish/appserv-core/maven/web-connector/src/java/com/sun/enterprise/v3/web/WebContainer.java
> ${v3.src.home}/glassfish/appserv-core/maven/web-connector/src/java/com/sun/enterprise/v3/web/WebDeployer.java
>
> There is an example of how the WebContainer parse the web.xml. A similar
> approach should be used to parse the sun-web.xml using the Apache's
> Digester component. You will then need to call
>
> StandardContext.setPath("/");
>
> This is far from simple unfortunately. Now another missing part is
> GlassFish v2 supports the following commands:
>
> asadmin set server.http-service.virtual-server.server.default-web-module=
>
> which is exactly the command you are looking at right now. This command
> is not implemented now. I cannot help on that as this is admin related,
> but as soon as the asadmin set is implemented, it will makes it much
> more easy.

How about adding a new parameter (for example, context_path from
admin) in DeploymentContext so that WebDeployer can set ctxtRoot from
the parameter?

Cheers,

ias

>
> Maybe once Jerome is back he knows an easier solution :-)
>
> Thanks
>
> -- Jeanfrancois
>
> >
> > Cheers,
> >
> > ias
> >
> > On 7/12/07, Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com> wrote:
> >> Hi.
> >>
> >> SSL is not yet implemented. I'm currently working on it:
> >>
> >> > -------- Original Message --------
> >> > Subject: [Status] Grizzly 1.5.2 integration completed.
> >> > Date: Tue, 10 Jul 2007 16:41:21 -0400
> >> > From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
> >> > Reply-To: nucleus_at_glassfish.dev.java.net
> >> > To: nucleus_at_glassfish.dev.java.net
> >> >
> >> > Hi,
> >> >
> >> > today we have released Grizzly 1.5.2 [1]. This release includes all the
> >> > features v3 was requiring to run on top of it, and now changes in
> >> > Grizzly will no longer automatically breaks v3 ;-). Phobos has also
> >> been
> >> > updated to 1.5.2 and as soon as the Phobos snapshot are available I
> >> will
> >> > update v3 to use that one.
> >> >
> >> > What's next:
> >> >
> >> > + Add SSL support (right now v3 only works in clear).
> >> > + Add Jersey support.
> >> > + Work on the PHP integration.
> >> >
> >> > A+
> >> >
> >> > -- Jeanfrancois
> >> >
> >> > [1]
> >> >
> >> http://weblogs.java.net/blog/jfarcand/archive/2007/07/project_grizzly.html
> >>
> >>
> >> If you are interested, patches are welcome :-)
> >>
> >> Thanks
> >>
> >> -- Jeanfrancois
> >>
> >> Changshin Lee wrote:
> >> > Hi all,
> >> >
> >> > Can I turn on an HTTPS listener in GF V3? It seems that GF V3 starts
> >> > only an HTTP listener up (although an HTTPS listener configuration
> >> is on).
> >> >
> >> > Thanks,
> >> >
> >> > ias
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> >> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> > For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
> >
>