我正在将Rails 3.2.8应用程序从MRI1.9.3移植到JRuby 1.6.7。
Rails应用程序本身是JRuby友好的,我必须跳过一些圈才能让twitter引导带与JRuby一起工作。我所有的测试都通过了,这个应用程序将在Webrick下运行(通过bundle exec rails server)。
当我试图在米苏诺下运行时,我会得到一个奇怪的错误:
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]谁有智慧之珠?
发布于 2012-09-07 18:11:33
我已经能够让mizuno使用rackup来工作:
bundle exec rackup -s mizunohttps://stackoverflow.com/questions/12311951
复制相似问题