Questions tagged [jrubyonrails]

JRuby on Rails is a term to describe a Ruby On Rails application running on JRuby.

Resources:

Related tag

367 questions
0
votes
1 answer

`uninitialized constant` error

I have following jruby code that uses java class javax.naming.InitialContext: if RUBY_PLATFORM == "java" require 'java' import javax.naming.InitialContext module JndiProperties def self.getProperty(name) begin …
wedens
  • 1,782
  • 14
  • 18
0
votes
1 answer

jruby runtimes and tomcat

We are running a jruby/rails app under tomcat, and can not immediately make the shift to threadsafe due to some of the components we are using. In the interim we plan to set jruby.runtime.min and jruby.runtime.max to prevent perm-gen out of memory…
d-coded
  • 413
  • 3
  • 9
0
votes
1 answer

Unable to extract XML element's value using Nokogiri

I'm trying to parse the following XML to extract out the Lat Long combination under //ns2:Point/ns2:pos using Nokogiri XML parser but without much luck.
0
votes
1 answer

SSH login to server using Ruby on Rails web application

i am developing an application using Ruby On Rails where I am displaying a link button. On a click of this button i want to ssh login to another server say ssh root@abc.com I want to open the terminal on a click of button and user should already…
Sonal S.
  • 1,444
  • 1
  • 15
  • 31
0
votes
1 answer

Rails execute script on server on Dojo Button click

I've ruby script as part of rails application which is used to copy files from some directory to another inside the server. I am using Dojo as front-end. I've a dojo widget which is displaying a button fine. Now I want to the script to be executed…
zulqarnain
  • 1,695
  • 1
  • 16
  • 33
0
votes
1 answer

Running websocket server with stomp

I have torquebox installed in my jruby on Rails application. And I am experimenting with using stomp + websockets. But I can't tell if the websocket server is even running? I am booting up torquebox in my console with: sudo torquebox run --clustered…
ggrillone
  • 526
  • 1
  • 6
  • 20
0
votes
1 answer

Torquebox - project is not updated

I have installed: Ubuntu 12.10 jruby 1.7.3 ruby 2 rails 3.2.13 RubyMine 5 DB2 C-Express I have create a sample application and connected it correctly to the database - I know this because I have successfully executed the scaffold and migrate…
gotqn
  • 42,737
  • 46
  • 157
  • 243
0
votes
1 answer

Jruby on rails - Torque box vs Tomcat

I am completely new in application server configuration and deployment. I am using Ubuntu 12.04 LTS and have JRuby on rails application (war file) that I want do deploy and to be visible from external networks. I firstly started to read about Tomcat…
gotqn
  • 42,737
  • 46
  • 157
  • 243
0
votes
1 answer

Rails with RackFilter and assets

I am having an issue using a custom RackFilter setting and being able to correctly locate or leverage the rake:precompile function in production. My environment is as follows: jruby 1.7.3 Rails 3.2.12 The rack filter mapping that I am using is as…
0
votes
1 answer

Rails3 with jruby war deployment on tomcat. I am able to access MyApp/public/index.html page. Fails to all other view pages

I have debug my application thoroughly by using http://guides.rubyonrails.org/initialization.html process. I am able to see all logs which i have keep inside different init files, able to see print message which is there in routes.rb Whenever i am…
Mukesh Singh Rathaur
  • 12,577
  • 2
  • 23
  • 24
0
votes
1 answer

reuse shared/bundle between mri ruby and jruby?

I'm using capistrano to deploy a rails app, and it uses bundle install --deployment to put the gems in shared/bundle. I've put the appropriate platform :ruby and platform :jruby blocks in my gemfile, my question is if I switch rvm to jruby and then…
Mohamed Hafez
  • 8,621
  • 7
  • 41
  • 49
0
votes
2 answers

Error while installing jruby on windows 7

I am trying to install JRuby in my system, I follow the following steps: Download a copy of the latest JRuby from the JRuby download page. Unzip the file with your achive program. If you don't have one that works, download 7-Zip. Copy the JRuby…
sitanshu
  • 65
  • 1
  • 3
  • 9
0
votes
1 answer

warble aborted! lib/cpp (No such file or directory)

I am trying to create war to deploy. But I get error warble aborted! lib/cpp (No such file or directory) whenever i fire warble war command $ warble war rm -f ROOT.war Creating ROOT.war warble aborted! lib/cpp (No such file or…
Sachin Kadam
  • 265
  • 2
  • 12
0
votes
1 answer

send_file Rails 2 Issue

In my Rails (2.3.10). I found some weird issue. My application needs to download a XML file when a user hit the downloaded URL. For example : http://www.example.com/test/all.xml The problem here is, If I hit the url with alias name…
palani
  • 4,661
  • 8
  • 31
  • 36
0
votes
1 answer

Seemingly naked nodes in Neo4j-rails

We're using a jRuby on Rails with Neo4j, and we're getting some very odd errors. Currently, we have users able to create posts. Very rarely, it seems that they get unwrapped nodes in their "posts" relationships instead of Post objects. For example,…
jwest
  • 342
  • 3
  • 10