[Cruisecontrolrb-users] using jruby and mysql jdbc adapter
Alexey Verkhovsky
averkhov at thoughtworks.com
Wed Sep 5 12:35:41 EDT 2007
Hi,
Default build behavior is to run a process with "ruby -e"... Which
generally means it will run under MRI.
You need to use project.build_command option in cruise_config.rb of your
project, and put there something like 'jruby -S rake ...'.
--
Alex
Bryan Noll <bwnoll at gmail.com>
Sent by: cruisecontrolrb-users-bounces at rubyforge.org
09/04/2007 06:01 PM
To
cruisecontrolrb-users at rubyforge.org
cc
Subject
[Cruisecontrolrb-users] using jruby and mysql jdbc adapter
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
_______________________________________________
Cruisecontrolrb-users mailing list
Cruisecontrolrb-users at rubyforge.org
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070905/a2a9e892/attachment.html
More information about the Cruisecontrolrb-users
mailing list