DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23385>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23385 Errors when customizing localization resource bundles Summary: Errors when customizing localization resource bundles Product: Jetspeed Version: 1.4b5-dev / CVS Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Major Priority: Other Component: Login AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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. This problem is universal. All calls to the Localization.getString(rundata, string_key) should be changed to the Localization.getString(string) or Localization.getString(string, httprequest) or one of its derivatives. Dmitry --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
