Bundler gem dependency management in stand alone Jar file

Hello,

I got stuck with bundler and stand alone jruby jar files. It works
great
in development mode. But after packaging the code to jar, bundler can no
longer figure out GEM_HOME/GEM_PATH.

The stacktrace is like the following: (
bundler integration · Issue #16 · colinsurprenant/redstorm · GitHub )

2012-02-16 15:20:04 STDIO [ERROR] Invalid gemspec in
[/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.1.4.gemspec]:
invalid date format in specification: “2011-08-03 00:00:00.000000000Z”
2012-02-16 15:20:04 STDIO [ERROR] Invalid gemspec in
[/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.1.5.gemspec]:
invalid date format in specification: “2011-08-05 00:00:00.000000000Z”
2012-02-16 15:20:04 STDIO [ERROR] Invalid gemspec in
[/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.1.7.gemspec]:
invalid date format in specification: “2011-08-08 00:00:00.000000000Z”
2012-02-16 15:20:04 STDIO [ERROR] Invalid gemspec in
[/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.1.9.gemspec]:
invalid date format in specification: “2011-08-21 00:00:00.000000000Z”
2012-02-16 15:20:04 STDIO [ERROR] Invalid gemspec in
[/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.2.0.gemspec]:
invalid date format in specification: “2011-08-28 00:00:00.000000000Z”
2012-02-16 15:20:05 STDIO [ERROR] Invalid gemspec in
[/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.2.4.gemspec]:
invalid date format in specification: “2011-10-31 00:00:00.000000000Z”
2012-02-16 15:20:06 STDIO [ERROR] Invalid gemspec in
[/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/rack-protection-1.1.2.gemspec]:
invalid date format in specification: “2011-10-01 00:00:00.000000000Z”
2012-02-16 15:20:24 STDIO [ERROR] Invalid gemspec in
[file:/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.1.4.gemspec]:
invalid date format in specification: “2011-08-03 00:00:00.000000000Z”
2012-02-16 15:20:24 STDIO [ERROR] Invalid gemspec in
[file:/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.1.5.gemspec]:
invalid date format in specification: “2011-08-05 00:00:00.000000000Z”
2012-02-16 15:20:24 STDIO [ERROR] Invalid gemspec in
[file:/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.1.7.gemspec]:
invalid date format in specification: “2011-08-08 00:00:00.000000000Z”
2012-02-16 15:20:24 STDIO [ERROR] Invalid gemspec in
[file:/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.1.9.gemspec]:
invalid date format in specification: “2011-08-21 00:00:00.000000000Z”
2012-02-16 15:20:24 STDIO [ERROR] Invalid gemspec in
[file:/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.2.0.gemspec]:
invalid date format in specification: “2011-08-28 00:00:00.000000000Z”
2012-02-16 15:20:24 STDIO [ERROR] Invalid gemspec in
[file:/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.2.4.gemspec]:
invalid date format in specification: “2011-10-31 00:00:00.000000000Z”
2012-02-16 15:20:25 STDIO [ERROR] Invalid gemspec in
[file:/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/rack-protection-1.1.2.gemspec]:
invalid date format in specification: “2011-10-01 00:00:00.000000000Z”
2012-02-16 15:20:31 STDIO [ERROR] Invalid gemspec in
[/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.1.4.gemspec]:
invalid date format in specification: “2011-08-03 00:00:00.000000000Z”
2012-02-16 15:20:31 STDIO [ERROR] Invalid gemspec in
[/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.1.5.gemspec]:
invalid date format in specification: “2011-08-05 00:00:00.000000000Z”
2012-02-16 15:20:31 STDIO [ERROR] Invalid gemspec in
[/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.1.7.gemspec]:
invalid date format in specification: “2011-08-08 00:00:00.000000000Z”
2012-02-16 15:20:31 STDIO [ERROR] Invalid gemspec in
[/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.1.9.gemspec]:
invalid date format in specification: “2011-08-21 00:00:00.000000000Z”
2012-02-16 15:20:31 STDIO [ERROR] Invalid gemspec in
[/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.2.0.gemspec]:
invalid date format in specification: “2011-08-28 00:00:00.000000000Z”
2012-02-16 15:20:31 STDIO [ERROR] Invalid gemspec in
[/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/mongoid-2.2.4.gemspec]:
invalid date format in specification: “2011-10-31 00:00:00.000000000Z”
2012-02-16 15:20:33 STDIO [ERROR] Invalid gemspec in
[/Users/stone/.rvm/gems/ree-1.8.7-2010.02/specifications/rack-protection-1.1.2.gemspec]:
invalid date format in specification: “2011-10-01 00:00:00.000000000Z”
2012-02-16 15:20:40 STDIO [ERROR] Could not find json-1.6.3-java in any
of
the sources
2012-02-16 15:20:40 STDIO [ERROR] Try running bundle install.
2012-02-16 15:20:40 task [ERROR]
java.lang.RuntimeException: org.jruby.exceptions.MainExitException:
aborted
at redstorm.storm.jruby.JRubyBolt.newProxyBolt(JRubyBolt.java:67)
at redstorm.storm.jruby.JRubyBolt.prepare(JRubyBolt.java:38)
at backtype.storm.daemon.task$fn__3298.invoke(task.clj:406)
at clojure.lang.MultiFn.invoke(MultiFn.java:200)
at backtype.storm.daemon.task$mk_task$fn__3221.invoke(task.clj:219)
at backtype.storm.daemon.task$mk_task.invoke(task.clj:218)
at
backtype.storm.daemon.worker$fn__3360$exec_fn__994__auto____3361$iter__3409__3413$fn__3414$fn__3415.invoke(worker.clj:182)
at
backtype.storm.daemon.worker$fn__3360$exec_fn__994__auto____3361$iter__3409__3413$fn__3414.invoke(worker.clj:182)
at clojure.lang.LazySeq.sval(LazySeq.java:42)
at clojure.lang.LazySeq.seq(LazySeq.java:56)
at clojure.lang.ChunkedCons.chunkedNext(ChunkedCons.java:59)
at clojure.lang.ChunkedCons.next(ChunkedCons.java:43)
at clojure.lang.LazySeq.next(LazySeq.java:88)
at clojure.lang.RT.next(RT.java:560)
at clojure.core$next.invoke(core.clj:61)
at clojure.core$dorun.invoke(core.clj:2451)
at clojure.core$doall.invoke(core.clj:2465)
at
backtype.storm.daemon.worker$fn__3360$exec_fn__994__auto____3361.invoke(worker.clj:182)
at clojure.lang.AFn.applyToHelper(AFn.java:187)
at clojure.lang.AFn.applyTo(AFn.java:151)
at clojure.core$apply.invoke(core.clj:540)
at
backtype.storm.daemon.worker$fn__3360$mk_worker__3505.doInvoke(worker.clj:78)
at clojure.lang.RestFn.invoke(RestFn.java:513)
at backtype.storm.daemon.worker$_main.invoke(worker.clj:268)
at clojure.lang.AFn.applyToHelper(AFn.java:174)
at clojure.lang.AFn.applyTo(AFn.java:151)
at backtype.storm.daemon.worker.main(Unknown Source)
Caused by: org.jruby.exceptions.MainExitException: aborted
2012-02-16 15:20:40 util [INFO] Halting process: (“Task died”)

Any suggestions ?

Best Regards,
Stone

what about
$ bundle install --deployment
which installs the gems in ./vendor

maybe that helps.

  • Kristian

Thanks. I also tried this approach. Didn’t work either.
在 2012-2-16 下午7:27,“kristian” [email protected]写道: