« Return to Thread: Merb app. deployed to Websphere 6.1 fails on both AIX and Windows

Re: Merb app. deployed to Websphere 6.1 fails on both AIX and Windows

by Wes Gamble :: Rate this Message:

Reply to Author | View in Thread

Hmmm...

I removed the RackFilter from my web.xml file, so it is _not_ being
used.  I see that the Rack::Adapter::Rails module is in the
jruby-rack-0.9.1.jar file.
I further see how the RackFilter sets the "rack.dynamic.requests.only"
environment hash key, so it makes sense that the Rack handler and the
RackFilter are mutually exclusive.

So I'm wondering why the Rack handler doesn't seem to be getting used.

I see this line in the initialize of the Rack::Adapter::Rails class:

  @public = options[:public]       || ::File.join(@root, "public")

My guess is that the static files are being looked for under /public,
instead of under / which is where warbler has put them in the WAR file.

So:

How do I pass the :public option to the Rack handler?

Or

How do I force the static files to be placed in /public by Warbler so
that the lookup in /public will work?

Thanks,
Wes

Nick Sieger wrote:

> On Wed, Aug 6, 2008 at 11:27 PM, Wes Gamble <weyus@...> wrote:
>
>  
>> Is this "Rack handler" something other than the RackServlet?  If so, how do
>> I use it?
>>    
>
> Yes. It's for Rails apps; enabled by default but disabled if you use
> the RackFilter. The code is here:
>
> http://git.caldersphere.net/?p=jruby-rack.git;a=blob;f=src/main/ruby/rack/adapter/rails.rb#l19
> http://git.caldersphere.net/?p=jruby-rack.git;a=blob;f=src/main/ruby/rack/adapter/rails.rb#l49
>
> /Nick
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>
>  

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Merb app. deployed to Websphere 6.1 fails on both AIX and Windows