Versions to run on Tomcat in Windows

Hi you all,

I’ve recently post a comment and a bug, because, after generating a
Rails app with JRuby and executing correctly in Mongrel, the .war
generated by Warbler does not work.

My question now is, anybody out there has managed to make JRuby works
with Rails and Tomcat in Windows XP? If so, can you tell me the exact
versions you used to make it work?

I prefer to develop my app in JRuby older versions better than ending up
working in J2EE :S

Thanks all.

Hi Damaris,

Damaris F. wrote:

My question now is, anybody out there has managed to make JRuby works
with Rails and Tomcat in Windows XP? If so, can you tell me the exact
versions you used to make it work?

Yes I have made it work, you can just use warble 0.9.5 at this time. the
way to do this is just install the old version using this command:

jruby -S gem install warble -v 0.9.5

then you can use the old warble like this:

jruby -S warble 0.9.5 war

as a disclamer though I develop on a mac, and ran these commands on
that, but the commands for building the war on windows should be the
same if you use windows for development as well.

Best regards
Jakob

Ok, I’ve tried with warbler version 0.9.5, and keeping my jruby 1.1.2
version (Tomcat 5.5.17).
And when deploying,after starting the server, just wait a few seconds
and the following appears in the commands window:

javax.servlet.ServletException: Could not load Rails. See the logs for
more details.
at org.jruby.webapp.RailsFactory.makeObject(RailsFactory.java:139)
at
org.jruby.webapp.util.CustomObjectPool.addObjectInternal(CustomObjectPool.java:111)
at
org.jruby.webapp.util.CustomObjectPool.access$200(CustomObjectPool.java:15)
at
org.jruby.webapp.util.CustomObjectPool$PoolSizeManager.run(CustomObjectPool.java:193)

Lots of thanks

PT: I’ve also tried adding the gems I need in warble.rb with:
RAILS_ROOT = “#{File.dirname(FILE)}” unless defined?(RAILS_ROOT)

require “#{RAILS_ROOT}/config/boot”
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

but the same happens.

Jakob Skov-pedersen wrote:

Hi Damaris,

Damaris F. wrote:

My question now is, anybody out there has managed to make JRuby works
with Rails and Tomcat in Windows XP? If so, can you tell me the exact
versions you used to make it work?

Yes I have made it work, you can just use warble 0.9.5 at this time. the
way to do this is just install the old version using this command:

jruby -S gem install warble -v 0.9.5

then you can use the old warble like this:

jruby -S warble 0.9.5 war

as a disclamer though I develop on a mac, and ran these commands on
that, but the commands for building the war on windows should be the
same if you use windows for development as well.

Best regards
Jakob