colinsurprenant/redstorm — Issue #1: Gem dependencies
Author: harrigan
Created: 2011-11-10 11:42:38+00:00
State: open

I followed the instructions in the README, but when I try on of the examples:

redstorm examples/local_exclamation_topology.rb

I get:

Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- red_storm/version

I am using OSX 10.6.8 and JRuby 1.6.5. Specifically, the error is caused by

java -cp "target/classes:target/dependency/*" redstorm.TopologyLauncher examples/local_exclamation_topology.rb

So JRuby can't find my installed gems. I am using rbenv (http://github.com/sstephenson/rbenv) so my gems are in a non-standard location. However, should the required gems also be in target/dependency? For example, if I:

gem install -i target/dependency/gems redstorm ruby-maven --no-rdoc --no-ri
jar cf target/dependency/gems.jar -C target/dependency/gems/ .

then the problem goes away.