From: Thomas Kellerer Date: 2008-03-26T18:29:56+09:00 Subject: Re: Problem creating war file with warbler Thomas Kellerer, 25.03.2008 17:02: > Hi, > > we are trying to move from the (deprecated) goldspike rails plugin to > the new warbler gem to create a war file from our RoR application, but I > cannot get the war file to run. > > Everything seems to be OK, all needed gems (especially ruby-net-ldap) > are packaged in the right places. > > Tomcat and the application startup fine, I can access my login screen. > Authentication is done agains a LDAP server but when my app tries to > contact the LDAP server, it throws an error: > > "no such file to load -- net/ldap" > > but the gem is part of the war file and is located in the same place as > all the other gems (rails, jdbc-adapter etc) > Follow-up: I found this piece of code on the JRuby Wiki pages to detect all needed gems: BUILD_GEMS = %w(warbler rake rcov) for gem in Gem.loaded_specs.values next if BUILD_GEMS.include?(gem.name) config.gems[gem.name] = gem.version.version end interesting enough this does not include ruby-net-ldap as well. So what's so special about this gem? (Btw: I have tried using jruby-ldap as well, but that broke our code) Thomas