使用Warbler打包在Tomcat7上部署jRuby on Rails 3.2的技巧 [英] Gotchas for deploying jRuby on Rails 3.2 on Tomcat7 packaged with Warbler

查看:99
本文介绍了使用Warbler打包在Tomcat7上部署jRuby on Rails 3.2的技巧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试使用Warbler(warble executable war)在Tomcat7上部署jRuby on Rails(3.2)应用程序时遇到一些奇怪的行为.并想了解它们是否正常,或者我只是在做一些新手错误.

I'm experiencing some weird behaviours trying to deploying a jRuby on Rails (3.2) app on Tomcat7 using Warbler (warble executable war). And wanted to find out if they are normal or am I just doing some newbie mistake.

  1. 当WAR文件爆炸时,该应用程序可以很好地部署,但是尝试仅从WAR文件进行部署时存在加载问题.哪种类型的典型"新手错误通常会导致这种情况?

  1. The app deploys fine when the WAR file is exploded, but there are loading issues when trying to deploy from just the WAR file. What type of "typical" newbie mistakes generally causes this?

在Windows上运行java -jar app.war -S rake -T的速度非常慢(〜1min30sec-2min30sec),但是在Linux上运行的很好(〜10-15sec).这是正常现象吗?

Running java -jar app.war -S rake -T is incredibly slow on Windows (~1min30sec-2min30sec), but on Linux it is fine (~10-15sec). Is this a normal?

推荐答案

在研究之前和之后,我曾经遇到过加载问题,
我变了

I used to have loading issues before and after some research,
I've changed

securerandom.source = file:/dev/urandom与securerandom.source = file:/dev/./urandom

securerandom.source=file:/dev/urandom with securerandom.source=file:/dev/./urandom

在$ JAVA_PATH/jre/lib/security/java.security文件中,并在合理的时间内加载.

in $JAVA_PATH/jre/lib/security/java.security file and it load within a reasoanble time.

希望这会有所帮助.

这篇关于使用Warbler打包在Tomcat7上部署jRuby on Rails 3.2的技巧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆