Why warbler search for database driver?

I want to share jdbc postgres driver between some applications, so I
put it under tomcat lib.
Then I’ve deleted the jdbc-postgres gem.
When I try to recreate the war, warbler search for the driver.

rake aborted!
gem ‘jdbc-postgres (>= 8.3.604, runtime)’ not installed
Why it need jdbc driver?


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Wed, Jan 20, 2010 at 5:27 AM, Mauro [email protected] wrote:

I want to share jdbc postgres driver between some applications, so I
put it under tomcat lib.
Then I’ve deleted the jdbc-postgres gem.
When I try to recreate the war, warbler search for the driver.

rake aborted!
gem ‘jdbc-postgres (>= 8.3.604, runtime)’ not installed
Why it need jdbc driver?

The main problem is that it tries to load the gem for normal use, but
perhaps is not smart about handling the gem’s jar file when deploying.
Did you ever get past this?

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On 1 February 2010 16:35, Charles Oliver N. [email protected]
wrote:

The main problem is that it tries to load the gem for normal use, but
perhaps is not smart about handling the gem’s jar file when deploying.
Did you ever get past this?

Sorry not yet.

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Wed, Jan 20, 2010 at 5:27 AM, Mauro [email protected] wrote:

I want to share jdbc postgres driver between some applications, so I
put it under tomcat lib.
Then I’ve deleted the jdbc-postgres gem.
When I try to recreate the war, warbler search for the driver.

rake aborted!
gem ‘jdbc-postgres (>= 8.3.604, runtime)’ not installed
Why it need jdbc driver?

This doesn’t answer your question about how to share the driver, but
to address this specific question, the reason why this is popping up
when you run Warbler is that it loads the Rails environment (including
trying to make a database connection) when you run it so it can learn
more about your application (looking for gems, etc.). If you don’t
want this behavior you can create a config/warble.rb (warble config)
and uncomment the line at the top:

Disable automatic framework detection by uncommenting/setting to false

Warbler.framework_detection = false

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email