Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Running a warbler generated war: Could not find jruby-openssl-0.9.21-java in any of the sources #486

@akcrono

Description

@akcrono

Bundling and generating war files via bundle exec warble runnable war run fine, but when trying to run a war file generated by warbler via java -jar cdc.war -S rake -T results in the this error:

Bundler::GemNotFound: Could not find jruby-openssl-0.9.21-java in any of the sources
  materialize at /tmp/jruby2323949162897933825extract/gems/gems/bundler-1.17.3/lib/bundler/spec_set.rb:91
         map! at org/jruby/RubyArray.java:2609
  materialize at /tmp/jruby2323949162897933825extract/gems/gems/bundler-1.17.3/lib/bundler/spec_set.rb:85
        specs at /tmp/jruby2323949162897933825extract/gems/gems/bundler-1.17.3/lib/bundler/definition.rb:170
    specs_for at /tmp/jruby2323949162897933825extract/gems/gems/bundler-1.17.3/lib/bundler/definition.rb:237
        setup at /tmp/jruby2323949162897933825extract/gems/gems/bundler-1.17.3/lib/bundler/runtime.rb:20
        setup at /tmp/jruby2323949162897933825extract/gems/gems/bundler-1.17.3/lib/bundler.rb:109

jruby: 9.1.17.0, bundler 1.17.3, warbler 2.0.5

It appears that this is an issue related to bundling default gems and has been present for others (#482 , #472, #376), but there has been no solution that I can find. I attempted to run with bundler 2.1.4, and received the same error for rake-10.5.0 instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions