A jar file will end up on the webapp classpath if it's added to: RAILS_ROOT/WEB-INF/lib
I'm not too sure if we could add lib/*.jar to the webapp classloader. It could be added to the JRuby classloader, but I would've expected what you're doing to do that already. Cheers, Robert Charles Oliver Nutter wrote: > I've taken to the following pattern for loading my JDBC driver: > > 1. put jar file in RAILS_ROOT/lib > 2. add require 'driver-filename.jar' to environment.rb > > This saves me ever having to monkey with CLASSPATH. But unfortunately > this doesn't work once I WAR up the app. > > So, what's the current correct way to include an arbitrary JAR file in > the resulting WAR, and then how can we make it so I wouldn't have to > modify anything? :) > > - Charlie > _______________________________________________ > Jruby-extras-devel mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/jruby-extras-devel > _______________________________________________ Jruby-extras-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/jruby-extras-devel
