The following issue has been updated:
Updater: Jeremy Ford (mailto:[EMAIL PROTECTED])
Date: Sun, 29 Aug 2004 3:34 PM
Comment:
I have changed J1 to now use the CustomLocalization service instead of Turbine's
Localization service. Let me know if this resolves your issue.
Changes:
assignee changed from Jetspeed Developer Mailing List
description changed from 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 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
environment changed from Operating System: Windows NT/2K
Platform: PC to Operating System: Windows NT/2K
Platform: PC
priority changed to Blocker
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/JS1-396?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/JS1-396
Here is an overview of the issue:
---------------------------------------------------------------------
Key: JS1-396
Summary: Errors when customizing localization resource bundles
Type: Bug
Status: Unassigned
Priority: Blocker
Project: Jetspeed
Components:
Login
Versions:
1.4b5-dev / CVS
Assignee:
Reporter: Dmitry Sklyut
Created: Wed, 24 Sep 2003 1:47 PM
Updated: Sun, 29 Aug 2004 3:34 PM
Environment: Operating System: Windows NT/2K
Platform: PC
Description:
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
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]