Foren

Can't find bundle for base name com.liferay.portlet.StrutsResourceBund

Daniel Clemente Laboreo, geändert vor 15 Jahren.

Can't find bundle for base name com.liferay.portlet.StrutsResourceBund

New Member Beiträge: 14 Beitrittsdatum: 21.07.08 Neueste Beiträge
Hi, I'm seeing this error after deploying:


[java] 11:30:50,170 INFO [PortletHotDeployListener:126] Registering portlets for mi_portlet
[java] 11:30:50,186 WARN [PortletHotDeployListener:249] Can't find bundle for base name com.liferay.portlet.StrutsResourceBundle, locale es_ES
[java] 11:30:50,187 WARN [PortletHotDeployListener:249] Can't find bundle for base name com.liferay.portlet.StrutsResourceBundle, locale en_US
[java] 11:30:50,187 WARN [PortletHotDeployListener:249] Can't find bundle for base name com.liferay.portlet.StrutsResourceBundle, locale en_US
[java] 11:30:50,187 WARN [PortletHotDeployListener:249] Can't find bundle for base name com.liferay.portlet.StrutsResourceBundle, locale en_US
[java] 11:30:50,190 WARN [PortletHotDeployListener:249] Can't find bundle for base name com.liferay.portlet.StrutsResourceBundle, locale ca_ES
[java] 11:30:50,190 WARN [PortletHotDeployListener:249] Can't find bundle for base name com.liferay.portlet.StrutsResourceBundle, locale en_US
[java] 11:30:50,195 INFO [PortletHotDeployListener:351] Portlets for mi_portlet registered successfully



I have in my portlet.xml

<supported-locale>ca</supported-locale>
<supported-locale>en</supported-locale>
<supported-locale>es</supported-locale>
<supported-locale>ca_ES</supported-locale>
<supported-locale>en_US</supported-locale>
<supported-locale>es_ES</supported-locale>
<resource-bundle>com.liferay.portlet.StrutsResourceBundle</resource-bundle>



The <resource-bundle> is the same as in Liferay (at portlet-custom.xml).
My portlet is on a .war file and uses PortalClassLoader; it is based on a Struts portlet from Liferay. The files Language.properties and Language_es.properties etc. are in content/classes.

Do you know how to make Language.properties work in a .war?
C Cao, geändert vor 12 Jahren.

RE: Can't find bundle for base name com.liferay.portlet.StrutsResourceBund

New Member Beiträge: 5 Beitrittsdatum: 24.05.11 Neueste Beiträge
the same in 6.0.6
thumbnail
Thiago Leão Moreira, geändert vor 12 Jahren.

RE: Can't find bundle for base name com.liferay.portlet.StrutsResourceBund

Liferay Legend Beiträge: 1449 Beitrittsdatum: 10.10.07 Neueste Beiträge
StrutsResourceBundle belongs to the portal classloader and won't be available in your portlet war. My suggestion is to use the tag as

    <resource-bundle>content/Language</resource-bundle>


Name of the resource bundle containing the language specific
portlet informations in different languages (Filename without
the language specific part (e.g. _en) and the ending (.properties).