DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31169>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31169

QueryLoader cannot locate properties file on weblogic

           Summary: QueryLoader cannot locate properties file on weblogic
           Product: Commons
           Version: 1.0 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DbUtils
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


QueryLoader uses QueryLoader.class.getResourceAsStream(path) which looks for a 
resource relative to the current class (QueryLoader), you can use / to indicate 
classpath root but this does not work with weblogic possibly due to the way in 
which weblogic manages the classpath for .war files.

If I use getClass().getClassLoader().getResourceAsStream(path) instead and dont 
use leading / for the path then this works locally and for weblogic.

See method: loadQueries(String path)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to