portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Sklyut <Dmitry_Skl...@orcom.com>
Subject Patch for JLoginUser Customization issue
Date Tue, 23 Sep 2003 20:16:40 GMT
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:

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())
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




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.  

  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message