John,

I'm almost there but I can't get the server started using Trinidad.
I'm getting an error related to a JAR not being found, and I suspect
that's what you were alluding to in your previous reply.  Here's the
stacktrace:

[chris@chris (master)]$ jruby -S trinidad
Jun 12, 2011 11:43:14 PM org.apache.coyote.AbstractProtocolHandler
init
INFO: Initializing ProtocolHandler ["http-bio-3000"]
Jun 12, 2011 11:43:14 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Tomcat
Jun 12, 2011 11:43:14 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.11
Jun 12, 2011 11:43:14 PM org.apache.catalina.startup.ContextConfig
webConfig
INFO: No global web.xml found
Jun 12, 2011 11:43:14 PM
org.apache.tomcat.util.scan.StandardJarScanner scan
WARNING: Failed to scan [file:/Users/chris/rails/protorocket/~/
development/tools/junit-4.5.jar] from classloader hierarchy
java.util.zip.ZipException: error in opening zip file

I didn't do any configuration besides installing jruby via rvm and
then installing trinidad.  Searching for more detailed instructions on
getting a Rails app up and running on jruby yielded little.

If you have any hints I'll take them!

Chris

On Jun 10, 1:17 pm, John Lynch <[email protected]> wrote:
> Getting started with Jruby is easy:
>
> Install jruby via rvm:  "rvm install jruby; rvm use jruby"
>
> We have something like this in the Gemfile for our app:
>
> platforms :jruby do
>   gem 'activerecord-jdbc-adapter'
>   gem 'jdbc-mysql'
>   gem 'jruby-openssl'
> end
>
> platforms :ruby do
>   gem 'mysql2'
> end
>
> then you just "bundle install" and "gem install trinidad", and run "trinidad
> -t" and its just like running "rails server".  (The -t param tells jruby to
> use multithreaded mode, with only one copy of the app handling requests via
> multiple threads. If some aspect of your app is not threadsafe (doubtful
> these days), leave off the -t and it will start up multiple instances of the
> app a la Mongrel).
>
> We have found that if you give it enough RAM (like anything related to Java)
> the performance is great, on par with Passenger.
>
> As for downsides, we have bumped our knees on some rough edges, no doubt
> about that, but you trade that time and effort off against the time saved by
> not having to write your own spreadsheet editor and you will most likely
> come out way ahead in the end.
>
> Regards,
>
> John Lynch

-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby

Reply via email to