简体   繁体   English

将Rails项目上的jruby部署到jboss时出错

[英]Error in deployment of jruby on rails project to jboss

I am getting an Internal Server Error (500) when deploying jruby on rails on jboss. 在jboss的导轨上部署jruby时出现内部服务器错误(500)。 I have created a war file copy it into the /standalone/deployments folder. 我创建了一个war文件,将其复制到/ standalone / deployments文件夹中。 It was deployed successfully but when I ran it on myip:8080/untitled3/ it throws an error. 它已成功部署,但是当我在myip:8080 / untitled3 /上运行它时,抛出了错误。

Following is the message: 以下是消息:

       exit from org/jruby/RubyKernel.java:877:in `exit' from org/jruby/RubyKernel.java:840:in `exit' from /usr/local/share/jboss/standalone/tmp/vfs/tempc74de2204c8bbfcb/untitled3.war-a2aee82210e177c/WEB-INF/gems/gems/bundler-1.7.0/lib/bundler/setup.rb:14:in `(root)' from org/jruby/RubyKernel.java:1065:in `require' from classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1:in `(root)' from classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:135:in `require' from org/jruby/RubyKernel.java:1065:in `require' from /usr/local/share/jboss/standalone/tmp/vfs/tempc74de2204c8bbfcb/untitled3.war-a2aee82210e177c/WEB-INF/config/boot.rb:4:in `(root)' from classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1:in `(root)' from classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require' from classpath:/jruby/rack/rails/environment3.rb:23:in `load_environment' 

Does anyone have idea as to why i am getting this error? 有谁知道为什么我会收到此错误?

as the trace suggests ... the Rails boot Bundler.require line is failing and than exit-ing. 正如跟踪所暗示的那样……Rails引导Bundler.require行失败,然后退出。 that is likely caused by some gems not being bundled right in the .war (try to reproduce with an empty app and the same Gemfile ... if there's no local gem :path references it would be worth reporting) 这很可能是由于某些宝石未在.war中正确捆绑造成的(尝试使用空的应用和相同的Gemfile进行复制 ...如果没有本地gem:path引用,则值得报告)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM