尝试将测试轨道应用程序部署到 Torquebox,不断出现机架错误
因此,我一直在关注此处找到的 Torquebox 文档:
http://torquebox.org/documentation/ 1.0.0/
我让 JBOSS 的东西正常工作,并为其部署了一个测试 Rails 应用程序(空)。我成功地点击了默认的“Welcome Aboard”rails 页面。
但是,如果我尝试使用以下命令快速搭建一些测试代码:
rails gscaffold Demo
,然后尝试点击 /demos,我会收到一个巨大的错误。
javax.servlet.ServletException: org.jruby.exceptions.RaiseException: (SystemExit) exit
org.torquebox.rack.core.servlet.RackFilter.doRack(RackFilter.java:118)
org.torquebox.rack.core.servlet.RackFilter.doFilter(RackFilter.java:103)
org.torquebox.rack.core.servlet.RackFilter.doFilter(RackFilter.java:75)
当我查看 JBOSS/Torquebox 日志时,我看到:
10:40:32,367 INFO [STDOUT] 在任何源中都找不到rack-1.2.1 10:40:32,368 错误 [org.torquebox.rack.core.servlet.RackFilter] 调用机架过滤器时出错:org.jruby.exceptions.RaiseException:(SystemExit) 退出
我有点困惑。如果我只是正常部署我的rails应用程序,使用rails,一切都会正常工作。
这是我记得做的事情:
- 确认我已经从二进制文件安装了 Java 6
- Torquebox 设置
- 我所有的路径/系统变量
- 运行 JBOSS 服务器
- 使用我的 Rakefile 中提供的所需“torquebox-rake-support”模板命令创建了我的 Rails 应用程序
- (必需)我要安装一些 gem,因为我在 RVM 上)
- rake Torquebox:deploy 进行部署。
正如我所说,我可以看到启动欢迎页面,但似乎没有任何路线可用。
有人知道我做错了什么吗?
So, I've been following the documentation for Torquebox found here:
http://torquebox.org/documentation/1.0.0/
I have the JBOSS stuff working, and deployed a test rails app (empty) to it. I successfully hit the default "Welcome Aboard" rails page.
However, if I try to quickly scaffold out some test code with:
rails g scaffold Demo
and then try to hit /demos, I get a huge error.
javax.servlet.ServletException: org.jruby.exceptions.RaiseException: (SystemExit) exit
org.torquebox.rack.core.servlet.RackFilter.doRack(RackFilter.java:118)
org.torquebox.rack.core.servlet.RackFilter.doFilter(RackFilter.java:103)
org.torquebox.rack.core.servlet.RackFilter.doFilter(RackFilter.java:75)
And when I look at the JBOSS/Torquebox logs, I see:
10:40:32,367 INFO [STDOUT] Could not find rack-1.2.1 in any of the sources
10:40:32,368 ERROR [org.torquebox.rack.core.servlet.RackFilter] Error invoking Rack filter: org.jruby.exceptions.RaiseException: (SystemExit) exit
I'm a little confused. If I just deploy my rails app normally, with rails s, everything works just fine.
Here is what I remember doing:
- confirmed I have over Java 6
- installed Torquebox from binaries
- set all my path/system variables
- ran the JBOSS server
- created my rails app using the template command provided
- required 'torquebox-rake-support' in my Rakefile (required me to install some gems, as I'm on RVM)
- rake torquebox:deploy to deploy.
I can see the splash welcome page, like I said, but no routes seem to work.
Anybody have an idea what I'm doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想我明白了。我正在使用rvm,但忘记在rvm下启动jboss服务器。由于它是使用默认的 jruby 启动的,因此它没有捆绑安装程序来为其提供机架等。
顺便说一句,我还尝试在包含的 jruby 下运行所有内容,但在安装 Rails gem 时遇到了问题。原来是最新版本的arel有问题?在较低版本上单独(并且首先)安装它效果很好。
I think I got it. I was using rvm, but forgot to start up the jboss server under rvm. Since it was started using the default jruby included, it didn't have the bundle installer to give it rack, and the like.
As an aside, I also tried running everything under the included jruby, and had problems getting the rails gem to install. Turns out it was a problem with the latest version of arel? Installing it separately (and first) at a lower version worked fine.