« Return to Thread: Tomcat: Setting the JRuby version

Re: Tomcat: Setting the JRuby version

by Charles Oliver Nutter-4 :: Rate this Message:

Reply to Author | View in Thread

On Tue, Jun 23, 2009 at 9:57 AM, Nick Sieger<nicksieger@...> wrote:

> On Tue, Jun 23, 2009 at 9:27 AM, F2Andy <andy.joel@...> wrote:
>>
>> Yes, this is Rails, packaged with Warbler. I see that Warbler has put two
>> versions of JRuby in WEB-INF\lib (jruby-complete-1.3.0RC1.jar and
>> jruby-complete-1.1.6.jar). How does Tomcat decide which to use? It
>> currently
>> picks jruby-complete-1.1.6.jar. How does Warbler choose which ones to
>> pack?
>> Why does it not pack jruby-complete-1.3.0RC2.jar? My project is actually
>> inside the jruby-1.3.0RC2 directory, by the way.
>
> Whoops, there should only be one version. Did you specify a version somehow,
> or did Warbler accidentally pick two up from somewhere?

Maybe try wiping out the tmp/war dir and rebuilding the war file?
Maybe you have two jruby-complete jars in the gem location for
warbler?

The short answer here is that "it depends"...as Gary Weaver said, it
could be loaded in any order, and the first one in Tomcat's webap
classpath will be the one that gets used.

- Charlie

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Tomcat: Setting the JRuby version