Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

ml jar broken with jruby >= 9 #659

Open
simonepstein opened this issue Sep 9, 2016 · 2 comments
Open

ml jar broken with jruby >= 9 #659

simonepstein opened this issue Sep 9, 2016 · 2 comments

Comments

@simonepstein
Copy link

simonepstein commented Sep 9, 2016

If I build the jar having installed a warbler version >= 2 I get the following error when running local deploy

java -jar roxy.jar local bootstrap
LoadError: no such file to load -- app_specific
  require at org/jruby/RubyKernel.java:956
  require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
   <main> at uri:classloader:/roxy/bin/roxy.rb:39
     load at org/jruby/RubyKernel.java:974
   <main> at uri:classloader:/META-INF/main.rb:1
  require at org/jruby/RubyKernel.java:956
   (root) at uri:classloader:/META-INF/main.rb:1
   <main> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
ERROR: org.jruby.embed.EvalFailedException: (LoadError) no such file to load -- app_specific

gem dependency warbler

Gem warbler-2.0.0
  jbundler (~> 0.9, development)
  jruby-jars (>= 9.0.0.0)
  jruby-rack (< 1.3, >= 1.1.1)
  rake (>= 10.1.0)
  rdoc (>= 2.4.2, development)
  rspec (~> 2.10, development)
  rubyzip (< 1.4, ~> 1.0

It works fine with a earlier warbler version which targets jruby <=2 (jruby 1.7.26).

gem dependency warbler

Gem warbler-1.4.9
  jbundler (~> 0.5.5, development)
  jruby-jars (< 2.0, >= 1.5.6)
  jruby-rack (< 1.3, >= 1.1.1)
  rake (>= 0.9.6)
  rdoc (>= 2.4.2, development)
  rspec (~> 2.10, development)
  ruby-maven (~> 3.1.1.0, development)
  rubyzip (< 1.2, >= 0.9)
@grtjn
Copy link
Contributor

grtjn commented Sep 22, 2016

Related to #579..

@grtjn
Copy link
Contributor

grtjn commented Sep 22, 2016

Thanks for the report. Installing warbler with gem install warbler -v 1.4.9 works best indeed. This line can also be commented out. No need to run with jruby, it comes with warbler:

https://github.com/marklogic/roxy/blob/master/deploy/lib/server_config.rb#L147

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants