small medium large xlarge

10 Apr 2012, 01:38
Michael O'Connor (1 post)

When I attempt to run the “rake deploy:war” on page 47 I get the following error:

Bundler::GemNotFound: Could not find bouncy-castle-java-1.5.0146.1 in any of the sources materialize at /tmp/d20120409-1545-r7btrt/WEB-INF/gems/gems/bundler-1.0.21/lib/bundler/spec_set.rb:88 map! at org/jruby/ materialize at /tmp/d20120409-1545-r7btrt/WEB-INF/gems/gems/bundler-1.0.21/lib/bundler/spec_set.rb:82 specs at /tmp/d20120409-1545-r7btrt/WEB-INF/gems/gems/bundler-1.0.21/lib/bundler/definition.rb:90 specs_for at /tmp/d20120409-1545-r7btrt/WEB-INF/gems/gems/bundler-1.0.21/lib/bundler/definition.rb:135 requested_specs at /tmp/d20120409-1545-r7btrt/WEB-INF/gems/gems/bundler-1.0.21/lib/bundler/definition.rb:124 requested_specs at /tmp/d20120409-1545-r7btrt/WEB-INF/gems/gems/bundler-1.0.21/lib/bundler/environment.rb:23 setup at /tmp/d20120409-1545-r7btrt/WEB-INF/gems/gems/bundler-1.0.21/lib/bundler/runtime.rb:11 setup at /tmp/d20120409-1545-r7btrt/WEB-INF/gems/gems/bundler-1.0.21/lib/bundler.rb:110 (root) at /tmp/d20120409-1545-r7btrt/WEB-INF/gems/gems/bundler-1.0.21/lib/bundler/setup.rb:17 require at org/jruby/ require at /tmp/d20120409-1545-r7btrt/WEB-INF/gems/gems/bundler-1.0.21/lib/bundler/setup.rb:59 (root) at bin/rake:14

I tried explicitly installing it and including it in the jruby block of the Gemfile without any luck. Did I miss something in the text?

10 Apr 2012, 13:18
Joe Kutner (86 posts)

Is this the command you tried?

$ gem install bouncy-castle-java -v 1.5.0146

I haven’t seen that error before. And the version of the Gem looks correct:

Is it possible you are having connection issues? Or installing with –local? I know those are long shots :)

Alternatively, you might try upgrading bundler. I’ve tested with 1.0.22 and higher (including the 1.1.x) line.

26 Jul 2012, 03:59
Michael Ries (3 posts)

I’m having this same issue right now. I’ll try adding the gem install command to my deploy script…

26 Jul 2012, 04:07
Michael Ries (3 posts)

Looks like for me the problem was that I was running rake deploy:war under ruby-1.9.3-p125 instead of running it via jruby.

rvm use jruby rake deploy:war

that worked just fine.

20 Oct 2012, 19:39
Aaron mcLeod (13 posts)

Running into this as well. I can’t seem to do the jruby suggestion, because with that I get an Net SSH arguments error.