From: Hassan Schroeder Date: 2010-03-01T02:48:57+09:00 Subject: Re: Do you recommend deploying Rails applications as WARs? On Sun, Feb 28, 2010 at 9:10 AM, Tony Arcieri wrote: > On Sun, Feb 28, 2010 at 8:15 AM, Hussein B wrote: >> Does deploying Rails application via JRuby on Java web container has >> any disadvantages? Yes. For one thing, you can't use gems/plugins with native code; that may or may not be an issue for you. And the whole thing just "feels" heavier to me. YMMV. >> IMHO, I think deploying Rails applications as WAR is best approach and >> the most comforting one. There are some cases where it's necessary, so it's good that it's an option (and admittedly getting easier). > We're deploying on JBoss with warbler (JBoss 4.x on Java 5 > One of the big issues we've run into is accessing the outside filesystem. > Right now we're using JBoss-specific APIs to do that, and can only access > files within the JBoss CLASSPATH.  This is fine for reading files from the > external filesystem, but AFAICT if you need to write to the outside > filesystem you're SOL. Are you sure that's not a Java security manager issue? We've run our app on OC4J, Tomcat, and Glassfish (v3), and haven't ever had any issue with writing files (saving avatar images, etc.). -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com twitter: @hassan