Bug 10334 - BundleSupport fails to find resources in a web app
Summary: BundleSupport fails to find resources in a web app
Status: CLOSED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: 1.0
Hardware: All All
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-28 17:53 UTC by Paul Bonfanti
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Bonfanti 2002-06-28 17:53:25 UTC
BundleSupport fails to find resources in a web app when standard.jar is placed 
in the classpath instead of the web app.  This can be seen by removing 
standard.jar from the standard-examples.war and placing it in the classpath.  
Then try the i18n and formatting examples.  The fix is to modify the 
ResourceBundle.getBundle() calls to take "Thread.currentThread
().getContextClassLoader()" as a third parameter so it will use the current 
context classloader instead of the classloader that loaded BundleSupport to 
find the resource.
Comment 1 Jan Luehe 2002-06-28 22:17:10 UTC
Fixed.