jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11810] New: - <i18n:bundle> can't find bundles if not installed below WEB-INF
Date Mon, 19 Aug 2002 06:56:57 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=11810>.
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=11810

<i18n:bundle> can't find bundles if not installed below WEB-INF

           Summary: <i18n:bundle> can't find bundles if not installed below
                    WEB-INF
           Product: Taglibs
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: I18N Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: wosc@wosc.de


I wanted to use the i18n-taglib in several of my webapps, so I put the i18n.jar into 
TOMCAT_HOME/common/lib. The bundles of course reside below myWebapp/WEB-
INF/classes/path/to/package/*.properties.
But in this situation, the bundles can't be 
found and a MissingResourceException is thrown.

I suspect this problem lies a bit outside 
the responsibility of the BundleTag, or the Taglib in general, because BundleTag.findBundle()

must rely on java.util.ResourceBundle.getBundle(), thus a ClassLoader and the CLASSPATH, in

order to find the bundles.

This issue is easily solved by putting the i18n.jar into WEB-
INF/lib, or maybe alternatively by adding each WEB-INF/classes to the system CLASSPATH.

The 
documentation only talks about putting the jar to WEB-INF/lib, so no real fault here, but
I think it 
would be nice to add something like "if you put it to common/lib, you'll have to adjust the
system-
CLASSPATH or you'll run into trouble".

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message