Gotchas for deploying jRuby on Rails 3.2 on Tomcat7 packaged with Warbler

社会主义新天地 提交于 2019-12-11 21:08:49

问题


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. 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?

  2. 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?


回答1:


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

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

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

Hope this would help.



来源:https://stackoverflow.com/questions/29355565/gotchas-for-deploying-jruby-on-rails-3-2-on-tomcat7-packaged-with-warbler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!