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

jruby: No such file or directory -- rails (LoadError)

I was trying to create a jruby application using jruby -S rails new OSTH_GGG. But it returns jruby: No such file or directory -- rails (LoadError). What is the problem?
Khai Kiong
  • 371
  • 2
  • 13
0
votes
1 answer

How to stop curl command executing through jruby code?

I am having following code in my model methods which i am calling from my controller. Kernel.system"curl -H "Content-Type:application/json" -d…
Heena Hussain
  • 3,673
  • 1
  • 20
  • 21
0
votes
1 answer

warble, cannot load such file -- spec/rake/spectask error

I'm very new to Ruby, Jruby and Rails etc. I'm trying to deploy a jruby application to tomcat server using warble. I'm on a windows machine, below is the error I get when I run warble from the project's root directory. I did google a lot for the…
sij
  • 296
  • 3
  • 13
0
votes
1 answer

XmlDomParserContext.java:94:in `': java.lang.NoClassDefFoundError: Could not initialize class nokogiri.internals.NokogiriHelpers

I am working on a jruby project, I am getting some XML PARSING error related to Nokogiri whose console log is as shown below : > XmlDomParserContext.java:94:in `': > java.lang.NoClassDefFoundError: Could not initialize class >…
lucifer
  • 275
  • 1
  • 3
  • 7
0
votes
1 answer

Indexing old data with Neo4j and jRuby on Rails

We recently switched to JRuby on Rails so that we can use Neo4j, and even though we've only scratched the surface of what Neo4j can do, it's already pretty great. That said, I just ran into a rather vexing problem with indexing and finding. I just…
jwest
  • 342
  • 3
  • 10
0
votes
1 answer

Getting error while generation of model in JRuby

Hi I am getting error while I am generating the model. Following the error stack i am facing. rails generate model id:string name:string userid:string groupid:string bookmarktype:string typeid:string additionaldata:string include_class is…
Anand Soni
  • 5,070
  • 11
  • 50
  • 101
0
votes
2 answers

jruby gem installation error or any gem: "ERROR: While executing gem ... (Errno::ENOENT)"

When trying to install any jruby gems, I get the following error. $ jruby -S gem install rails ERROR: While executing gem ... (Errno::ENOENT) No such file or directory - Unfortunately no directory or file listed in the error message. When I…
MD6380
  • 1,007
  • 4
  • 13
  • 26
0
votes
1 answer

Unable to install rails on jRuby

What I have installed until now is: Latest JDK and JRE (version 7 update 6) jRuby 1.7.0 preview 2 and successfully tested them. Then I try the following command: jruby -S gem install -y rails and get the following error: ERROR: While executing…
gotqn
  • 42,737
  • 46
  • 157
  • 243
0
votes
1 answer

neo4j-will_paginate gem causing rails not to start

I'm trying to implement pagination in my Rails app with the neo4j-will_paginate gem (I'm using neo4j as my database.) I followed the instructions at https://github.com/dnagir/neo4j-will_paginate#readme viz. added neo4j-will_paginate to my gemfile…
jwest
  • 342
  • 3
  • 10
0
votes
1 answer

How to write a Gemspec, when the gem's main class name is different?

I have a Gemfile as part of rails app, which I am converting to a gem. gem "jruby-openssl", "0.7.4" gem "nokogiri" gem 'xml-simple', :require => 'xmlsimple' gem "httpclient" How do I write, the .gemspec file, for the gem I create from this? The…
absessive
  • 1,121
  • 5
  • 14
  • 36
0
votes
1 answer

Error while loading java Class in Jruby application

I have deployed my Ruby on Rails Application on Torquebox. After starting server I am getting this error 10:18:06,311 ERROR [org.torquebox.core.runtime] (Thread-95) Error during execution:…
Sagar Varpe
  • 3,531
  • 4
  • 27
  • 43
0
votes
1 answer

jruby on rails with warbler and tomcat and windows

I tried to deploy an application.war file into webapps/ in the tomcat folder and started up the server. When i try to open http://localhost:8080/relConnections it shows on the screen that "something went wrong". I deleted the common index.html in…
user1455116
  • 2,034
  • 4
  • 24
  • 48
0
votes
0 answers

jruby on rails with tomcat deploying a war file

I'm using jruby with rails and want to deploy a small application in tomcat7. I used the warbler gem to create war file. The application is relConnections and the war file created is relConnections.war. I started the tomcat server running…
user1455116
  • 2,034
  • 4
  • 24
  • 48
0
votes
1 answer

How do you query a database in the middle of a jruby on rails webpage?

Not sure how to ask it so sorry if I mess up my terminology. In using jruby on rails, how would I query two (or more database) to serve back to the view page? I have seen where I set up my database connection in database.yml and it works fine but I…
johnny
  • 19,272
  • 52
  • 157
  • 259
0
votes
0 answers

NullPointer exception when trying to run rails console with jruby set to 1.9 compatibility

I see the seeing an error when trying to run rails console with jruby 1.9 compatibility. This works fine when I run rails console in 1.8 mode. I am using the following, rvm (1.8.1) jruby (1.6.4) rails (3.2.5) mongoid (2.4.11) Mac OSX Lion When I…
Moiz Raja
  • 5,612
  • 6
  • 40
  • 52
1 2 3
24
25