【发布时间】:2012-09-07 04:57:22
【问题描述】:
我正在将 Ruby on Rails 3.2.8 应用程序从 MRI 1.9.3 移植到 JRuby 1.6.7
Rails 应用程序本身是 JRuby 友好的,我确实需要跳过一些障碍才能让 twitter-bootstrap 与 JRuby 一起工作。我的所有测试都通过了,应用程序将在 Webrick 下运行(通过 bundle exec rails server)。
当我尝试在mizuno 下运行时,我收到了这个奇怪的错误:
bundle exec mizuno -d
java.lang.ClassNotFoundException: Jruby-opensslService
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at org.jruby.util.JRubyClassLoader.findClass(JRubyClassLoader.java:86)
<a few thousands more lines>
(如果您认为 Java 不好,JRuby 真的知道如何吐出一些堆栈。)
我相信你的想法和我一样,但 Gemfile 确实包含 jruby-openssl:
bundle list | grep openssl
* jruby-openssl (0.7.7)
我的 JRuby 运行时,没有使用 JRUBY_OPTS:
jruby -v
jruby 1.6.7.2 (ruby-1.9.2-p312) (2012-05-01 26e08ba) (OpenJDK 64-Bit Server VM 1.7.0_03) [linux-amd64-java]
有智慧的人吗?
【问题讨论】:
标签: ruby-on-rails-3 jruby