Questions tagged [warbler]

Warbler is a gem to make a Java jar or war file out of any Ruby, Rails, Merb, or Rack application.

The library provides a minimal, flexible, Ruby-like way to bundle up all of your application files for deployment to a Java environment. It is provided under the terms of the MIT license.

188 questions
9
votes
1 answer

How to stop RVM interfering with JRuby

I have used Warbler to create a Jar file from my Ruby source. I also have RVM installed. The behaviour of the jar differs depending on which Ruby version RVM is using: if I rvm use jruby then the jar works normally, but if I rvm use 2.2 then running…
fblundun
  • 987
  • 7
  • 19
8
votes
2 answers

Non-web application with JRuby Warbler

How can I compile a JRuby app using Warbler that isn't on the web at all? This is always what happens when I try: $ warble warble aborted! No executable script found Tasks: TOP => jar:files (See full trace by running task with --trace) I must be…
Jwosty
  • 3,497
  • 2
  • 22
  • 50
7
votes
1 answer

JRuby / Warbler results in no such file to load -- bundler/dep_proxy

I have a large rails app converted successfully to use JRuby and it runs locally without any issues bundle exec rails s -b 0.0.0.0. I'm now trying to create a deployable WAR file using the following: bundle exec warble executable war This completes…
ghstcode
  • 2,902
  • 1
  • 20
  • 30
7
votes
1 answer

warbler config and jruby version

I just installed jruby-1.4.0 to play around with it. I'm noticing however that warbler is packaging this by default with my rails deploy. My production uses jruby-complete-1.3.1 (which I've added to my lib dir to freeze the version) but warbler is…
brad
  • 31,987
  • 28
  • 102
  • 155
6
votes
2 answers

Warbler - no such file to load zip/zip

I am trying to create a war file from my Rails Project using Warbler. This is my Gemfile: source 'https://rubygems.org' ruby '1.9.3', :engine => 'jruby', :engine_version => '1.7.4' # Bundle edge Rails instead: gem 'rails', github:…
Steve Robinson
  • 3,759
  • 3
  • 36
  • 57
6
votes
1 answer

How do I use Ruby classes packaged using warbler as a jar in Java code?

I've a ruby application which I compiled into a jar using warbler. I'm able to run it as a standalone using a command like java -jar executable.jar. But I'm unable to figure out how I'd use this jar in Java code. Specifically, I want to create…
arrac
  • 597
  • 1
  • 5
  • 15
6
votes
0 answers

JRuby + Warbler: jar file blows up whenever the bson gem is required

I think I may have found a bug in Warbler, but I wanted to post this here as a question in case there's something I'm doing wrong. In a nutshell, any attempt to take a jruby app that requires the 'bson' gem an package it into a .jar file with…
Jon Stokes
  • 213
  • 2
  • 7
5
votes
1 answer

In rails3/jruby, what could cause this error intermittently? SAVEPOINT active_record_1 does not exist

These errors do not occur when a single individual tests the system. But with a jmeter test, I can pretty reliably reproduce a few errors along the lines of: ActiveRecord::JDBCError: SAVEPOINT active_record_1 does not exist: ROLLBACK TO SAVEPOINT…
5
votes
1 answer

Where to put the sqlite3-database when deploying a JRuby-On-Rails App as a war?

Background: I want to deploy a small JRuby-On-Rails-Application using warblers executable war, so I can just drop the .war-file and everyone can run it with java -jar app.war. The application uses sqlite3 to store some data, and the…
Jan
  • 1,445
  • 1
  • 16
  • 20
5
votes
2 answers

Where are the logs for a Rails app packed using Warbler?

I'm using Warbler to pack a Rails application into a WAR. I've deployed it to a JBoss server and it seems to works. However, I'm getting the classic 500 error on Rails saying "We're sorry, but something went wrong.". Usually, I'd take a look at…
4
votes
1 answer

Create an executable jar using sinatra, warbler and jruby-openssl

I am trying to create a simple executable war file using sinatra and warble. I have a simple lib/app.rb file with: require 'rubygems' require 'sinatra' class Hiwar < Sinatra::Application get '/' do body "Hi!" end end a config.ru file…
Labra
  • 1,412
  • 1
  • 13
  • 33
4
votes
1 answer

Using JRuby Warbler, is it possible to generate a WAR that can learn its RAILS_ENV from an environment variable?

Warbler wants you to specify a RAILS_ENV when creating the WAR. This is then put inside the web.xml of the generated WAR. However, if you could create a wAR that learned its RAILS_ENV from the environment, you could create one WAR that could be…
David W
  • 324
  • 1
  • 13
4
votes
2 answers

Packaging local ruby gems using Bundler?

I have a project that I'm working on that uses a gem we've created internally. It's not hosted on rubygems.org or github. But we do have it in our repository and in a path on our local machine. In our Gemfile, we have something similar to…
Kenton Newby
  • 921
  • 5
  • 6
4
votes
2 answers

Getting Sinatra to work with JRuby and Warbler

I'm using the following config/warble.rb in my hello-world-style application: Warbler::Config.new do |config| config.dirs = %w(app config tmp gems views) config.includes = FileList["hello.rb"] config.gems = ["sinatra"] …
Matthias Hryniszak
  • 3,099
  • 3
  • 36
  • 51
4
votes
2 answers

Running Rake Tasks under Tomcat and JRuby

We've got our Rails (2.2.2) application running on a Tomcat7 server using warbler (1.2.1) and JRuby (1.5.6), but since we want to simplify deployment to multiple machines, we want to run the rake tasks, like db:migrate, under the tomcat WEB-INF…
Glenn
  • 5,334
  • 4
  • 28
  • 31
1
2 3
12 13