NetBeans 6.5 M1: GlassFish v3 + Rails
Posted by arungupta on July 8, 2008 at 9:08 AM EDT
NetBeans IDE 6.5 Milestone 1 is now available. The New and Noteworthy feature list certainly makes it worthy for the install - comprehensive PHP support (Editor Screencast and PHP Learning Trail), JavaScript Debugger, Groovy Editor, Grails support and Numerous improvements in other areas are some of them.
Let's get started!
- Download NetBeans
6.5 M1. Installation is pretty straight-forward and I
customized it with the following options:

After a simple installation process, check the "About" box as:

- GlassFish v3
plug-in and TP2
is baked into the main release and so it is pre-configured for you. No
need to install the additional
plugin.
This blog walks you through creating a simple Rails app and shows the nice improvements along the way.
- Let's create a simple Rails app:

Notice, GlassFish v3 is chosen as the default Server. - Specify the database connection as:

and click on "Finish". NetBeans is bundled with JRuby 1.1.2 and Rails 2.1.0.
- Start MySQL as "sudo mysqld_safe --user root".
- Running Rake commands from within is more natural now.
Right-click on the project and select "Run/Debug Rake Task ..."

The dialog shows all the Rails rake tasks available. Typing the Rake command prunes the list matching
the pattern and shows:

Type "db:create" and select "Run".
- Create a new Scaffold by right-clicking on "Project" and
selecting "Generate..." and entering the value as shown:

and clicking on "OK".
- Migrate the database by invoking Rake command as shown:

and selecting "Run".
- Right-select the project and select "Run" as shown:

The default App Server page at "http://localhost:8080" is shown. This will be updated to "http://localhost:8080/RailsApplication19" which is the default Rails page for the final release.
- After adding couple of entries the final output looks like:

Subsequent blog entries will highlight other aspects of NetBeans IDE 6.5 M1.
Technorati: netbeans glassfish v3 rubyonrails mysql
Related Topics >>
Blog Links >>
- Login or register to post comments
- Printer-friendly version
- arungupta's blog
- 952 reads






Comments
by arungupta - 2009-04-06 11:47
Chris, did you try copying Oracle JDBC driver in GlassFish's lib directory ?by evilgeenius - 2008-07-08 10:47
"The driver encountered an error: cannot load Java class oracle.jdbc.driver.OracleDriver" How do I use the oracle driver with Glassfish 3? its a problem I encounter again and again when trying to use glassfish with netbeans. There doesn't seem to be an odvious way to do it. Any help appreciated. Thanks Chris