How does one fix a "The Resource Bundle Must Containt Title" error?

460 views Asked by At

We are using WAS 7 server and also WebSphere portal server 6.1 on top of it. I imported my application into RAD, but there is an compilation error in the portal.xml file (located inside web-inf).

Error Message :

 IWAL0056E :THE RESOURCE BUNDLE MUST CONTAIN TITLE, SHORT-TITLE AND KEYWORDS.

in the following lines (portal.xml)

<supported-locale>en</supported-locale>
<supported-locale>es</supported-locale>

Could you please guide me to get out of this compilation errors...

Thanks

2

There are 2 answers

2
Jops On BEST ANSWER

This means that you didn't define the required entries in the resource bundle .properties file. Update it to reflect the following:

javax.portlet.title=yourTitle
javax.portlet.short-title=yourShortTitle
javax.portlet.keywords=yourKeywords

These values should directly map to the one defined inside portlet-info of portal.xml.

0
McDowell On

You generally use the <resource-bundle> element with <supported-locale> (see PLT.25.10 Resource Bundles in the JSR 286) - the bundles are loaded off your classpath if memory serves.

In your case, the files WEB-INF/classes/foo/bar.properties and WEB-INF/classes/foo/bar_es.properties should satisfy <resource-bundle>foo.bar</resource-bundle>.

These would have to contain the keys Jops outlined in his answer.