Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4416

LocalizedTextUtil should suppress exception with tomcat8

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.24
    • None
    • None

    Description

      running struts2 with tomcat-8.0.14 will throw exception.

      couldn't clear tomcat cache
      java.lang.NoSuchFieldException: resourceEntries
      	at java.lang.Class.getDeclaredField(Class.java:1953)
      	at com.opensymphony.xwork2.util.LocalizedTextUtil.clearMap(LocalizedTextUtil.java:859)
      	at com.opensymphony.xwork2.util.LocalizedTextUtil.clearTomcatCache(LocalizedTextUtil.java:842)
      	at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:821)
      	at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:797)
      	at com.opensymphony.xwork2.util.LocalizedTextUtil.findDefaultText(LocalizedTextUtil.java:214)
      	at com.opensymphony.xwork2.util.LocalizedTextUtil.getDefaultMessage(LocalizedTextUtil.java:666)
      	at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:542)
      	at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:370)
      	at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:208)
      	at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:123)
      	at com.opensymphony.xwork2.ActionSupport.getText(ActionSupport.java:103)
      

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            quaff Yanming Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: