The current web.xml has the following defined for searching localizable
messages (Stripes) :
<init-param>
<param-name>LocalizationBundleFactory.ErrorMessageBundle</param-name>
<param-value>CoreResources</param-value>
</init-param>
Now, I found the following error during some initial testing :
Jan 11, 2009 3:18:01 PM org.apache.catalina.core.ApplicationDispatcher
invoke
SEVERE: Servlet.service() for servlet
org.apache.jspwiki.jsp.templates.default_.ProfileTab_jsp threw exception
java.util.MissingResourceException: Could not find an error message with
key: profile.nameCollision
at
net.sourceforge.stripes.validation.LocalizableError.getMessageTemplate(LocalizableError.java:109)
at
net.sourceforge.stripes.action.SimpleMessage.getMessage(SimpleMessage.java:91)
at
net.sourceforge.stripes.validation.SimpleError.getMessage(SimpleError.java:102)
at
net.sourceforge.stripes.tag.ErrorsTag.doEndTag(ErrorsTag.java:349)
at
org.apache.jspwiki.jsp.templates.default_.ProfileTab_jsp._jspService(Unknown
Source)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Adding to CoreResource.properties the following key:
profile.nameCollision=The {0} is already taken.
solves the problem, but this key is already present in
templates/default.properties.
Is this the intended solution, or should the default.properties be added to
LocalizationBundleFactory.ErrorMessageBundle, or something else ?
regards,
Harry