Hi All,
While working through the Portlet Tutorial I stumbled on the issue with JLoginUser class, where a "Horrible Error" was dumped to the screen.
Steps to reproduce:
1) Create a custom MyCustomLocalization_en.properties file in new package "com.somethig.or.other.modules.localization" with only the following key (so that we know it works):
TOP_TITLE=Welcome to My Portal
2) Modify TurbineResources.properties to set:
module.packages=com.something.or.other.modules
locale.default.bundles=com.something.or.other.modules.localization.ViosPortalLocalization,org.apache.jetspeed.modules.localization.JetspeedLocalization
3) Rebuild the Jetspeed war and deploy. The site should come up with a page title of "Welcome to My Portal"
4) Try to login with admin/turbine (invalid password) - this will generate a "Horrible Error".
The fix was to replace all of the deprecated Localization.getString(rundata, string_key) with Localization.getString(string_key, rundata.getRequest()) calls.
This way JetspeedLocalizationService.getString(String bundleName, Locale locale, String key) is called. Prior to the change only the default bundle was found and MissingResourceException was generated for the "PASSWORDFORM_FAILED_MSG" key.
Thanks
Dmitry
<<JLoginUser.java>>
NOTICE: This communication may contain proprietary or other confidential business information of Orcom Solutions, Inc. If you are not the intended recipient or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received. In addition, you should not print, copy, retransmit, disseminate, or otherwise use the information. Thank you.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
