Note that there are some explanatory texts on larger screens.

plurals
  1. POdeployment for jruby on rails app
    primarykey
    data
    text
    <p>I am trying to deploy a jruby on rails application. </p> <p>Right now I am running mongrel + Apache2 using reverse proxy from mod_proxy. However, because mongrel_jcluster does not work for the latest versions of jruby, I am only able to run one mongrel server, and cant take advantage of load balancing from apache2.</p> <p>Is there any way other way to create a mongrel cluster? I'd really prefer mongrel cluster + apache2 to a java servlet type system.</p> <p>I've tried jetty using the instructions here: <a href="http://jetty-rails.rubyforge.org/" rel="nofollow noreferrer">http://jetty-rails.rubyforge.org/</a></p> <p>but I get the following error when starting up the jetty server, even though I've checked my activerecord-jdbcmysql-adapter gem version under jruby and its there and version 0.9.7</p> <pre><code>DEPRECATION WARNING: require "activesupport" is deprecated and will be removed in Rails 3. Use require "active_support" instead. (called from /home/andrew/.gem/jruby/1.8/gems/activesupport-2.3.8/lib/activesupport.rb:2) 2010-07-20 17:00:46.820::INFO: Logging to STDERR via org.mortbay.log.StdErrLog Starting server 3000 2010-07-20 17:00:47.134::INFO: jetty-6.1.14 2010-07-20 17:01:03.511:/:INFO: Info: using runtime pool timeout of 30 seconds 2010-07-20 17:01:03.511:/:INFO: Info: received min runtimes = 1 2010-07-20 17:01:03.511:/:INFO: Info: received max runtimes = 5 Loading parser from serialized file lib/stanford-parser/englishPCFG.ser.gz ... done [4.6 sec]. 2010-07-20 17:01:14.341:/:WARN: Error: unable to initialize application org.jruby.rack.RackInitializationException: Please install the jdbcmysql adapter: `gem install activerecord-jdbcmysql-adapter` (no such file to load -- active_record/connection_adapters/jdbcmysql_adapter) </code></pre> <p>any suggestions would be appreciated, thanks!</p> <p><b> EDIT: </b> I don't know if this makes a difference, but I am able to tell that before it crashes, jetty_rails successfully loads a global variable declared in the environment.rb</p> <p><b> EDIT: </b> here is my full gem list from <code>jruby -S gem list --local</code></p> <pre><code>*** LOCAL GEMS *** actionmailer (2.3.8) actionpack (2.3.8) activerecord (2.3.8) activerecord-jdbc-adapter (0.9.7) activerecord-jdbcmysql-adapter (0.9.7) activeresource (2.3.8) activesupport (2.3.8) builder (2.1.2) gem_plugin (0.2.3) jdbc-mysql (5.0.4) jetty-rails (0.8.1) jruby-jars (1.5.1) jruby-openssl (0.7) jruby-rack (1.0.1) mizuno (0.3.6) mongrel (1.1.5) rack (1.1.0) rails (2.3.8) rake (0.8.7) rubyzip (0.9.4) sources (0.0.1) warbler (1.1.0) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload