Been traveling quite a bit, and finally was able to get back to this.

I've tracked my changes here on this fork: http://github.com/eddies/ruote-kit

In addition to some minor changes to config/warble.rb, Gemfile, and
Rakefile, I also added the cloche_nolock parameter as noted because of
flock errors reported in the logs. Although the war deploys to Tomcat,
hitting the actual webapp (e.g. http://localhost:8080/_ruote/) renders
the default view, but without any of the stylesheets, etc. plus the
message "Resource not found".

The Tomcat logs show the following:
Apr 23, 2010 12:11:50 PM org.apache.catalina.core.ApplicationContext
log
INFO: Sinatra::RespondTo::UnhandledFormat:
Sinatra::RespondTo::UnhandledFormat
Apr 23, 2010 12:11:50 PM org.apache.catalina.core.ApplicationContext
log
INFO:   /Users/eddie/.bundle/jruby/1.8/gems/sinatra-respond_to-0.4.0/
lib/sinatra/respond_to.rb:222:in `respond_to'      /opt/apache-
tomcat-5.5.26/webapps/_ruote/WEB-INF/lib/ruote-kit/helpers/
render_helpers.rb:84:in `resource_not_found'

The jetty-rackup solution you posted *does* work for me as well, there
were a couple typos I fixed in this gist: http://gist.github.com/376473

If someone else wouldn't mind having a look at my fork of ruote-kit
and see if you can diagnose further, I'd appreciate it. Should just be
able to clone it, run "warble" and copy the resulting _ruote.war to
your servlet container (I tested with warbler 1.0.1 and Tomcat 5.5).

On Apr 8, 1:58 am, John Mettraux <[email protected]> wrote:
> On Thu, Apr 8, 2010 at 2:31 AM, Asier <[email protected]> wrote:
>
> > Nobody in the list is running ruote-kit with JRuby?
>
> The original is at
>
>  http://gist.github.com/359599
>
> This was done on MacOSX Snow Leopard, with rvm 1.2.6
>
> ---8<---
>
> #
> # pre-requesites : rvm 1.2.6 (http://rvm.beginrescueend.com/)
> #
>
> cd tmp/
> mkdir asier
> cd asier/
>
> git clone [email protected]:tosch/ruote-kit.git
>
> git clone git://github.com/geekq/jetty-rackup.git
>   # seehttp://github.com/geekq/jetty-rackup
>
> cd ruote-kit
> rvm use jruby
> rvm gemset create asier
> rvm gemset use asier
> vi .rvmc
>   # making sure it contains "rvm use jr...@asier"
>
> gem update --system
>   # had to upgrade my jruby rubygems to 1.3.6
>
> vi ~/.rvm/rubies/jruby-1.4.0/bin/gem
>   #
>   # had to make sure the bang is
>   #
>   # #!/usr/bin/env jruby
>   #
>   # thanks tohttp://www.ruby-forum.com/topic/207430
>
> vi Gemfile
>   #
>   # replace 'json' with 'json_pure'
>
> gem install jruby-openssl
> gem install rack bundler
>
> bundle install
>
> vi config.ru
>   #
>   # RuoteKit.configure do |config|
>   #
>   #   # storage mode
>   #   #config.mode = :transient
>   #
>   #   require 'ruote/storage/fs_storage'
>   #   config.set_storage(Ruote::FsStorage, 'work', 'cloche_nolock' => true)
>   #
>   #   # run a worker
>   #   config.run_worker = true
>   #
>   #   config.register do
>   #     # With this rackup I bundle as catchall, making it easy to experiment
>   #     catchall
>   #   end
>   # end
>
> ../jetty-rackup/jetty-rackup
>
> # going to
> #
> #  http://127.0.0.1:9292/
> #
> # will result in a 'resource not found exception'
>
> # have to go to
> #
> #  http://127.0.0.1:9292/_ruote
>
> --->8---
>
> It works for me.
>
> Best regards,
>
> --
> John Mettraux   -  http://jmettraux.wordpress.com

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to