Closed amalagaura closed 10 years ago
how WEB-INF/lib the .jar is no longer there right?
Correct, there is no jruby-rack-worker.jar in 1.4.2 WEB-INF/lib. It only has
jruby-core-complete-1.7.11.jar jruby-rack-1.1.14.jar jruby-stdlib-complete-1.7.11.jar
This is a huge change. I don't know how this is done in a point version, seems like a big breaking change. They have left everything to WEB-INF/gems/gems which does look the same in both versions.
In 1.4.0 every single gem has a jar file in that WEB-INF/lib, for jruby-rack-worker it is called:
gems-gems-jruby-rack-worker~ruby-rack-worker_0.10.0.jar
Looks like they have something in config.rb regarding this
Setting it to true now and it does work. Is this a workaround or should this be the method we use with jruby-rack-worker?
Anyway thank you for pointing me to WEB-INF/lib
This is the discussion https://github.com/jruby/warbler/issues/242
yes, I actually asked for that setting ... for .jars that the web app needs to see e.g. listener declared (in case of jruby-rack-worker) it simply won't work without the setting, discussion happened at https://github.com/jruby/warbler/pull/241
updated README + Warbler 1.4.4 will have support for selectively choosing which files to include. thanks
I upgraded to warbler 1.4.2 from 1.4.0 and I am getting this:
SEVERE: Error configuring application listener of class org.kares.jruby.rack.WorkerContextListener java.lang.ClassNotFoundException: org.kares.jruby.rack.WorkerContextListener
I check the .war file and it does have jruby-rack-worker in the gem directory with the jar and the code to load the jar. I don't see anything obvious.