tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13307] - Need to specify classLoader when loading resources...
Date Mon, 26 Jan 2004 05:01:46 GMT
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...





------- Additional Comments From ray.roberts@lmco.com  2004-01-26 05:01 -------
It's been awhile since I looked at this code, and I don't have the source in 
front of me now.  But going from my first paragraph, If you don't specify a 
classLoader to ResourceBundle, then it uses the classloader that ResourceBundle 
was loaded with.(<--Which is not necessarily the classloader that the calling 
class was loaded with.).

If that doesn't wash with what you know, let me know and I'll investigate it 
some more when I get back to work and have access to the source.

I gave up on trying to embed Catalina within my application.  We had originally 
been using Jetty, but were told at the time that we weren't allowed to use it 
because of it's Foreign origins.(You know...you can't trust those Aussies. ;-
) )  I then tried to embed Tomcat, but found that it was easier to write my own 
simple servlet container.  Eventually, we convinced our security folks to trust 
the Aussies and we reverted to using Jetty.  We still use Tomcat for most of 
our stuff, but Jetty is infinitely easier to embed.

Hope this helps.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message