JRuby on Rails is a term to describe a Ruby On Rails application running on JRuby.
Questions tagged [jrubyonrails]
367 questions
3
votes
1 answer
gem install bouncy-castle-java for full support
I am getting this warning message on the deployment server, when I start the server or running the console.
OpenSSL ASN1/PKey/X509/Netscape/PKCS7 implementation unavailable
gem install bouncy-castle-java for full support.
Also, When I try to…

Abibullah Rahamathulah
- 2,785
- 22
- 27
3
votes
5 answers
Is JRuby a viable alternative to the MRI for Rails development?
I am a beginner-verging-on-intermediate rails developer that is working hard to improve my skills.
I am a little confused about the state of JRuby, and whether it is a viable alternative to switch to from the MRI.
Currently I run a Mac at home and…

pakeha
- 2,480
- 3
- 22
- 24
3
votes
0 answers
Can't dup TrueClass when precompiling ejs assets in JRuby
When running rake assets:precompile in JRuby I'm getting the following backtrace:
can't dup TrueClass
(in C:/tripwire/app/assets/templates/alert_histories/index.jst.ejs.slim)
org/jruby/RubyKernel.java:1908:in `dup'
org/jruby/RubyArray.java:1613:in…

mockaroodev
- 2,031
- 1
- 20
- 24
3
votes
2 answers
What is the way to add jar dependencies to a JRuby on rails app in heroku?
I'm a JRuby newbie and I'm trying to deploy in Heroku following these steps:
https://devcenter.heroku.com/articles/moving-an-existing-rails-app-to-run-on-jruby
But I can't figure out the way to add jar dependencies. I'm using JFreeChart jars and one…

user1905456
- 41
- 3
3
votes
1 answer
Resque: Exceptions & stack traces
I have a JRuby/Rails application comprising a web server to process HTTP requests, a MySQL database, and a Resque worker to process enqueued jobs. When I'm in development mode and something in the web application throws an exception, I get a nice…

Jay Godse
- 15,163
- 16
- 84
- 131
3
votes
0 answers
cassandra - multitenancy : trying to create 4000 keyspaces, fails at 700
Environment: Jruby, Rails 2.3.8, cassandra-gem, cassandra 1.1
We are creating a new keyspace per tenant in our cassandra backed multi-tenant application. While testing we found Cassandra fail
at 400 keyspaces on a 8GB RAM machine, 7200 RPM disk
at…

so_mv
- 3,939
- 5
- 29
- 40
3
votes
1 answer
Creating new rails project with jruby in 1.9 compatibility mode hangs when running bundle install
Anyone encountered this problem? I am able to create the project fine in 1.8 compatibility mode.
Here is what I am using
Mac OSX Lion
JRuby 1.6.4
Java 1.6.0_31
rvm 1.8.1
I am running the following command
JRUBY_OPTS=--1.9 rails new myapp
This…

Moiz Raja
- 5,612
- 6
- 40
- 52
2
votes
0 answers
Assets are not properly assembled when testing with cucumber
I'm trying to run some cucumber tests in my jruby-on-rails project, but the assembly pipeline seems to cause issues.
When I look at the generated page with the capybara function save_and_open_page, there are no ending tags for referenced…

panmari
- 3,627
- 3
- 28
- 48
2
votes
1 answer
JRuby : Rails : Warbler - How to distribute executable scripts within the war file
I have a JRuby/Rails application which I deploy to a Tomcat using the Warbler gem.
In the JRuby application, I have a bunch of scripts in $RUBY_ROOT/lib/tasks which are used for install scripts, cron jobs, Resque, etc.
When I develop/build the…

Jay Godse
- 15,163
- 16
- 84
- 131
2
votes
3 answers
Does the jruby-rack servlet container support PUT/DELETE?
I'm trying to deploy a Rails app as a WAR using Warbler. I have it running in Tomcat 6 and it seems to be running fine. However, all of my PUT and DELETE requests are getting rejected with a 403 (Forbidden).
From what I've been able to gather, the…

Matt Zukowski
- 4,469
- 4
- 37
- 38
2
votes
0 answers
How to use breakpoints in eclipse with JRuby on Rails
I have been searching on how to use breakpoints in Eclipse when running a JRuby on Rails application.
I installed ruby-debug and ruby-debug-ide, but now I don't know how to proceed.
If I put 'debugger' somewhere in my code and start up my WEBrick…

Lieven Cardoen
- 25,140
- 52
- 153
- 244
2
votes
1 answer
Java to JRuby to Resque
I have a hybrid web application which runs a Java WAR file and a JRuby WAR file in the same Tomcat.
We have decided to use (JRuby) Resque as our job queue. The call to enqueue jobs looks like this:
Resque.enqueue(FooWorker, 111)
where FooWorker is…

Jay Godse
- 15,163
- 16
- 84
- 131
2
votes
0 answers
Is it possible to check the rails environment for what rake task is running?
Is there an environment variable I could leverage in my rails initializers to determine if a rake task is executing ? Like -- rake db:migrate db:seed
I have a bunch of initializers that could be skipped for most rake tasks:
Don't load spring (it's…

stringaling
- 43
- 4
2
votes
2 answers
JRuby on Rails log rotation failure
We have a JRuby on Rails 2 application deployed on Tomcat, using the default Rails logger. Some time after we crossed the DST boundary, we found the application was dead with the following error messages in the…

Mark Thomas
- 37,131
- 11
- 74
- 101
2
votes
0 answers
Rails 3: HABTM, destroy and before_destroy callback
If I have read the rails guides correctly, a before_destroy callback that returns false will stop the object being destroyed by issuing a rollback command.
However, while the object itself is not being removed I'm finding that all objects in a HABTM…

MBDJ
- 471
- 1
- 4
- 9