users@glassfish.java.net

Re: JRoR WAR deployment to GF3 fails

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Sun, 02 Aug 2009 08:46:01 -0700

Martin Gainty wrote:
> would the GrizzlyAdapter work for hooking HTTP with non-Rack based
> ruby frameworks such as
> CGI based script lang such as Perl or Python?

You need to implement a GrizzlyAdapter for this respective languages
based web frameworks. For example for Python based Django web framework
[1] there is a JythonGrizzlyAdapter along with v3 pluggable container
implementation (Sniffer,Deployer, Container)[2] and [3].

Checkout Jython container here:
https://svn.dev.java.net/svn/glassfish-scripting/trunk/jython.

-vivek.

[1]http://weblogs.java.net/blog/vivekp/archive/2009/06/run_django_appl_1.html
[2]http://blogs.sun.com/quinn/entry/about_extensibility_in_glassfish_v3
[3]http://wiki.glassfish.java.net/Wiki.jsp?page=ContainerSPI
>
> Thanks for the comprehensive answer
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
> unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig.
> Diese Nachricht dient lediglich dem Austausch von Informationen und
> entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten
> Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den
> Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>
> > Date: Sat, 1 Aug 2009 20:10:35 -0700
> > From: Vivek.Pandey_at_Sun.COM
> > To: users_at_glassfish.dev.java.net
> > Subject: Re: JRoR WAR deployment to GF3 fails
> >
> > Hassan Schroeder wrote:
> > > On Fri, Jul 31, 2009 at 7:47 PM, Martin
> Gainty<mgainty_at_hotmail.com> wrote:
> > >
> > >> curious if your Ruby scripts use a cgi interpreter
> > >> or a servlet based solution
> > >>
> > >
> > > Using the standard Goldspike servlet runner (packaged by Warbler).
> > >
> > >
> > It is jruby-rack and not Goldspike servlet. On GlassFish v3 server
> there
> > are 2 ways you can run a Rails/Sinatra/Merb or any rack compliant
> > application.
> >
> > 1. Just run your jRuby/Rack application without any special
> packaging by
> > simply deploying on glassfish v3 server. This is made possible thru v3
> > container pluggability extension (Sniffer,Container,Deployer) and uses
> > implements a GrizzlyAdapter to directly hookup HTTP layer with Rails or
> > MErb or any other Rack based ruby framework.
> >
> > $ asadmin deploy yourRailsAppDir/
> >
> > Of course you would need to set jruby.home JVM property (which is
> > deprecated) or use
> >
> > $ asadmin jruby-container-config --jruby-home=...
> >
> > or use deploy time property
> >
> > $ asadmin deploy --property jruby.home=... yourRailsAppDir/
> >
> > 2. Use warbler gem, which uses jruby-rack, to create a WAR file and
> > deploy on GlassFish v3 or v2.
> >
> > $ cd yourRailsAppDir/
> > $ warble
> > $ asadmin deploy yourRailsAppDir.war
> >
> > -vivek.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> > For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> >
>
> ------------------------------------------------------------------------
> Get your vacation photos on your phone! Click here.
> <http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM>