New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing to build warfile with JRuby 9.2.7.0 #451
Comments
I have a couple of version of Bundler installed.
I am able to build the war using |
This guide suggests using binstubs but the default |
I have seen bundler and JRuby don't play well, try to downgrade to JRuby 9.2.6.0 Warbler and JRuby 9.2.6.0 works for me. Look at a related issue: |
Here we go: jruby/jruby#5686 (comment)
As a workaround, we can use |
Not sure if I have the same issue, but when I'm building a project with JRuby and Maven, with 9.2.7.0, the build infinitely hangs. [INFO] Execute:Java13CommandLauncher: Executing '/apps/jdk1.8.0_191/jre/bin/java' with arguments: It hangs here - never to return. at java.io.UnixFileSystem.getLastModifiedTime(Native Method) at java.io.File.lastModified(File.java:943) at org.jruby.util.JarCache$JarIndex.isValid(JarCache.java:108) at org.jruby.util.JarCache.getIndex(JarCache.java:135) - locked <0x00000006c6368638> (a java.util.WeakHashMap) at org.jruby.util.JarResource.createJarResource(JarResource.java:47) at org.jruby.util.JarResource.create(JarResource.java:40) at org.jruby.util.URLResource.addDirectoryEntries(URLResource.java:238) at org.jruby.util.URLResource.addDirectoriesFromClassloader(URLResource.java:227) at org.jruby.util.URLResource.createClassloaderURI(URLResource.java:207) at org.jruby.util.URLResource.create(URLResource.java:264) at org.jruby.util.JRubyFile.createResource(JRubyFile.java:104) at org.jruby.util.JRubyFile.createResource(JRubyFile.java:77) at org.jruby.RubyFileTest.exist(RubyFileTest.java:130) at org.jruby.RubyFileTest.exist_p(RubyFileTest.java:124) at org.jruby.RubyFileTest$INVOKER$s$1$0$exist_p.call(RubyFileTest$INVOKER$s$1$0$exist_p.gen Reverting to 9.2.6.0 fixes the issue. |
I also have Warbler hanging infinitely with JRuby 9.2.7. I got around it by using an earlier version of JRuby too. |
I wrote this to the JRuby mailer with my patch to this. Perhaps it will help some of you. Date: Fri, 7 Jun 2019 15:18:32 -0400 I have recently come into an issue getting my maven build to produce a war file, and the only big change is an upgrade from 9.2.4 to 9.2.7. The file 'gems\warbler-2.0.5\lib\warbler\traits\bundler.rb' has the following method (only top portion shown) that goes into an infinite loop during my maven build. Running via rake war does not exhibit this issue. Look for the text: #LOOP IS INFINITE config.gems.clear allow to add
|
It copy and pasted badly, look here: |
@HarlemSquirrel you may be able to close this if you try 9.2.8. My maven build no longer hangs in warbler, and I don't need the monkey patch I referenced above. |
JRuby 9.2.8.0 worked like a charm to again be able to build my war file with just |
The text was updated successfully, but these errors were encountered: