LoadService loadPaths filled with unix paths and fails on windows
-----------------------------------------------------------------
Key: JRUBY-5505
URL: http://jira.codehaus.org/browse/JRUBY-5505
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6RC2
Environment: Weblogic 10, Windows7
Reporter: Igor Spasic
Assignee: Thomas E Enebo
I have deployed web application on weblogic app server, that internally uses
jruby.
Ruby script i need to execute requires 'rubygems' - and, since it can't be
found, LoadService comes to method:
protected LoadServiceResource tryResourceFromLoadPathOrURL(SearchState state,
String baseName, SuffixType suffixType)
There is a loop over loadPath (LoadService.java, line #1049). One of these
elements is an absolute path to where the application is deployed, but it
starts with unix root ('/'). Later, this path is checked if absolute (new
File().isAbsolute), and that fails on Windows. As a result, an exception is
thrown.
Solution would be to fix loadPaths for target OS as I saw you did on different
systems.
--
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