Error in properties file configuration

0

I'm trying to set up a properties file. I followed some tutorials but without success. I'm having the following error:

  

Caused by: java.util.MissingResourceException: Can not find bundle for   base name src.main.resources.properties.messages, locale pt

My faces-config file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd"
    version="2.2">
    <application>
        <locale-config>
            <default-locale>pt</default-locale>
            <!-- <supported-locale>en</supported-locale> -->
        </locale-config>
        <resource-bundle>
            <base-name>src.main.resources.properties.mensagens</base-name>
            <var>msg</var>
        </resource-bundle>
    </application>
</faces-config>

Does anyone know how to solve this?

    
asked by anonymous 08.06.2016 / 05:23

1 answer

0

After breaking my head and testing here and there, I left my faces-config.xml the path of the file like this:

<base-name>properties.mensagens</base-name>

You did not have to pass the whole name.

    
12.06.2016 / 00:15