JRuby on Rails is a term to describe a Ruby On Rails application running on JRuby.
Questions tagged [jrubyonrails]
367 questions
6
votes
1 answer
Where to start for Jruby on rails?
Any tutorials or blog are available to start with JRuby on Rails
which guide me to the installation and small JRuby on Rails application ?
I have gone through this Walkthroughs And…

krunal shah
- 16,089
- 25
- 97
- 143
6
votes
1 answer
Getting access to Object#try
I am trying to obtain access to Object#try in ruby.
I thought that just including activesupport would do the trick, but it doesn't.
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'active_support'
=> true
irb(main):003:0> o =…

rmk
- 4,395
- 3
- 27
- 32
6
votes
1 answer
JRuby on Rails: Using custom Java classes in your Rails app
I just started with JRuby on Rails and absolutely love it. I know how to use current classes within the Java API in my Rails app, but if I wanted to create a new custom class written in purely Java code, how would I be able to use it in my Rails…

Joel Andritsch
- 443
- 4
- 12
6
votes
4 answers
Track down PermGen problem with JRuby on Rails in Tomcat
We're running a small web application written JRuby on Rails running under Tomcat. We're using a Spring back-end that's shared with another production web application. Unfortunately, we keep running into PermGen problems.
OS: Ubuntu Linux…

organicveggie
- 559
- 5
- 22
6
votes
2 answers
Myapp::Application::Railties constant missing with Rails 4 beta and Jruby jruby-1.7.2
I couldn't get jruby to work with Rails 4 without a hack:
In railties/lib/rails/engine.rb, I had to initialize Railties with const_get, otherwise
def railties
@railties ||= self.class.const_get(:Railties).new
# @railties ||=…

Michael Schmitz
- 61
- 2
6
votes
1 answer
No of consumers getting reduced as time is passed in Torquebox
I have a rails app which is on torquebox. I am using processors to some background jobs. I have alloted 4 workers to that processor.
queues:
/queue/company:
messaging:
/queue/company:
CompanyWorker:
concurrency: 4
The CompanyWorker…

yatish mehta
- 905
- 1
- 10
- 25
5
votes
0 answers
How to exclude module but include class of that module in RDoc
Running RDoc doesn't make sense for some modules that are blank. For example:
class moduleName::className < ActiveRecord::Base
def foo
end
def bar
end
end
RDoc produces report:
moduleName -> blank HTML
moduleName::className -> complete…

Jackie Chan
- 2,654
- 6
- 35
- 70
5
votes
3 answers
How to deploy JRuby Rails 3.1.x on Heroku?
I want to be able to deply a jruby rails 3.1 app to Heroku.
Heroku now suports Java: http://blog.heroku.com/archives/2011/08/25/java/
Supposedly, it should be possible to deploy a JRuby rails application.
There's a tutorial here for plain java:…

justingordon
- 12,553
- 12
- 72
- 116
5
votes
1 answer
How do I correctly add to the CLASSPATH in a JRuby on Rails project?
I've added some external jars to my CLASSPATH by adding this in config/application.rb:
require 'java'
$CLASSPATH << "#{File.dirname(__FILE__)}/../backend/src/"
Dir["#{File.dirname(__FILE__)}/../backend/lib/*.jar"].each do |jar|
require…

Paul Biggar
- 27,579
- 21
- 99
- 152
5
votes
3 answers
Combining a clojure app with a Ruby on Rails app
I have a Clojure back-end that I want to put a Rails front-end to. How should I connect them, and how specifically do I do it?
Off the top of my head, there are two ways:
run Jruby on rails, in the same process as the clojure app
run normal Ruby on…

Paul Biggar
- 27,579
- 21
- 99
- 152
5
votes
2 answers
Make JRuby inherit Java proxy settings
I would like to make HTTP requests from Rails code running on top of JRuby.
How can I make it to re-use http.proxyHost, http.proxyPort and http.nonProxyHosts settings, given to JVM running it ?

Dmitry Khalatov
- 4,313
- 3
- 33
- 39
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
3 answers
Is there a delayed_job like gem for jruby?
I'm trying to convert a rails app to jruby on rails. Currently, jruby script/delayed_job run
gives:
/usr/lib/jruby/lib/ruby/gems/1.8/gems/delayed_job-2.0.3/lib/delayed/command.rb:50:in `each_object': ObjectSpace is disabled; each_object will only…

James
- 5,273
- 10
- 51
- 76
5
votes
0 answers
JRuby 9k is not working with Puma and torquebox 4
My application is running perfectly fine with jruby-1.7.12 with puma and torquebox 4.
And I am trying latest jruby-graal(9k) with puma and torquebox 4.
But my server is not getting started with jruby-graal. This is where it's getting…

krunal shah
- 16,089
- 25
- 97
- 143
5
votes
2 answers
Why is memory never released in my Tomcat JRuby application?
I have a JRuby on Rails application which is running inside Tomcat (Warble). It uses a Java bridge to connect to a Progress(OpenEdge) application server... When I monitor the memory, it only keeps going up.
Tomcat 7.0
JRuby 1.6.7.2…

Lieven Cardoen
- 25,140
- 52
- 153
- 244