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

NullPointerException in DefaultStaticContentLoader#findStaticResource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.18
    • 2.5.20, 6.0.0
    • None
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: