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

Skip to content

Issue deploying to tomcat with jruby-9.1.0.0. Cant find json-1.8.3-java #3850

@rsov

Description

@rsov

Environment

jruby 9.1.0.0 (2.3.0) 2016-05-02 a633c63 Java HotSpot(TM) 64-Bit Server VM 25.91-b14 on 1.8.0_91-b14 +jit [linux-x86_64]

Ubuntu 14.04.04

java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.14.04.2)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)

Expected Behavior

Create a war file that runs on tomcat6

Actual Behavior

After updating to jruby-9.1.0.0 we got this exception on boot
Specifically adding json-1.8.3 with platform :jruby into gemfile did not work as well

Could not find json-1.8.3-java in any of the sources 
from /var/lib/tomcat6/webapps/secure/WEB-INF/gems/gems/bundler-1.12.1/lib/bundler/spec_set.rb:95:in `block in materialize' 
from org/jruby/RubyArray.java:2332:in `map!' 
from /var/lib/tomcat6/webapps/secure/WEB-INF/gems/gems/bundler-1.12.1/lib/bundler/spec_set.rb:88:in `materialize' 
from /var/lib/tomcat6/webapps/secure/WEB-INF/gems/gems/bundler-1.12.1/lib/bundler/definition.rb:140:in `specs' 
from /var/lib/tomcat6/webapps/secure/WEB-INF/gems/gems/bundler-1.12.1/lib/bundler/definition.rb:185:in `specs_for' 
from /var/lib/tomcat6/webapps/secure/WEB-INF/gems/gems/bundler-1.12.1/lib/bundler/definition.rb:174:in `requested_specs' 
from /var/lib/tomcat6/webapps/secure/WEB-INF/gems/gems/bundler-1.12.1/lib/bundler/environment.rb:19:in `requested_specs' 
from /var/lib/tomcat6/webapps/secure/WEB-INF/gems/gems/bundler-1.12.1/lib/bundler/runtime.rb:14:in `setup' 
from /var/lib/tomcat6/webapps/secure/WEB-INF/gems/gems/bundler-1.12.1/lib/bundler.rb:95:in `setup' 
from /var/lib/tomcat6/webapps/secure/WEB-INF/gems/gems/bundler-1.12.1/lib/bundler/setup.rb:19:in `<top>' 
from org/jruby/RubyKernel.java:937:in `require' 
from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in `(root)' 
from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:128:in `<top>' 
from org/jruby/RubyKernel.java:937:in `require' 
from /var/lib/tomcat6/webapps/secure/WEB-INF/config/boot.rb:6:in `(root)' 
from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in `(root)' 
from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54:in `require' 
from uri:classloader:/jruby/rack/rails/environment3.rb:23:in `<top>'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions