JRuby-Rack / Bea Weblogic 9.2 getRealPath Bug
---------------------------------------------
Key: JRUBY-2908
URL: http://jira.codehaus.org/browse/JRUBY-2908
Project: JRuby
Issue Type: Bug
Environment: JRuby-Rack 0.9.1 / Bea Weblogic 9.2
Reporter: Joern Hartmann
Assignee: Thomas E Enebo
Attachments: servlet_helper.diff
Due to a bug in Bea Weblogic 9.2 (and probably earlier versions as well)
ServletContext.getRealPath() returns null if you deploy an application from a
WAR-File. JRuby Rack is using this method to determine the root directory of a
rails application which therefore fails to load.
I have attached a diff file to this bug report that contains a workaround for
this issue. It patches the "real_path" method in "servlet_helper.rb" to make it
use getResource() as a fallback mechanism if getRealPath() fails.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email