
[ http://jira.qos.ch/browse/CAL-8?page=com.atlassian.jira.plugin.system.issuet... ] Nick Belaevski commented on CAL-8: ---------------------------------- The problem still exists in my testing. Example configuration to reproduce: JBoss AS and EAR project. EJB module contains enum with messages, while web module contains message bundle. In this case declaredClass class loader points to EAR/EJB class loader, but WAR classes/files are not available from it. Using Thread.currentThread().getContextClassLoader() fixes the problem.
MessageConveyer.lookup() uses wrong classloader -----------------------------------------------
Key: CAL-8 URL: http://jira.qos.ch/browse/CAL-8 Project: CAL10N Issue Type: Bug Environment: cal10n 0.7 Reporter: Pete Muir Assignee: Ceki Gulcu
MessageConveyer uses this.getClass().getClassLoader() as the classloader to use to search for resource bundles. If you wish to install cal10n as a installed library in an application server (or in any case where the cal10n jar is placed on a parent classlaoder), the classloader of the classes using cal10n may not be searched for resource bundles. I would suggest using declaredClass.getClassLoader().
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira