warbler

Can a Rails plugin be packaged as a WAR/JAR file?

Can a plugin be packaged as a JAR/WAR file similar to the way in which an entire Rails app can be packaged for deployment on JRuby? ...

Where are the logs for a Rails app packed using Warbler?

I'm using Warbler to pack a Rails application into a WAR. I've deployed it to a JBoss server and it seems to works. However, I'm getting the classic 500 error on Rails saying "We're sorry, but something went wrong.". Usually, I'd take a look at logs/production.log to find out what's wrong, but since the project is WARed, I can't access...

Warbler: Where are my images

I'm using Jruby and Warbler to deploy a Jruby on Rails application to a Tomcat server. I can see all of my images when I deploy the server with Webrick: jruby -S server/script. However, when I create a .war file out of the rails directory using jruby -S warble and deploy to Tomcat, none of my images show up on the tomcat server. I notice...

500 Responsecode while using warbler

I've tried to deploy a simple RubyOnRails app to tomcat app-server with the warbler gem. I simply generated a new app, with a simple scaffold and configured it to use the jdbcmysql adapter. Then i simply created and migrated the database, executed warbler and deployed the war to my local tomcat (Version 6.0.23). I can deploy the war and ...

warbler config and jruby version

I just installed jruby-1.4.0 to play around with it. I'm noticing however that warbler is packaging this by default with my rails deploy. My production uses jruby-complete-1.3.1 (which I've added to my lib dir to freeze the version) but warbler is adding jruby-core-1.4 when it packages everything up. That's a bit worrisome for me as I...

Warbler config.java_classes and log4j.properties

I'm packaging up a rails app with warbler and I want app specific logging. I've added the log4j and commons-loggin jar to the WEB-INF/lib directory, and I want to add log4j.properties to the WEB-INF/classes directory. The problem is, I also want environment specific logging, so my staging/production use different properties (ie. INFO i...

Glassfish can't find activerecord-jdbc-adapter

I'm trying to deploy simple Rails app on glassfish v3 and get the following error: org.jruby.rack.RackInitializationException: Could not find RubyGem activerecord-jdbc-adapter (>= 0) Environment details: App is packaged as war using warbler. JRuby 1.4.0 installed locally, with activerecord-jdbc-adapter gem installed. App is configured...

(Rails, Warbler) Deploying and initializing Rails applications in Glassfish…?

Hi All, I posted this very same item on SERVERFAULT, but got no reply. So here goes: I'm currently in the process of finishing up a Rails application. I am using Warbler to package it up as a ".war" file and am using GlassFish to deploy it. I do this because the application is to be distributed to companies for in-house use. Arguably ...

Rails Warbler Deployment

I am doing some testing to determine resource usage of a rails war. I have used Warbler to package the "15-minute Blog" application using Rails 2.3.5 and JRuby 1.4.0. I am deploying into Tomcat 6.0.24 and create multiple deployments by copying the blog.war file as blogN.war. This worked great for the first 4 deployments but I can't see...

Why do I get a NoSuchMethod error running Warbler?

I'm getting the following error when running warble under both jRuby 1.3 and 1.4. I'm new to warbler, any suggestions what to try next? $ warble war WarblerWar.java:70:in `addEntry': java.lang.NoSuchMethodError: org.jruby.util.ByteList.getUnsafeBytes()[B from WarblerWar.java:63:in `addEntries' Other info that might help: It's...

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...

Rails deployment strategies with Bundler and JRuby

I have a jruby rails app and I've just started using bundler for gem dependency management. I'm interested in hearing peoples' opinions on deployment strategies. The docs say that bundle package will package your gems locally so you don't have to fetch them on the server (and I believe warbler does this by default), but I personally th...

Error on creating war using warbler

Hi, i have a jruby application, and use warbler to make war files of it. But everytime i ran jruby -S rake war The warbler throw an error, it said can't convert nil to String and the error is in rubyzip, it happened when rake invoked war:jar, so how can i fix it ? do we have any other alternative to create war for jruby ? (beside the wa...

jruby warbler set Rails environment variable is not persisting when deployed with tomcat

inside my warbler config file I have the following: config.webxml.rails.env ='development' i build my war, and deploy with the tomcat web utility, and when I go to the app it doesn't run, but instead of getting the development backtrace to help me figure out what isn't getting setup right, it just gives me the production 505 error pag...

jruby regex different on windows from os x?

i've got a jruby regex that i'm printing in rails: @@private = /somethingthatshouldnevermatch/ def secure? puts "security test(#{action_name}/#{@@private}: #{@@private.match(action_name).nil?.to_s}" action_name =~ @@private end on os x, using WEBRick and jruby, this prints security test(index/(?-mix:somethingthatshouldnevermatch...

jruby rails 3 and warbler

I am trying to make a deployment war. I have the jdbc-mysql, activerecord-jdbcmysql-adapter and warbler gems installed. I have edited config/database.yml and changed the adapter to jdbcmysql... but I can not even run warble config without getting this error message: Could not find gem 'mysql2 (>= 0, runtime)' in any of the gem sources....

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....

jRuby and Problems with Warbler, RVM, and Tomcat

I've been having a tough time getting jRuby on Rails 3 deployed on Tomcat 6. I got it to work exactly once. I modified my database.yaml and Gemfile to check for jRuby, something like this: if defined?(JRUBY_VERSION) gem 'jdbc-mysql' #gem 'jdbc-sqlite3' gem 'activerecord-jdbc-adapter' gem 'activerecord-jdbcmysql-adapter'...

JBoss based rails application cant find activerecord-jdbcmysql-adapter

Hi All I have a rails application deployed to jboss as a war packaged using warbler. The application has been working great for a while now. I am looking to change the rails application so that rails, all gems and their dependencies are vendor'd. To that extent I have it working great and can boot the application locally using mongrel...