Questions tagged [jruby-rack]
30 questions
1
vote
1 answer
Debug JRuby rack runtime error in tomcat
We recently upgraded an old rails app from rails 3 to 4.2, along with many other gem updates. Now I can't get my rails app to load any pages. We were on JRuby 9.1.0.0 but upgraded to 9.1.8.0. However, I'm hitting the same problem on both…

Danesh
- 145
- 7
1
vote
1 answer
Sessions not working in Sinatra app when packaged with warbler
I've created a simple sinatra app, but can't get sessions to work when running it as an executable war.
I've verified that it works when run via "jruby -S rackup", but when run with "java -jar myapp.war", I find that the session is reset on each…

genegc
- 1,630
- 18
- 16
0
votes
1 answer
Padrino & Trinidad undefined method `register' for Rack::Handler:Module
Trying to run a sample_blog application Padrino framework based application on Trinidad throws weird error
undefined method `register' for Rack::Handler:Module
Using:
trinidad-1.3.4
jruby-rack-1.1.4
Following is the stack trace
ip-192-168-1-126: $…

Daya Sharma
- 2,855
- 2
- 15
- 12
0
votes
1 answer
How can I create globally namespaced CONSTANTs during Rails initialization in Tomcat?
First some background: I've got a Rails 2.2.2 app with all kinds of janky dependencies and customizations that keep me from upgrading past 2.2.2 for the moment. Current plan is to migrate this app to JRuby (1.6.5), deploying it as a war in Tomcat…

Araxia
- 1,136
- 11
- 22
0
votes
1 answer
Issue loading third party JAR when using Warbler and a downgraded JRuby-Rack?
We're using Warbler to deploy our application to JBoss. The server seems to start fine, but when a request is sent to the application we get the following error:
...
JRuby-Rack startup
No such file to load -- lib/mylib
....
As you can see it…

ryan
- 5,039
- 13
- 35
- 42
0
votes
2 answers
JRuby on Rails app on and JBoss 4.2.0/Tomcat 5.5
My JRuby on rails app works fine on Tomcat 6.0, But when I deploy it on my company's webfarm which is JBoss 4.2.0/Tomcat 5.5 (Servlet API 2.4) It fails with the following stack trace:
java.lang.ArrayIndexOutOfBoundsException: 0
at…

arkadiy kraportov
- 3,679
- 4
- 33
- 42
0
votes
1 answer
Preventing Rails from opening production.log, when it is deployed with jruby-rack into tomcat
I have to to deploy a Ruby on Rails application to an tomcat application server using jruby-rack. Due to security reasons my customer has the webapps directory mounted read only and he won't changed this. The problem that arises is, that the rails…

gregor
- 4,733
- 3
- 28
- 43
0
votes
1 answer
Failed to deploy sinatra web app to weblogic 12
I have the same situation as in
Failed to deploy rails app to weblogic ....
but in example "Hello world" in Sinatra. Weblogic 12. Modified weblogic.xml does not help me :(
#### …

Dmitry Orlov
- 43
- 5
0
votes
1 answer
How should jruby-jars and jruby-rack be added to the classpath using warbler?
I've been reading through the warbler source code, and I can't figure out how the jruby-jars and jruby-rack jars are meant to end up on the servlet classpath?
It seems warbler is copying them into web-inf/gems/gems//lib/.jar but…

Ben Hogan
- 149
- 1
- 8
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
How to configure custom servlet in Jruby-rack?
According to Jruby-Rack Github, we can configure to use org.jruby.rack.RackServlet instead of context listener.
Can we use another custom servlet rather than RackServlet? Or can we override org.jruby.rack.RackServlet?

Blue Smith
- 8,580
- 2
- 28
- 33
0
votes
2 answers
What is the preferred way to run Sinatra application?
EDIT: I got the application working using TorqueBox, so I guess the problem is related to Trinidad. However, I think my guestion about the preferred way to run Sinatra applications is still valid.
I am using JRuby, Bundler, and modular style. Here's…

Kitanotori
- 1,741
- 5
- 16
- 23
0
votes
1 answer
Multiple war web applications in ear with JRuby rack
I'm trying to pack two JRuby Sinatra web apps (runtime 1.9) bundled with warbler into an ear file. After deploying in glassfish (2.1.1 or 3.1) I have a crash.
JRuby.jar, jruby-stdlib.jar and jruby-rack.jar are accesible in the classpath of both…

Rafa de Castro
- 2,474
- 1
- 24
- 44
0
votes
0 answers
Dependency Issues Running a JRuby Thread
I'm running on JRuby 1.6.7 with Rails 3.0.2. I have a few methods that call REST services.
It would be nice to execute them concurrently, so instead of each one taking 2 seconds to return totaling 6 seconds. I'll get the data back in about 2…

WeaZeLb0y
- 83
- 6
0
votes
1 answer
Building .war with JRuby and warbler
I have been trying for hours to get a JRuby Rails application packaged as a war that actually works, without success... (JRuby 1.6.7, warbler 1.3.5, Rails 3.2.2)
Issue #1: Warbler seems to like to lump all libraries in one root folder rather than…

cbmanica
- 3,502
- 7
- 36
- 54