[Cruisecontrolrb-users] using jruby and mysql jdbc adapter

Bryan Noll bwnoll at gmail.com
Tue Sep 4 20:01:12 EDT 2007


I'm trying to get my project set up in cruisecontrol.rb and am running 
into a wall.  I get the project added, force a build from the dashboard, 
and immediately receive an error as follows.  (I grabbed the command it 
tried to run and ran it manually from the same directory and got the 
same output.  Here it is.)

bnoll at southpaw:~/tools/cruisecontrolrb-1.1.0/projects/olex/work$ ruby -e 
"require 'rubygems' rescue nil; require 'rake'; load 
'/home/bnoll/tools/cruisecontro
lrb-1.1.0/tasks/cc_build.rake'; ARGV << '--nosearch' << 'cc:build'; 
Rake.application.run"
(in /home/bnoll/tools/cruisecontrolrb-1.1.0/projects/olex/work)
[CruiseControl] Invoking Rake task "db:test:purge"
rake aborted!
database configuration specifies nonexistent jdbc adapter

(See full trace by running task with --trace)


-----

Now, we're using jruby on this project, and the jdbc adapter to talk to 
a mysql database.  I'm sure the problem is in one of these two areas.  
Hoping that it would be this easy, I ran the exact same command as 
above, except with 'jruby' instead of 'ruby'.  It didn't work either, 
but I got a different error message.

bnoll at southpaw:~/tools/cruisecontrolrb-1.1.0/projects/olex/work$ jruby 
-e "require 'rubygems' rescue nil; require 'rake'; load 
'/home/bnoll/tools/cruisecontro
lrb- 1.1.0/tasks/cc_build.rake'; ARGV << '--nosearch' << 'cc:build'; 
Rake.application.run"
(in /home/bnoll/tools/cruisecontrolrb-1.1.0/projects/olex/work)
[CruiseControl] Invoking Rake task "db:test:purge"
[CruiseControl] Invoking Rake task "db:migrate"
rake aborted!
NativeException: java.sql.SQLException: No database selected: SELECT 
version FROM schema_info

(See full trace by running task with --trace)



Any thoughts on how to proceed?

TIA...

Bryan






More information about the Cruisecontrolrb-users mailing list