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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13307

Need to specify classLoader when loading resources...

           Summary: Need to specify classLoader when loading resources...
           Product: Tomcat 4
           Version: 4.1.12
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In StringManager.java(line 115), ResourceBundle is used to load in a resource 
file.  No classloader is specified on this call, this causes the ClassLoader 
that ResourceBundle.class was loaded with to be used.

I'm trying to embed Tomcat into my application by using my own ClassLoader.  
Things work fine, except when Tomcat uses system classes to load resources.  
Since the system classes, like ResourceBundle, were loaded prior to my 
ClassLoader...Tomcat can't find the resource specified in its own jar files.

A more flexable approach would be to call ResourceBundle.getBundle
("bundlename", defaultLocale, getClass().getClassLoader()).

This would enable folks to more easily embed the catalina code in their systems.

Thanks,
Ray

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

Reply via email to