« Return to Thread: Has the Dust Settled in The Netbeans Glassfish V3 Gem Environment?

Re: Has the Dust Settled in The Netbeans Glassfish V3 Gem Environment?

by Erno Mononen :: Rate this Message:

Reply to Author | View in Thread

Hi Paul,

Paul Fraser wrote:
> Netbeans JRuby Complete 200804011203  Ubuntu Hardy Heron 8.04
> Installed Glassfish V3 plugin and Glassfish Version 3 Gem
> Glassfish V3 does not appear in server list.

Probably a bug, please file it against serverplugins/glassfish_v3 (it
might get reassigned then to ruby/rails depending on where the root
cause is).

>
> I am somewhat confused (again) as to the procedure for setting up a
> system using glassfish v3 to serve JRuby Rails project developed in
> Netbeans.
> Goldspike, Warbler, Grizzly... how do they fit in. Then Tomcat, Apache
> and what else !!
>
> Any assistance in this pursuit would be appreciated.
> A simple listing of the procedure would be a delight...If in fact the
> aim is achievable..at this time.

I can understand the confusion, there is not that much info /
documentation out there on these things yet. Arun Gupta has some very
informative blog entries on deploying JRuby Rails applications to
GlassFish, I'd recommend checking it out if you're not familiar with it
yet:

http://weblogs.java.net/blog/arungupta/ (you might want to search for
Rails entries).

This article is also a good read:
http://developers.sun.com/appserver/reference/techart/rails_gf/

Let me also try to summarize some of the above:

If you want to deploy a JRuby Rails application to GlassFish, you have
two options: 1) WAR-based mode and 2) directory based mode. If using the
former mode, you need either GoldSpike or Warbler for creating a war
file from your Rails application. If the former, you don't need either,
you just point the server to the application directory.

As for how this all works in NetBeans:

For GlassFish V2, you need to create a war file and then deploy it
manually. NetBeans bundles the GoldSpike plugin for creating the war
file, deploying it means copying it to the autodeploy directory on the
server.

For V3, after installing the V3 plugin the server should be available in
the list of servers and then using it is similar to using WEBrick /
Mongrel. It will use the directory based mode, so there is no need to
create a war file and no additional deployment step. If you're having
troubles with this scenario, please do file issues so that we can
resolve them. You can also deploy to V3 using the WAR based mode
similarly as with V2 if you like.

Apache and/or Tomcat don't need to be involved in any of this in any way
- you can deploy WAR files to Tomcat too, and you can always front your
server with Apache, but it is by no means necessary when using GlassFish.

HTH,
Erno

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: Has the Dust Settled in The Netbeans Glassfish V3 Gem Environment?