Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-5561

Tomcat8: null pointer exception every where

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7, 3.9
    • Component/s: None
    • Labels:
      None
    • Environment:
      tomcat 8.0.9, ubuntu 12.04 LTS

      Description

      When running Ametys CMS with Tomcat 8.0.9, there is a null pointer exception when trying to log as an admin in the administration panel :

      The problems comes from servletContext.getRealPath :

      • not starting with "/" :
        servletContext.getRealPath("WEB-INF/data/administrator/admin.xml")
        returns null.
      • starting with "/" :
        servletContext.getRealPath("/WEB-INF/data/administrator/admin.xml")
        returns (java.lang.String) [...]cms/web/WEB-INF/data/administrator/admin.xml

        Attachments

          Activity

            People

            • Assignee:
              raphael Raphaël Franchet
              Reporter:
              glefebvre Grégory Lefebvre (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: