https://bz.apache.org/bugzilla/show_bug.cgi?id=59206

            Bug ID: 59206
           Summary: When catalina.base is not specified, ConfigFileLoader
                    throws an NPE in a static initializer
           Product: Tomcat 7
           Version: 7.0.68
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: ashel...@amazon.com

Using Tomcat 7 as an embedded servlet and updating to Tomcat 7.0.68, we found
our application no longer started due to an ExceptionInInitializerError.

This problem was introduced by the change for
https://bz.apache.org/bugzilla/show_bug.cgi?id=56777, which includes
https://github.com/apache/tomcat70/blob/trunk/java/org/apache/tomcat/util/file/ConfigFileLoader.java.
This file, on line 37, loads the system property "catalina.base" and, when it
is not set, throws a NullPointerException.

It seems like it would be preferable if, when catalina.base is not specified,
to avoid this NPE.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to