- Using Netbeans 6.0, Create a Rails application WITHOUT support for WAR deployment.
- Glassfish will use the "production" part of database.yml, so make sure you have a valid configuration there.
- Install the goldspike plugin (script/plugin install http://jruby-extras.rubyforge.org/svn/trunk/rails-integration/plugins/goldspike)
- In Netbeans, refresh the rake tasks.
- Add your dependent gems in the war.rb file located in config folder (see http://wiki.jruby.org/wiki/Goldspike for more instructions on how to do that). Basically is something like:
add_gem 'activerecord-jdbcpostgresql-adapter' add_gem 'fastercsv'
- run rake->war->standalone->create from the menu.
- copy and paste the generated war file (should be in the app's root folder) into the autodeploy folder of you glassfish domain's (domains/yourdomain) folder.
- start your glassfish server.
- Navigate to your application, e.g.: http://localhost:8080/finances/categories/list.
The following are free (MIT license) mailing labels and letter templates for jasperreports that you can download and use in jasperserver and/or ireport: Update 3/15/2011 : I moved the Mail templates zip file here . Please consider making a small donation if the templates are of help to you, Thank you! If you need more information on how to use those templates please leave a comment in the blog.
Comments