[jboss-jira] [JBoss JIRA] (WFLY-9131) Wildfly 10.1.0 Fails to load JSF message bundle from Java class

Bobby Bassman (JIRA) issues at jboss.org
Thu Jul 27 16:31:00 EDT 2017


     [ https://issues.jboss.org/browse/WFLY-9131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bobby Bassman updated WFLY-9131:
--------------------------------
    Attachment: com.rfdinc.efile.bp.resources.zip


> Wildfly 10.1.0 Fails to load JSF message bundle from Java class
> ---------------------------------------------------------------
>
>                 Key: WFLY-9131
>                 URL: https://issues.jboss.org/browse/WFLY-9131
>             Project: WildFly
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 10.1.0.Final
>         Environment: Windows 10
> Wildfly 10.1.0
>            Reporter: Bobby Bassman
>            Assignee: Farah Juma
>         Attachments: WFLY9131_01.png, WFLY9131_02.png, com.rfdinc.efile.bp.resources.zip
>
>
> Have a war application which deploys and runs correctly on EAP 6.4. When deploying on WIldfly 10.1.0, none of the message bundle lookups work, resulting in ???zxcv??? text on JSF pages.
> This application has the following in faces-config.xml:
> <application>
>   <locale-config>
>     <default-locale>en</default-locale>
>     <supported-locale>en_US</supported-locale>
>     <supported-locale>en</supported-locale>
>   </locale-config>
>   <message-bundle>com.rfdinc.efile.bp.resources.CombinedMessageResources</message-bundle>
>   <resource-bundle>
>     <base-name>com.rfdinc.efile.bp.resources.CombinedMessageResources</base-name>
>     <var>msg</var>
>   </resource-bundle>
> </application>
> Here, com.rfdinc.efile.bp.resources.CombinedMessageResources is a Java class which extends java.util.ResourceBundle and implements most of the methods of java.util.ResourceBundle.
> This technique works correctly under EAP 6.4. Under Wildfly 10.1.0, however, none of the class methods ever get called. This was verified by placing logger messages throughout com.rfdinc.efile.bp.resources.CombinedMessageResources.
> Replacing <message-bundle> and <base-name> with a 'properties' file works, but this particular Java class allows us to combine multiple property files into a single resource bundle.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list