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.

Bug 180740 - Sample Depot application does not work out of the box
Summary: Sample Depot application does not work out of the box
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-15 09:39 UTC by Petr Chytil
Modified: 2010-05-27 09:16 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Chytil 2010-02-15 09:39:23 UTC
Steps to reproduce:
 - create new Sample Ruby on Rails Application (Depot Application)
 - try to run it using default bundled jRuby

It will not run because of missing mysql driver, which is not bundled in jRuby anymore:
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
Comment 1 Erno Mononen 2010-02-18 07:19:21 UTC
Targeting 6.9; possibly will just change the sample app to use jdbcmysql by default. But will look at this closer to FCS.
Comment 2 Erno Mononen 2010-05-18 09:07:16 UTC
Fixed in de9832b3e969.

I added lib/tasks/jdbc.rake and config/initializers/jdbc.rb (generated by script/generate jdbc) to the sample app. They take care of automatically using the jdbcmysql adapter when running on JRuby, so I didn't need to change database.yml.
Comment 3 Marian Mirilovic 2010-05-27 07:54:19 UTC
What is the status of this issue ? 
Is it already fixed in release69 clone ? 

If so please replace 69_HR_FIX_CANDIDATE keyword by 69_HR_FIX keyword. Thanks in advance.
Comment 4 Erno Mononen 2010-05-27 09:16:20 UTC
I just transplanted the fix to release69 in 753c0e22bff1, so changing the keyword to 69_HR_FIX.