Could not reload resource bundles java.lang.NoS...

在使用struts2發佈到weblogic10的時候報這個異常 java

Could not reload resource bundles java.lang.NoSuchFieldException: cacheList web

You can't work with Struts 2 in devMode and Websphere. There isn't many information on the Internet (in French) but what I can understand with my limited French knowledge is that you have to put the server with production settings. 

I mean that your struts.xml must be like this to make Struts2 work on Websphere:
<struts>
   <constant name="struts.devMode" value="false" />
   <constant name="struts.i18n.reload" value="false" />
   <constant name="struts.configuration.xml.reload" value="false" />
   ...
</struts>

 The reason that why is this happening is not very clear. The blog explains that maybe is for a different JVM implementation by IBM and maybe it differs in the implementation of the ResourceBundle class that has no private field cacheList and then raises an error when it reloads the i18n labels.
相關文章
相關標籤/搜索