JRuby on Rails is a term to describe a Ruby On Rails application running on JRuby.
Questions tagged [jrubyonrails]
367 questions
0
votes
1 answer
Jruby Rails app on Tomcat CPU Usage spikes
This might also belong on serverfault. It's kind of a combo between server config and code (I think)
Here's my setup:
Rails 2.3.5 app running on jruby 1.3.1
Service Oriented backend over JMS with activeMQ 5.3 and mule 2.2.1
Tomcat 5.5 with opts:…

brad
- 31,987
- 28
- 102
- 155
0
votes
2 answers
How to detach JRuby on Rails
I created a small application using Ruby on Rails and I recently transferred it to JRuby.
The issue I have is before when I was using MRI, I used to run the server using rails server -d to run it in the background.
Now with JRuby, it seems that this…

Patrick Angodung
- 4,625
- 3
- 14
- 18
0
votes
1 answer
jruby/activerecord-jdbc/tomcat/DB2 ready for enterprise?
I am trying to introduce RoR to my company and I have two ways of doing so in my mind:
(1) rails/ibm_db2/passenger/DB2 - which is my preferable way but it is not really supported by company's infrastructure.
(2) jruby/activerecord-jdbc/tomcat/DB2 -…

arkadiy kraportov
- 3,679
- 4
- 33
- 42
0
votes
1 answer
Create SidekiqWorkers on a server by receiving information from another server
Sorry If my title didn't made any sense, but my problem is that, I have one application which is hosted on a server, the application uses a database which is hosted on the same server, also the same server is using sidekiq to process a lot of…

John
- 634
- 8
- 29
0
votes
2 answers
Search for a pattern in a file and print it in jruby
I have a file with n number of lines. I need to search for a field(SessionId and its value) in it and print its corresponding value.
I have coded to access the file and print it line by line. Need help in getting a field and printing its…

karthick23
- 1,313
- 1
- 8
- 15
0
votes
1 answer
Puma fails to start on jRuby with error: The signal USR1 is in use by the JVM and will not work correctly on this platform
I am trying to deploy a simple rails app on my VPS, but I always get this error message, when capistrano tries to start puma:
The signal USR1 is in use by the JVM and will not work correctly on this platform
[deprecated]…

Allanon
- 547
- 4
- 24
0
votes
1 answer
Active Record JDBC Derby Adapter interpreting smallint columns as boolean
I am using the activerecord-jdbcderby-adapter gem with jruby 1.7.9 and rails 4.0.2 with a legacy Derby database.
My Derby tables have several smallint fields.
These are all being interpreted by the adapter as boolean (i.e. the int value is lost).
Is…

Mark Fraser
- 3,160
- 2
- 29
- 48
0
votes
2 answers
Is it possible for me to write a JRuby script within my Rails app and use JRuby just for that script/class?
I have a Rails application that is importing data from various third parties. The jobs are taking a long time and I am looking into how I can use threads to speed this up. I know nothing about Java so apologies if this makes no sense.

BC00
- 1,589
- 3
- 29
- 47
0
votes
2 answers
jruby include java class performance vs include a package
I have a jruby rails app with a ruby module in lib that is name-spacing my java objects so I don't have conflicts.
I'm wondering what the difference is between including the specific classes in that module and including the package. I've included…

brad
- 31,987
- 28
- 102
- 155
0
votes
1 answer
java.security.AccessControlException when running fresh Rails App with Google App Engine Dev Server
I'm trying to run a fresh JRuby Rails app using the Google App Engine devserver, but keep getting this Runtime Permission error. I'm guessing it has something to do with my local java environment, but not sure.
Local Setup: Mac OSX Mavericks, Java…

Scott Feinberg
- 574
- 4
- 20
0
votes
1 answer
actveresource thread safety under jruby
I have a rails 3.x app that makes heavy use of remote apis using Active Resource. The api authentication data and urls called can change based on the users login. We want to deploy the app using jruby with config.threadsafe enabled to allow for…

d-coded
- 413
- 3
- 9
0
votes
1 answer
Tomcat handling of sessions on JRuby/Rails app
Running our JRuby/Rails application locally on rails/rack, the session id is reset/renewed in
session/abstract_store.rb using the DestroyableSession destroy method.
Each new request coming in, using the same browser, will generate a new session…

user1729188
- 1
- 1
0
votes
2 answers
undefined method 'execute_query ' for nil:NilClass
I want to connect to the db and execute a very simple query using JRuby. It is establishing the connection but failing to execute the query. Below is the code:
require 'oracle_connection'
#Edit these for your database schema
class…

itsh
- 1,063
- 3
- 14
- 28
0
votes
1 answer
Passenger 4 & JRuby: setting JRUBY_OPTS
I know i can specify the ruby executable to use with passenger_ruby for a particular virtual server, but is there an easy way to specify the JRUBY_OPTS env variable I want to set for that particular executable?

Mohamed Hafez
- 8,621
- 7
- 41
- 49
0
votes
1 answer
Can we use JAR file into JRuby?
By adding Jar file into the Jruby project.Can We use a java classes of the that Jar file into the Jruby?

Satyam Koyani
- 4,236
- 2
- 22
- 48