-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Ruby not loading in vert.x 1.2.1 #304
Comments
I had a similar issue when running vert.x with jython support. I was setting JYTHON_HOME, but it was not finding Jython. I was able to resolve the issue by modifying "conf/vertx.properties" and adding the full path to the Jython library into the "vertx.libs" property. Example: vertx.libs=${vertx.install}/conf,${vertx.install}/lib,${vertx.install}/lib/*.jar,/home/daniel/Development/jython2.5.2/jython.jar Perhaps something similar will work for you and JRuby. |
Thanks @dmikusa, that worked! However now JRuby is in 1.8 mode and not 1.9 mode (which really doesn't make sense because 1.9 should be the default in JRuby 1.7 :S ). |
I noticed this last night when I was looking through the code. When the JRuby interpreter is setup it is configured for specifically for 1.8. See JRubyVerticle.java. Not sure why though. Someone on the Google Group might be able to tell you. |
Yeah there seems to be more activity on the Google Group https://groups.google.com/forum/?fromgroups#!topic/vertx/ujha9Piy8Kc But it seems to have been fixed now as well: vert-x/vert.x@425c2c1 The 1.8 mode really doesn't make sense :S Time to fork... |
I've forked the repo to make sure that my application code wasn't causing any issues and this is what I see:
But if I switch back to 1.1.0...
And if I
curl
from another session, I get<html><body><h1>Hello from vert.x!</h1></body></html>
.From what I've read online, this happens when vert.x can't find JRuby because people haven't set a
JRUBY_HOME
. I have set mine however. My next thought is that it isn't getting passed to vert.x but it is as far as I can tell from thevertx.sh
file.I'll continue to debug and see if I can come up with a fix.
The text was updated successfully, but these errors were encountered: