Rails application on Tomcat with jdbcsqlite3 adapter

I’m trying to deploy a rails application to Tomcat. I used Warbler, and
then
I deployed the application, but it gives me some problems with the
jdbcsqlite3. This is the message I got from the Tomcat log files.

org.jruby.rack.RackInitializationException: Please install the
jdbcsqlite3
adapter: gem install activerecord-jdbcsqlite3-adapter (no such file to
load – active_record/connection_adapters/jdbcsqlite3_adapter)

The fact is that the adapter is already installed and if I run the
application with jruby script/server it works well, so I’m trying to
understand why now on Tomcat it doesn’t work. (I’m using JRuby 1.1.2 and
Rails 2.1)

Thanks.

You need to tell Warbler to copy it into the warfile.

Run

warble -S config

to create config/warble.rb, then add a line to it like

config.gems << “activerecord-jdbcsqlite3-adapter”

On Mon, Sep 1, 2008 at 10:30 AM, Andrea R.
[email protected] wrote:

understand why now on Tomcat it doesn’t work. (I’m using JRuby 1.1.2 and
Rails 2.1)


Rasputnik :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Mon, Sep 1, 2008 at 12:28 PM, Dick D.
[email protected]wrote:

You need to tell Warbler to copy it into the warfile.

Run

warble -S config

to create config/warble.rb, then add a line to it like

config.gems << “activerecord-jdbcsqlite3-adapter”

Thanks for the answer. While reading and trying to solve the problem I
saw
this on the config file, so I already added it and now it load the gem
correctly. Now I’ve a new error that is telling me about the wrong
location
of the DB.

The driver encountered an error: java.sql.SQLException: path to
‘db/production.sqlite3’: ‘/home/reggie/db’ does not exist

Basically he is searching on my home directory. I read something about
glassfish, where we need to add the string runner/ before the name of
the db
on the configuration file, but nothing about tomcat and sqlite3.

Thanks again!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs