struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <>
Subject Re: Struts2 Resource Bundle Reload with WebSphere ( IBM Runtime)
Date Fri, 28 Feb 2014 08:40:48 GMT

2014-02-27 23:39 GMT+01:00 Gaurav Daga <>:
> Hello Struts2 Dev Group,
> I have been facing one issue with Struts2 framework while running it on IBM
> WebSphere Portal Server.  For the background purpose, I am having multiple
> WAR (running Struts2 Portlet and Struts2 Servlet Framework) files within
> single EAR.
> We have resource bundle coming from the Database and thus being shared in
> multiple WAR Files. We have configured the resource bundle at global, by
> providing information in
> Now when I enable the development mode, Struts2 Resource bundle is behaving
> in strange mode ie initially Resource bundle was not getting picked when I
> declared them in struts.xml, however when I moved them to
> it started working. Still for each Resource Bundle call I am seeing
> following error in the logs :
> java.lang.NoSuchFieldException: cacheList
> at java.lang.Class.getDeclaredFieldImpl(Native Method)
> at java.lang.Class.getDeclaredField(
> at
> com.opensymphony.xwork2.util.LocalizedTextUtil.clearMap(
> at
> com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(
> at
> com.opensymphony.xwork2.util.LocalizedTextUtil.findDefaultText(
> at
> com.opensymphony.xwork2.util.LocalizedTextUtil.getDefaultMessage(
> at
> com.opensymphony.xwork2.util.LocalizedTextUtil.findText(
> I looked at the source code and found that LocalizedTextUtil class is
> doing something weird [] where it tries to access
> a field called cacheList inside java.util.ResourceBundle, however IBM
> Implementation of this class doesn't have this field and it results in
> failure.
> I believe framework should not try to manipulate something like this while
> performing operation on external object, where it doesn't have control and
> feels wrong to me.  Besides my opinion,  I found on Internet that disabling
> Struts dev mode, will make this problem disappear from the logs however it
> would continue to happen and would be a performance hit as there is
> exception floating and not being taken care correctly.
> Has anyone found any solution to this, other than disabling Dev Mode? I
> would be happy to assist in modifying this class so as it doesn;t blow but
> would like to touch base with anyone from the Framework development team
> who can give me some idea around the same.
> *Thanks & Regards/ **सादर**,*
> *Gaurav Daga*
> * <> | +1.201.308.3242 | Web
> Presence <>  *
> Do not follow where the path may lead. Go instead where there is no path
> and leave a trail. - Harold R. McAlindon

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message