warbler

Why is Rufus scheduling the job twice?

安稳与你 提交于 2020-01-15 09:53:21
问题 Steps to replicate: Create a new Rails project. (rails 3.2.22.5) Add dependencies (warbler, rake, rufus-scheduler) (/Gemfile) JRuby 9.1.7.0 Create new files. (/config/warble.rb) (/web.xml.erb) (/config/intializers/scheduler_rufus.rb) Create an executable war file with jetty webserver. (warble war RAILS_ENV=development) Launch the executable. (java -jar mywar.war) The scheduler runs the job 2 times. /Gemfile: source 'https://rubygems.org' gem 'rails', '3.2.22.5' # Bundle edge Rails instead: #

Why is Rufus scheduling the job twice?

给你一囗甜甜゛ 提交于 2020-01-15 09:52:08
问题 Steps to replicate: Create a new Rails project. (rails 3.2.22.5) Add dependencies (warbler, rake, rufus-scheduler) (/Gemfile) JRuby 9.1.7.0 Create new files. (/config/warble.rb) (/web.xml.erb) (/config/intializers/scheduler_rufus.rb) Create an executable war file with jetty webserver. (warble war RAILS_ENV=development) Launch the executable. (java -jar mywar.war) The scheduler runs the job 2 times. /Gemfile: source 'https://rubygems.org' gem 'rails', '3.2.22.5' # Bundle edge Rails instead: #

Executing rake tasks on an exploded war on tomcat without jruby being installed

陌路散爱 提交于 2019-12-22 12:54:29
问题 My rails project is deployed to tomcat with the help of warbler, but I need to be able to run rake tasks on that server. 回答1: Stay tuned. I hope to have this capability in Warbler 1.4. Jake Goulding, a community member, has been doing some great work on this. Until then, a typical approach would be to ensure all your Rake and database scripts are present in the war file, then just unpack it somewhere, cd to WEB-INF inside the unpacked war, and run something like java -cp lib/jruby-core*.jar

JRuby - Warbler does not preserve symbolic links

♀尐吖头ヾ 提交于 2019-12-22 10:30:32
问题 When packaging the application using warbler, the symbolic links are lost and the actual contents the symlink points to are packaged as part of the WAR. In my case, I have a symlink from public/images/upload to /var/myproject/upload. After I deploy the war in tomcat, in the exploded folder public/images/upload has all the contents of /var/myproject/upload copied to it instead of linking to the folder. UPDATE: My questions is "will warbler retain the symbolic links inside the project when

Warbler not including ActiveSupport locale files

半腔热情 提交于 2019-12-13 01:08:22
问题 I am using Rails 3.1.3, JRuby 1.7.6, and Warbler 1.3.8 Note This was not happening when using JRuby 1.6.7 - but we recently tried to update the JRuby version, and that is when this issue started. We use Warbler to package our ruby on rails application into a WAR file. That process pre-compiles all the assets and everything works fine (seems to work fine, the command is successful) We then deploy the WAR file with our Software (which uses a JRuby environment - 1.7.6 - and uses Jetty as a web

JRuby on Rails app on and JBoss 4.2.0/Tomcat 5.5

醉酒当歌 提交于 2019-12-11 22:05:49
问题 My JRuby on rails app works fine on Tomcat 6.0, But when I deploy it on my company's webfarm which is JBoss 4.2.0/Tomcat 5.5 (Servlet API 2.4) It fails with the following stack trace: java.lang.ArrayIndexOutOfBoundsException: 0 at com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateBufferInvocation(AsmLibraryLoader.java:548) at com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateMethod(AsmLibraryLoader.java:511) at com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl

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. 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? Running java -jar app.war -S rake -T is incredibly slow on Windows (~1min30sec-2min30sec

How to get the path of the jruby/warbler jar file

我只是一个虾纸丫 提交于 2019-12-11 20:12:54
问题 I'm building an application using JRuby and Warbler to package it. My problem is that I want to get the path of the jar file that is currently running, without writing java... 回答1: Does RbConfig::CONFIG["bindir"] have what you want? $ java -cp Development/src/jruby/lib/jruby-complete.jar org.jruby.Main -e 'require "rbconfig"; p RbConfig::CONFIG["bindir"]' "file:/Users/asari/Development/src/jruby/lib/jruby-complete.jar!/META-INF/jruby.home/bin" 来源: https://stackoverflow.com/questions/8743854

Can a Rails plugin be packaged as a WAR/JAR file?

允我心安 提交于 2019-12-11 06:47:16
问题 Can a plugin be packaged as a JAR/WAR file similar to the way in which an entire Rails app can be packaged for deployment on JRuby? 回答1: either you want warbler or you want to make a jar. If you need an empty rails app with that plugin, create an empty project, install the plugin and, edit config/warble.rb to copy the gems you need If you need a jar with class files from that plugin; you need jrubyc to compile the rb files to class files that you can then turn into a jar with the java jar

JAR generated by warbler cannot access included internal JAR library

守給你的承諾、 提交于 2019-12-08 06:19:32
问题 I have a JRuby project that connects to an Oracle database using JDBC via Oracle's ojdbc6.jar library. The code works well when run using JRuby 1.6.6 on Windows 7 and JRuby 1.6.5.1 on OS X Lion. I'm trying to create a standalone JAR file using warbler. After running warble jar it includes the ojdbc6.jar but for some reason it does not load/access it. It seems the internal classpath is incorrect or I'm not configuring something right. Following directory structure exists. C:\my_jruby_project