jruby-rack

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 creates a ready to go project with ant/rake scripts and a basic directory hierarchy all ready...

Using JSP tags in JRuby J2EE app

Is there a way to use JSP tags in JRuby apps deployed as J2EE apps? For example, if I have a Sinatra app being called through Rack via a JSP tag, can I use JSP tag libraries inside the Sinatra templates (e.g., Haml)? ...

Anybody has luck running Rails application on Weblogic using JRuby?

My application is developed on Rails 2.3.5, its running fine on Webrick, Mongrel, Tomcat and Glassfish. But when I try to the run the same war file that was generated using warbler gem in Weblogic, I am getting the following error: Application initialization failed: no such file to load -- rack from C:/bea/wlserver_10.3/samples/domai...

How should jruby-jars and jruby-rack be added to the classpath using warbler?

Hi again, 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/<gemname>/lib/<jarname>.jar but they are not on the classpath. I'm guessing that if I put them in my ruby apps...

How do I setup a custom Gem.path using JRuby::Rack?

Hi Nick et al, I've been having some fun looking at to source code of JRuby-Rack and Rubygems to try to figure out how to solve a org.jruby.rack.RackInitializationException: no such file to load -- compass in my rackup script cased by require 'compass'. I'm passing in a custom 'gem.path' as a servlet init parameter and it is being c...

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 logger wants to open the WEB-INF/log/production.log in write mode. He writes nothing to thi...

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 com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateBufferInvocation(AsmLibraryLoader.java:548) at com....

Ruby on Rails (JRuby) errors custom error pages (500) not being properly captured

Hello All: Wondering if anyone has come across this issue before, I am using JRuby v 1.5.x and Rails 2.5.x on a Tomcat Server and I am having difficulty capturing an error and redirecting to a 500.html page. Here is a stacktrace. I attempt to capture the error state but to no avail, it goes immediately to rendering the web page. (Att...