dev@glassfish.java.net

Re: How to create JRuby environment on GlassFish ?

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Mon, 11 Jun 2007 13:27:32 -0700

Cool, let us know once the entry is published.

Thanks,
-Arun

寺田 佳央 wrote:
> Arun-san.
>
> Thank you so much !!
>
> I have a miss configuration.
> And I could configure the JRuby with GlassFish.
>
> I will write the way to configure the JRuby with GlassFish by Japanese
> after 6/20.
>
> Best regards.
> Yoshio.
>
> On 2007/06/11, at 10:28, Arun Gupta wrote:
>
>> Hi Yoshio,
>>
>> Have you tried the latest instructions at:
>>
>> http://blogs.sun.com/arungupta/entry/database_enabled_ror_war_on
>>
>> ?
>>
>> Thanks,
>> -Arun
>>
>> 寺田 佳央 wrote:
>>> Today I tried to create the JRuby environment on GlassFish v2.
>>> #glassfish-installer-v2-b41d.jar
>>> # Because I want to inform cu about this feature and demo.
>>> However after configured it , I couldn't get the response from
>>> GlassFish.
>>> So could you let me know how to create the environment ?
>>> In order to create the environment , I referenced following URL.
>>> http://blogs.sun.com/whacko/entry/glassfish_and_ruby
>>> And actually I executed the following command.
>>> yosshi > java -Xmx256m -jar glassfish-installer-v2-b41d.jar
>>> yosshi > jruby -S gem install rails --include-dependencies
>>> yosshi > jruby -S gem install activerecord-jdbc --no-rdoc --no-ri
>>> yosshi > jruby -S rails test-app
>>> yosshi > jruby script/plugin install
>>> svn://rubyforge.org/var/svn/jruby-extras/trunk/rails-integration/plugins/goldspike
>>> yosshi > jruby -S rake -T
>>> yosshi > jruby script/generate controller sample hello
>>> yosshi > jruby -S rake war:standalone:create
>>> yosshi > cd /Users/yt133043/Desktop/glassfish/
>>> yosshi > chmod -R 755 lib/ant/bin
>>> yosshi > ./lib/ant/bin/ant -f setup.xml
>>> yosshi > cd domains/domain1/config/
>>> yosshi > vi default-web.xml (I added following line.)
>>> ***************************************
>>> <servlet>
>>> <servlet-name>cgi</servlet-name>
>>>
>>> <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
>>> <init-param>
>>>
>>> /Users/yt133043/Desktop/glassfish/domains/domain1/docroot/>
>>> <param-name>cgiPathPrefix</param-name>
>>>
>>> <param-value>/Users/yt133043/Desktop/glassfish/test-app/public/dispatch.cgi</param-value>
>>> </init-param>
>>> <init-param>
>>> <param-name>executable</param-name>
>>>
>>> <param-value>/Users/yt133043/Desktop/glassfish/lib/jruby-1.0/bin/jruby</param-value>
>>> </init-param>
>>> <init-param>
>>> <param-name>passShellEnvironment</param-name>
>>> <param-value>true</param-value>
>>> </init-param>
>>> ...
>>> </servlet>
>>> <servlet-mapping>
>>> <servlet-name>cgi</servlet-name>
>>> <url-pattern>/*</url-pattern>
>>> </servlet-mapping>
>>> ***************************************
>>> yosshi > cd Desktop/glassfish/test-app/
>>> yosshi > asadmin deploy test-app.war
>>> *****************************************
>>> Then I access to the GlassFish by using browser .
>>> At that time HTTP Status 404 was returned.
>>> If I access to the GlassFish ,the result of attatchment
>>> files(Image1.png,Image2.png,Image3.png) was gotten.
>>> The all of detail operation is attatchment file as trace.txt.
>>> ------------------------------------------------------------------------
>>> ------------------------------------------------------------------------
>>> ------------------------------------------------------------------------
>>> ------------------------------------------------------------------------
>>> ------------------------------------------------------------------------
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>> --
>> Technology Evangelist
>> Web Technologies and Standards
>> Sun Microsystems, Inc.
>> Blog: http://blogs.sun.com/arungupta
>>
>> ---------------------------------------------------------------------
>> 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
>

-- 
Technology Evangelist
Web Technologies and Standards
Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta