« Return to Thread: jruby-rack issues and doubts

jruby-rack issues and doubts

by David Calavera :: Rate this Message:

Reply to Author | View in Thread

Hi, I'm trying to configure a jruby on rails app on tomcat and jruby-rack and I found an issue that I don't understand.

The problem is that I have two more filters defined into my web.xml and I want that RackFilter will be executed the second one, so, the order I've declared them and their mappings in the file is this:

     - MyFilter1
     - RackFilter
     - MyFilter2

But, when I start tomcat, the order that it executes filters' chain is this:

    - RackFilter
    - MyFilter2
    - MyFilter1

No matters where I'll declare RackFilter and it's mapping but it's always executed first.

By the way, I've read this in the jruby-rack wiki:

   The application can also be configured to dispatch through a servlet instead of a filter if it suits your environment better.

But I can't find any example of how to do it so because the DefaultServletDispatcher needs a ServletRackContext to be initilized and I can't define it in the web.xml

Any help will be really appreciated.

Cheers

--
David Calavera
http://www.thinkincode.net

 « Return to Thread: jruby-rack issues and doubts