« Return to Thread: problem accessing H2 db in tomcat, w/warble war and jruby-rack

Re: problem accessing H2 db in tomcat, w/warble war and jruby-rack

by Nick Sieger-2 :: Rate this Message:

Reply to Author | View in Thread

On Tue, Mar 18, 2008 at 10:44 PM, Stephen Bannasch
<stephen.bannasch@...> wrote:

> I have a very simple test Rails app here:
>
>     https://svn.concord.org/svn/projects/trunk/common/rails/blog
>
>  The code is also visible in trac here:
>
>    http://trac.cosmos.concord.org/projects/browser/trunk/common/rails/blog
>
>  It works fine in Mongrel but I can't seem to get database access
>  working when I create a WAR with Warble and deploy it with JRuby-Rack
>  to Tomcat.
>
>  I am using JRuby trunk r6268, trunk JRuby-Rack, warbler (0.9.4), and
>  activerecord-jdbc-adapter and activerecord-jdbch2-adapter v0.8

I don't have enough familiarity with H2 to know why this is happening,
but there were some posts related to H2 recently that suggested you
connect to it through JNDI when running in the appserver. Have you
tried that?

/Nick

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: problem accessing H2 db in tomcat, w/warble war and jruby-rack