I’m trying to track down this NativeException when a Rails app tries
to connect to an LDAP server (it’s an Active Directory server,
actually, if that makes any difference) and search from a WAR.
Here’s a way to reproduce this problem minimally:
- jruby rails ldaptest
- cd ldaptest
- Remove ActiveRecord from environment.rb (since we don’t need to
connect to a database).
- warble config
- config.gems << “jruby-ldap” in warble.rb
- jruby script/generate controller home index
- Edit app/controllers/home_controller.rb to define a simple
connection, like so: http://pastie.org/315012
Starting the server with ‘script/server’, going to ‘/home/index’ will
render the familiar “Find me in …” template. This is fine in either
development or production environment.
However, if you create WAR with ‘warble’ and deploy it, same action
triggers this error: http://pastie.org/315013
I’d appreciate any insight.
To unsubscribe from this list, please visit: