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

NullPointerException in DefaultStaticContentLoader#findStaticResource

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.18
    • Fix Version/s: 2.5.20, 2.6
    • Component/s: None
    • Labels:
      None
    • Environment:

      Tomcat 9 on Ubuntu 18 Java 8 struts 2.5.18

      Description

      pathPrefixes is null. The defaults that were loaded correctly in previous versions are now not loaded. The method setHostConfig does not get called like in previous versions.

      This causes all js files to not be found. For example 

      /struts/js/base/version.min.js

      /struts/js/base/jquery-2.2.4.min.js

      /struts/js/struts2/jquery.ui.struts2.min.js

      /struts/js/struts2/jquery.datatables.struts2.min.js

      /struts/js/plugins/jquery.dataTables.min.js

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yasserzamani Yasser Zamani
                Reporter:
                nikos nikos dimitrakas
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: