Static content in/public

As expected, JRuby is placing 404.html and 500.html in the root of the
war instead of under WEB-INF/public. The problem is that rails is trying
to get it under /WEB-INF/public and not finding it:

Rendering /opt/rails-app/webapps/ROOT/WEB-INF/public/500.html (500
Error)
/!\ FAILSAFE /!\ Wed Oct 01 15:41:35 -0500 2008
Status: 500 Internal Server Error
No such file or directory - File not found -
/opt/rails-app/webapps/ROOT/WEB-INF/public/404.html

Is additional config required? I’m running Tomcat 6.

Thanks,
Chris

On Wed, Oct 1, 2008 at 3:40 PM, Chris W. [email protected]
wrote:

Is additional config required? I’m running Tomcat 6.
What version of Rails? 2.1 has Rails.public_path which is managed
automatically by JRuby-Rack, and should not have this problem. Earlier
versions may require workarounds, but they should be straightforward.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I’ve frozen 2.1.1 into the project.

On 10/1/08 2:18 PM, “Nick S.” [email protected] wrote:

On Wed, Oct 1, 2008 at 3:40 PM, Chris W. [email protected]
wrote:

Is additional config required? I’m running Tomcat 6.
What version of Rails? 2.1 has Rails.public_path which is managed
automatically by JRuby-Rack, and should not have this problem. Earlier
versions may require workarounds, but they should be straightforward.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I still think it should be handled, I suspect there’s some
higher-level exception that’s occurring outside of the normal
controller rescue. Can you look through your application server log
and see if you see anything?

/Nick

On Wed, Oct 1, 2008 at 4:24 PM, Chris W. [email protected]
wrote:

it under /WEB-INF/public and not finding it:
automatically by JRuby-Rack, and should not have this problem. Earlier


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email