[Cruisecontrolrb-users] using jruby and mysql jdbc adapter
Bryan Noll
bwnoll at gmail.com
Wed Sep 5 13:17:30 EDT 2007
Thanks Alexey!
That did it.
Alexey Verkhovsky wrote:
>
> 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
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Cruisecontrolrb-users mailing list
> Cruisecontrolrb-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
>
More information about the Cruisecontrolrb-users
mailing list