JRuby on Rails is a term to describe a Ruby On Rails application running on JRuby.
Questions tagged [jrubyonrails]
367 questions
3
votes
3 answers
Jruby On Rails, which is best database adapter, mysql2 or jdbcmysql?
I am working on JRuby on Rails Application having JRuby-1.6.7 and Rails 3.2.2
I have mysql database. I was trying for database adapter.
I used mysql2 and jdbcmysql database adapter. Both are working.
But if I do not access application for some time…

Shailesh Kalamkar
- 733
- 9
- 23
3
votes
2 answers
Cucumber hangs after all scenarios passed
I have jRuby on Rails application with some cucumber tests.
Problem is that cucumber features hangs after executing all steps until I press ctrl+c. Interesting that it only happens if all of the tests pass.
10 scenarios (10 passed)
116 steps (116…

tomgi
- 1,422
- 11
- 20
3
votes
2 answers
If I have jRuby on Rails installed can I use only Ruby?
What I mean by this is if I install jRuby on Rails, can I use only the ruby language to build my application? I wanted to install my rails application with jRuby in case I wanted to use Java in the future, though I don't need it now. Or do I not…

johnny
- 19,272
- 52
- 157
- 259
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
2 answers
problem for SQLite db for jruby
I tried to use SQLite databse for my jruby project.
When i tried to install sqlite3 gem getting the following error
C:\tibbr\main\community_manager>gem install sqlite3-ruby
Building native extensions. This could take a while...
ERROR: Error…

senthil raja
- 90
- 7
3
votes
1 answer
How to run Rails3 with JRuby in 1.9 mode on Windows XP?
I know that I can run JRuby with 1.9 compatibility with the --1.9 flag. No problems here.
However, I cannot get Rails3 to run with JRuby 1.6.2 in 1.9 mode on Windows XP. Am I missing something?
Here are my JRuby 1.6.2 version…

buruzaemon
- 3,847
- 1
- 23
- 44
3
votes
3 answers
sunspot with jruby
Hi can sunspot be used with jruby, also here is my app details
jruby-1.6.1
rails 3.0.7
when i install all the gems and run rake sunspot:solr:start it gives me the following error
Gem::LoadError: Could not find RubyGem sunspot (>= 0)
…

dhaval2025
- 317
- 2
- 5
- 12
3
votes
1 answer
Flag invalid attribute in ActiveRecord
I am trying to implement functionality wherein an attribute, once set, cannot be changed on an ActiveRecord model. To this end, I have written the following methods:
def address
self[:address]
end
def address=(val)
if new_record?
self[:address]…

rmk
- 4,395
- 3
- 27
- 32
3
votes
0 answers
How to connect RAILS with Red5 Server
I am trying to develop an Application with Red5 Server.
I did some of the steps:
I set up the Red5 server into our local machine (Ubuntu)
I installed the MangoDB database locally with Rails configuration.
Now My problem is: I am using Jruby(Java…

Anil Gupta
- 1,155
- 1
- 19
- 26
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
Compile a jruby on rails application to a jar?
Is there a quick way to pack a jruby on rails application into a jar?
Is there an ec2 on rails like virtual appliance for jruby on rails apps?

James
- 5,273
- 10
- 51
- 76
3
votes
3 answers
How to disable tracking of changed attributes in model in active_record
I have a simple model with 3 attributes id, paylod (binary data, big), created_at.
I need to extract a bunch of values from the payload data for further processing which I do in the after_initialize callback method. As the payload can be quite big…

Oliver
- 89
- 1
- 8
3
votes
1 answer
How can I make drip use existing vm with dripmain.rb for rails app?
I am attempting to use drip to reduce JRuby VM startup time for a Rails app, per the JRuby wiki.
I see some speed up by changing some of the JRUBY_OPTS but I am not seeing any reduction using drip. It seems to be spinning up a new process/vm for…

queuebit
- 180
- 1
- 7
3
votes
0 answers
Why does heap space constantly increase when monitoring Tomcat with Java VisualVM?
I have a JRubyOnRails application running in Tomcat. After browsing to my application (localhost), logging in and then doing nothing, the Heap space seems to be growing continuously...
Is that normal? If I press on Perform GC, it does go down again.…

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