This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version: NetBeans IDE 6.0.1 (Build 200801291616) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05 System: SunOS version 5.11 running on x86; ISO646-US; en (nb) The following simple step is not working. I'd like to know any additional instruction is required or not. I tried the following document: http://www.netbeans.org/kb/60/ruby/setting-up.html#glassfish 1. Install NetBeans 6.0.1 or 6.0, I got the same behavior on 6.1 trunk build. 2. Start NetBeans 3. Create a project of Ruby on Rails Check "Add Rake Targets to Support App Server Deployment (.war)" 4. Run Rake Taks > war > standalone > create war file is created, but I can not find any web.xml under it. So the war file can be deployed to app server but it will not work, just browsing directory. When I re-install goldspike plugin, it works. 5. Try to re-install goldspike plugin jruby script/plugin install http://jruby-extras.rubyforge.org/svn/trunk/rails-integration/plugins/goldspike --force svn: '/home/katakai/NetBeansProjects/RailsApplication18/vendor/plugins' is not a working copy + ./goldspike/README + ./goldspike/Rakefile + ./goldspike/generators/goldspike/goldspike_generator.rb + ./goldspike/generators/goldspike/templates/war.rb + ./goldspike/generators/goldspike/templates/web.xml.erb + ./goldspike/init.rb + ./goldspike/install.rb + ./goldspike/lib/create_war.rb + ./goldspike/lib/java_library.rb + ./goldspike/lib/packer.rb + ./goldspike/lib/run.rb + ./goldspike/lib/util.rb + ./goldspike/lib/war_config.rb + ./goldspike/tasks/war.rake + ./goldspike/test/test_create_war.rb + ./goldspike/test/test_java_library.rb + ./goldspike/test/test_maven_library.rb + ./goldspike/test/war_config_test_config.rb exists config create config/war.rb exists WEB-INF create WEB-INF/web.xml.erb 6. Try again to create a war file, Run Rake Taks > war > standalone > create (in /home/katakai/NetBeansProjects/RailsApplication18) info: Assembling web application info: Packing needed Java libraries ... info: adding Java library jruby-complete-1.0.3 info: adding Java library goldspike-1.4 info: Packing needed Ruby gems ... rake aborted! The activerecord-jdbc-adapter gem is not installed (See full trace by running task with --trace) Click here to re-run task with tracing enabled 7. install activerecord-jdbc-adapter from gems gem install activerecord-jdbc-adapter 8. try again Finally web.xml is created.
Probably a problem with the version of goldspike we bundle (1.3), possibly in combination with the used JRuby and Rails version. Need to update it to the newest version that adds support for Rails 2.0 and JRUby 1.1.
*** Issue 123606 has been marked as a duplicate of this issue. ***
Turns out that this is not just a matter of upgrading the bundled Goldspike; reinstalling or just installing if the project was initially created without support for war deployment is the key to make this work. I'm not that familiar with how Rails plugins are handled, but apparently the code in goldspike_generator.rb that seems to create web.xml doesn't get invoked when the plugin is just unzipped (as is the case for the bundled goldspike plugin) instead of installed via the installation script. Need to investigate more.
*** Issue 123900 has been marked as a duplicate of this issue. ***
Fixed by changeset 7386a78577f5. The problem was that the plugin installation hook creates the template for web.xml and another file, but since we just unzip the goldspike plugin in the IDE these files didn't get created. So I added the missing files to the bundled goldspike zip, should work now.