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

warbler seems to use a different ffi that doesn't understand size_t

FFI understands :size_t when running rails through jRuby, but not after using Warbler to create a .war file and running that using java -jar my_project.war or Tomcat. Linux |…
Chris
  • 43
  • 4
4
votes
1 answer

Deploy jruby project to tomcat in windows platform

I am newbie in the ruby world, after doing some research I can generate a demo rails application and testing on the webrick server But I have encounter the problem when I start to deploy with tomcat I use warbler to generate war file for deployment…
Hang
  • 43
  • 4
3
votes
2 answers

warbler Gemfile path option not supported

Is there a recommended workaround for warbler not supporting the path options in a Gemfile? Is there a fundamental reason why path is not supported (and I couldn't just implement it)?
Greg Weber
  • 3,228
  • 4
  • 21
  • 22
3
votes
1 answer

Double pound (##) in path name doesn't work with JRuby 'require'?

So, I'm attempting to deploy my JRuby on Rails app to Tomcat 7. Everything works fine. Until I tried using Tomcat's Parallel Deployment feature, which requires that the context/war name be of the form name##VERSION.war. JRuby chokes on this the…
levand
  • 8,440
  • 3
  • 41
  • 54
3
votes
1 answer

rbenv, JRuby, Warble, Rake

I have JRuby web app which is running in a Tomcat server on the deployment box. I used Warble to pack it up into a WAR file, and deploy on a server on which I also have JRuby installed. I run rbenv and JRuby 1.6.4 on both the development box and…
Jay Godse
  • 15,163
  • 16
  • 84
  • 131
3
votes
2 answers

JRuby: Warbler: Tomcat: Rails helpers not getting base URL with WAR extension suffix

I'm deploying a JRuby/Rails app packed up into "abc.war", and it is deployed with a Java app packed up into "def.war" in the same Tomcat instance. I have a resource in my Rails application called "Blogs", with the following entry in…
Jay Godse
  • 15,163
  • 16
  • 84
  • 131
3
votes
1 answer

Why is the db directory not included in JRuby WAR when using Warbler?

I've created a simple 'hello' type JRuby application and use Warbler to WAR up and then deploy to JBoss. However, I get the following error when using the application: ActiveRecord::JDBCError (The driver encountered an unknown error:…
ryan
  • 5,039
  • 13
  • 35
  • 42
3
votes
2 answers

JRuby - Warbler does not preserve symbolic links

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…
dexter
  • 13,365
  • 5
  • 39
  • 56
3
votes
3 answers

How to add META-INF/context.xml in Warbler

How can I add META-INF/context.xml into the war? I didn't find any config entry in config/warble.rb.
Bewang
  • 453
  • 3
  • 18
3
votes
1 answer

Running jruby application with Elastic Search gem.

I'm trying to generate a compiled application of the Rails project using jruby and host it on Tomcat server. I'm struggling to establish the connection with elasticsearch after compiling. Following are the steps I've taken: Installed…
Harish
  • 131
  • 2
  • 8
3
votes
2 answers

jRuby and Problems with Warbler, RVM, and Tomcat

I've been having a tough time getting jRuby on Rails 3 deployed on Tomcat 6. I got it to work exactly once. I modified my database.yaml and Gemfile to check for jRuby, something like this: if defined?(JRUBY_VERSION) gem 'jdbc-mysql' #gem…
Dex
  • 12,527
  • 15
  • 69
  • 90
3
votes
2 answers

Jboss, setting environment variables for application

I've been setting up my rails application to run under jruby/warbler inside a java container (JBoss/wildfly). I'm used to running my rails apps on linux machines, more or less with init.d scripts and the like, and I've been using DATABASE_URL to set…
Beau Trepp
  • 2,610
  • 4
  • 22
  • 30
3
votes
1 answer

How to get Nokogiri to work with Warbler/JRuby

I'm trying to get a stand-alone jar file of a Ruby application that uses Nokogiri. I have a Gemfile that looks like this: source :rubygems gem 'nokogiri' and in bin/jartest.rb I have this: require 'rubygems' require 'nokogiri' puts "Hello…
3
votes
1 answer

Can I use JRuby on Rails and Java Servlet in a same project?

My project requires both Rails and Java for special scaling ability. We firstly started a pure JRuby on Rails project, and deploy it to Tomcat. The problem is our Tomcat server has a very limited resource with only 20-30 threads. It means that our…
Blue Smith
  • 8,580
  • 2
  • 28
  • 33
3
votes
1 answer

using asset pipeline and public/images with jruby & warbler

I'm doing some work on a RoR application that gets deployed as a war file using warbler. Prior to my involvement, the few images in the app were in the asset pipeline, but my role is to introduce slippy maps and homegrown map tiles. Because the…
Eric Theise
  • 185
  • 8
1
2
3
12 13