Rails application deployed on glassfish3

Hi,

I wrote a tiny rails application with an oracle database as backend.
It worked as pure rails application.
I created a war file by calling warble.
I deployed the war file on a GF3 server.

When I launch the rails application in GF I get an exception:

[#|2010-09-22T15:42:01.399+0200|SEVERE|glassfish3.0.1|
javax.enterprise.system.container.web.com.sun.enterprise.web|
_ThreadID=34;_ThreadName=Thread-1;|WebModule[/comics_catalog]Application
Error
org.jruby.rack.RackInitializationException: Please install the
oracle_enhanced
adapter: gem install activerecord-oracle_enhanced-adapter (no such
file to
load – active_record/connection_adapters/oracle_enhanced_adapter)
from
/opt/workarea/glassfishv3/glassfish/domains/domain1/applications/
comics_catalog/WEB-INF/gems/gems/activerecord-2.3.8/lib/active_record/
connection_adapters/abstract/connection_specification.rb:60:in
`establish_connection’

The problem is: I installed already the
activerecord-oracle_enhanced-adapter
and it worked with pure ruby. In GF I configured the JRuby-directory to
my
local JRuby-installation-directory “/opt/workarea/jruby-1.5.2” with
asadmin configure-jruby-container --jruby-home=/opt/workarea/jruby-1.5.2:

pberg@porschberg:/opt/workarea/jruby-1.5.2> find . -name
oracle_enhanced_adapter
./lib/ruby/gems/1.8/doc/activerecord-oracle_enhanced-adapter-1.3.1/rdoc/files/
lib/active_record/connection_adapters/oracle_enhanced_adapter_rb.html
./lib/ruby/gems/1.8/gems/activerecord-oracle_enhanced-adapter-1.3.1/spec/
active_record/connection_adapters/oracle_enhanced_adapter_spec.rb
./lib/ruby/gems/1.8/gems/activerecord-oracle_enhanced-adapter-1.3.1/lib/
active_record/connection_adapters/oracle_enhanced_adapter.rb

Why will oracle_enhanced adapter not be found?

I’m completely new to this topic. May be the reason is very simple.

Best regards
Thomas


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Thomas

Am 23.09.2010 um 14:28 schrieb pberg:

org.jruby.rack.RackInitializationException: Please install the oracle_enhanced
Have you added it to your environment.rb? Warbler will only package
stuff you specified in there (config.gem). The resulting .war is
completely independent and doesn’t use anything from your system (beside
java of course). So it wont take it from your /opt folder.

Cheers,
Reto

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email