Questions tagged [jruby-rack]
30 questions
7
votes
2 answers
Logging with log4j on tomcat jruby-rack for a Rails 3 application
I just spent the better part of 3 hours trying to get my Rails application logging with Log4j. I've finally got it working, but I'm not sure if what I did is correct. I tried various methods to no avail until my very last attempt. So I'm really…

John
- 9,254
- 12
- 54
- 75
4
votes
1 answer
Simplest way to have trinidad depend on an alternate version of jruby-rack?
The current Trinidad gem depends on jruby-rack 1.1.0 which has some errors being displayed in my development log for every single one of my assets
/Users/bijan/.rvm/gems/jruby-1.7.3/gems/rack-1.4.5/lib/rack/utils.rb:399 warning: multiple values for…

Bijan
- 6,675
- 6
- 33
- 29
3
votes
2 answers
how/where to set --profile.api option for jruby running inside jruby-rack/tomcat?
how/where to set --profile.api option for jruby running inside jruby-rack/tomcat?
This option is documented in how to profile a block of code here

so_mv
- 3,939
- 5
- 29
- 40
3
votes
1 answer
deploying ruby + sinatra app on google appengine
I am trying to deploy a ruby + sinatra app in google appengine. The deployment process with appengine-java-sdk-1.8.4 seems to end ok but when I access the application url I get this error:
org.jruby.rack.RackInitializationException: uninitialized…

user2806907
- 49
- 2
2
votes
0 answers
Warbler 1.3.2 not acknowledging Gemfile dependencies
Its seems warbler is not using bundler to install dependent gems. I have had this stack trace appear on every gem that is a dependency and is auto specified in Gemfile.lock based on my application's Gemfile . This is my warble.rb
Using
1. RubyGems…

Daya Sharma
- 2,855
- 2
- 15
- 12
2
votes
3 answers
Does the jruby-rack servlet container support PUT/DELETE?
I'm trying to deploy a Rails app as a WAR using Warbler. I have it running in Tomcat 6 and it seems to be running fine. However, all of my PUT and DELETE requests are getting rejected with a 403 (Forbidden).
From what I've been able to gather, the…

Matt Zukowski
- 4,469
- 4
- 37
- 38
2
votes
1 answer
Jruby Warbler generated war on Tomcat for Sinatra -- View file not found
I'm running into the following issue with a WAR I am generating using Warbler to deploy to Tomcat. When I run 'rake war' it correctly generates the war file to deploy; however, upon deploying to Tomcat and navigating to the application base, I get…

ejlevin1
- 735
- 5
- 15
2
votes
2 answers
JRuby on Rails log rotation failure
We have a JRuby on Rails 2 application deployed on Tomcat, using the default Rails logger. Some time after we crossed the DST boundary, we found the application was dead with the following error messages in the…

Mark Thomas
- 37,131
- 11
- 74
- 101
2
votes
1 answer
JRuby Rack - How to add a servlet filter?
I'm trying (with no success) to pass the response of a JRuby Rack - Rails application to a filter in order to get it processed. Basically I want to use the Orbeon XForm Engine to enhance the XHTML output coming from my Rails application. If I use a…

Sandro Paganotti
- 2,295
- 16
- 12
2
votes
1 answer
how/where to set --fast mode for jruby when using it within jruby/rack inside tomcat?
how/where to set --fast mode for jruby when using it within jruby/rack inside tomcat?
This --fast mode is explained in this page
jruby performance tuning

so_mv
- 3,939
- 5
- 29
- 40
2
votes
1 answer
How to deploy multiple instances of same Rails application in same tomcat
We'd like to deploy multiple instances of the same Rails application within a single Tomcat container using jruby-rack.
The first instance comes up fine, but the second one fails:
INFO: Deploying web application directory app1
...
INFO: Deploying…

sudoremo
- 2,274
- 2
- 22
- 39
2
votes
1 answer
Performance of sinatra app on jruby
I have a sinatra app, which is performing considerably slower than I would like. My first suspicion is that it is my own code that is the bottleneck, so I extracted it to a standalone benchmarking script.
THREADS = 100
ITERATIONS = 1
def…

clumsyjedi
- 477
- 6
- 15
1
vote
1 answer
Is there a JRuby-Rack Sinatra Warbler Project archtype?
Is there a project archetype (or whatever the ruby community calls it) for a jruby + rack + Sinatra project that creates a WAR deployment file with all required dependencies all ready to go?
What I want is the equivalent to "rails appname" that…

sal
- 23,373
- 15
- 66
- 85
1
vote
2 answers
Error on Rack initialization with JRuby
I am getting this error when starting JBoss with my application built with warbler:
Error: unable to initialize application
org.jruby.rack.RackInitializationException: wrong number of arguments (1 for…

Douglas Lise
- 1,466
- 1
- 20
- 46
1
vote
1 answer
What is JRuby-Rack?
I have an existing web application written in Ruby using rack and thin. I need to port this to JRuby so that it can interface with some Java libraries. Google pointed me to this page: https://github.com/jruby/jruby/wiki/JRuby_Rack
What is this…

alexloh
- 1,606
- 2
- 15
- 29