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

Tomcat8: null pointer exception every where

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.7, 3.9
    • None
    • None
    • None
    • tomcat 8.0.9, ubuntu 12.04 LTS

      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

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

              Created:
              Updated:
              Resolved: