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
0
votes
1 answer

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

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…
Zhao Li
  • 4,936
  • 8
  • 33
  • 51
0
votes
1 answer

NoMethod Error "join" on JRuby Padrino application on Tomcat 8

This one is really confounding me. I have a web application, written in JRuby, and compiled with Warbler. When I try to host the Warbled file in Tomcat, I constantly get a 500 Internal Server Error for (NoMethodError) undefined method `join' for…
rp.kelly
  • 28
  • 7
0
votes
1 answer

JRuby gem not available, but JRuby can still run the script

I'm making my own log monitor script using ruby, and compiling it with JRuby into a JAR using Warbler. I'm running JRuby 1.7.17 64bit. I'm trying to use the gem optparse, which works with MRI, and JRuby, when I run the script like: monitor_log>]…
FilBot3
  • 3,460
  • 6
  • 33
  • 55
0
votes
1 answer

Error using jRuby, warbler, active-record and oracle

I use warbler to make JAR files from my jRuby project. When i Run my code in jRuby itself like jRuby.exe -S test_jdbc.rb everything works fine. When i warble it up and I have my test_jdbc.jar file i get an error while running the JAR. The code…
peter
  • 41,770
  • 5
  • 64
  • 108
0
votes
1 answer

Ruby on Rails vs Tomcat

I am trying to run my rails app on tomcat. First, I installed warbler through gems and everything's ok! Basically, i added on my gem file: "gem 'warbler'" and then, "bundle install". Ok. After, I went to localhost:8083 (tomcat) >> MANAGER APP >> WAR…
Carlos Novo
  • 139
  • 4
  • 11
0
votes
1 answer

How should jruby-jars and jruby-rack be added to the classpath using warbler?

I've been reading through the warbler source code, and I can't figure out how the jruby-jars and jruby-rack jars are meant to end up on the servlet classpath? It seems warbler is copying them into web-inf/gems/gems//lib/.jar but…
Ben Hogan
  • 149
  • 1
  • 8
0
votes
1 answer

Why do I get a NoSuchMethod error running Warbler?

I'm getting the following error when running warble under both jRuby 1.3 and 1.4. I'm new to warbler, any suggestions what to try next? $ warble war WarblerWar.java:70:in `addEntry': java.lang.NoSuchMethodError: …
Ben Hogan
  • 149
  • 1
  • 8
0
votes
0 answers

JRuby+Rack+Sinatra Application on Openshift

I have created an app using Sinatra (JRuby 1.7.13, Ruby-1.9). The application is rack-based, and using MySQL in backend. I used warbler to make a war file and deployed successfully on my local tomcat. Everyhting works fine ! But when I pushed that…
shuvomiah
  • 410
  • 2
  • 9
0
votes
2 answers

Rails Warbler Deployment

I am doing some testing to determine resource usage of a rails war. I have used Warbler to package the "15-minute Blog" application using Rails 2.3.5 and JRuby 1.4.0. I am deploying into Tomcat 6.0.24 and create multiple deployments by copying the…
Tim Kuntz
  • 11
  • 1
0
votes
1 answer

(Rails, Warbler) Deploying and initializing Rails applications in Glassfish…?

I posted this very same item on SERVERFAULT, but got no reply. So here goes: I'm currently in the process of finishing up a Rails application. I am using Warbler to package it up as a ".war" file and am using GlassFish to deploy it. I do this…
humble_coder
  • 2,777
  • 7
  • 34
  • 46
0
votes
1 answer

JRuby Warbler not creating usable executable JAR files

I've been trying to get a JRuby script that is very simple in nature that requires Net::SSH to perform a task on a remote computer and exit. When I issue the command jruby testssh.rb, the program works flawlessly, however, when I use Warbler to…
FilBot3
  • 3,460
  • 6
  • 33
  • 55
0
votes
2 answers

JRuby - jdbc-postgres no suitable driver found for jdbc:postgresql when running from JAR

I am getting a 'No suitable driver found' error when running my jar generated with warbler. However when I run it as ruby the code succeeds. The command to load the driver returns true, leading me to believe it can still load the driver while in the…
zack
  • 11
  • 3
0
votes
1 answer

Adding custom files to war file

I'm trying to add additional files to a war file (VERSION and REVISION file) using RoR/warbler. The VERSION file would be similar to what capistrano creates so each file would need to be created during the war creation. Does anyone have any…
Ebtoulson
  • 143
  • 7
0
votes
1 answer

how to make warbler compile ruby files with --javac?

I'm using warbler to build a jar out of ruby classes so that it can be run as a interactive application. Now, I want to use that jar as a library in my java application. I've noticed that warbler generated jar contains ruby classes compiled using…
Keyur Shah
  • 81
  • 1
  • 6
0
votes
1 answer

How do I access Ruby classes within a JAR built using Warbler from Java?

The method names in the compiled classes are weird and can not be used or called directly from Java. And as there are dependencies among Ruby files with modules and libraries, I'm not able to invoke methods on those classes directly using…
Keyur Shah
  • 81
  • 1
  • 6