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

How to run warbler (jruby on rails) on different port rather than 8080

I created a war file named my_sample.war and run java -jar my_sample.war . It runs at port 8080 as default value. What do I do to change it to port 3000. Thanks!
Samuel
  • 803
  • 8
  • 17
0
votes
1 answer

jruby trouble with warbler aborted

I'm a beginner in jruby. I have a Ruby Rails app - which I run with rials s to run. Now I want to create war-warbler with a WAR-file, but I get an error with which I can do nothing: double loading…
Ha_Sch
  • 1
  • 5
0
votes
1 answer

JBoss based rails application cant find activerecord-jdbcmysql-adapter

I have a rails application deployed to jboss as a war packaged using warbler. The application has been working great for a while now. I am looking to change the rails application so that rails, all gems and their dependencies are vendor'd. To that…
user448157
  • 97
  • 6
0
votes
1 answer

JRuby Warbler - How to compile gems also

I know warble compiled, but this command compiles only the source of a project. I want that warbler compiles gems together. How to do it?
0
votes
1 answer

How do you upgrade rubygems from a war file?

I'm working with an older system, (jruby 1.6.8, rails 2.3.5, tomcat 7, centos 7, java 1.7), and I need to downgrade rubygems from 1.8.24 to 1.4.2. I don't know java/jruby well enough to know how exactly to do this. My development environment I was…
Rudecles
  • 199
  • 3
  • 13
0
votes
2 answers

JRuby on Rails app on and JBoss 4.2.0/Tomcat 5.5

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…
arkadiy kraportov
  • 3,679
  • 4
  • 33
  • 42
0
votes
1 answer

jruby rails 3 and warbler

I am trying to make a deployment war. I have the jdbc-mysql, activerecord-jdbcmysql-adapter and warbler gems installed. I have edited config/database.yml and changed the adapter to jdbcmysql... but I can not even run warble config without getting…
intargc
  • 3,051
  • 5
  • 36
  • 52
0
votes
1 answer

Jruby 1.6.8 tomcat deployment issue (org.jruby.rack.rails.RailsServletContextListener)

I'm trying to deploy a JoR application with a war file built using warbler-0.9.14 to Tomcat 7. However when I try and start the app, I get the following error Jul 09, 2016 3:48:13 PM org.apache.catalina.core.StandardContext listenerStop SEVERE:…
Rudecles
  • 199
  • 3
  • 13
0
votes
1 answer

How to run rake tasks with warbler with -cp option

I have a jruby app that is being packaged into a war file. I am trying to run a rake task from my app. I know warbler gives a -S option to run rake tasks. When I run the following command, everything runs fine: java -jar /path/to/war/file/app.war -S…
streetsoldier
  • 1,259
  • 1
  • 14
  • 32
0
votes
1 answer

jruby regex different on windows from os x?

i've got a jruby regex that i'm printing in rails: @@private = /somethingthatshouldnevermatch/ def secure? puts "security test(#{action_name}/#{@@private}: #{@@private.match(action_name).nil?.to_s}" action_name =~ @@private end on os x, using…
kolosy
  • 3,029
  • 3
  • 29
  • 48
0
votes
1 answer

How to set source and target java release in Warlber

I'm wonder if there is a way in the warble.rb config to set what source and target versions of java to build with? It seems like it just uses what ever jdk is active at the time. I can do this with java and jruby via the following commands but I…
cphelps
  • 83
  • 6
0
votes
1 answer

How to pass JRUBY_OPTS to JRuby war/jar packed with Warbler?

I cannot figure out how to profile JRuby On Rails application within Tomcat. Actually, I don't know how to pass --profile option to JRuby when ruby code ran not by jruby command, but from java. To investigate the issue I created file: $ cat…
Alexey
  • 9,197
  • 5
  • 64
  • 76
0
votes
1 answer

JRuby warbler "compiled" command produces ClassCastException in Tomcat

I'm using warbler to package my JRuby web app into a war file and am deploying it to Apache Tomcat 8.0.21. This works well. However, I'm trying to run warbler using the "compiled" command instead: warble compiled war When I deploy the resulting war…
Dhruv Gairola
  • 9,102
  • 5
  • 39
  • 43
0
votes
1 answer

LoadError when executing compiled Rails Warbler JAR file

When I warble my project with the compiled command I get the following error when running it (java -jar mywar.war -S rails s): ERROR: org.jruby.exceptions.RaiseException: (LoadError) use 'java_import' to load normal Java classes: config.boot I'm…
dave
  • 1,127
  • 2
  • 10
  • 26
0
votes
1 answer

Deploy compiled Rails app to Java server on Heroku

What are the steps I need to take to deploy my compiled jruby rails application(with warbler gem) to heroku Java servers? I don't know Java so I hope you can help with the actions I need to take. For example, how I deal with the database connection?…
Virgil
  • 1
  • 1