https://issues.apache.org/bugzilla/show_bug.cgi?id=55231

            Bug ID: 55231
           Summary: NPE and incorrect version detection in JspC
           Product: Tomcat 8
           Version: trunk
          Hardware: PC
                OS: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
          Assignee: dev@tomcat.apache.org
          Reporter: jboy...@apache.org

JspC's JspConfig now reads version and jsp-config information from the
ServletContext. 

It uses getMajorVersion() which returns the maximum version supported by the
container. It should use getEffectiveVersion() to use the version of the web
application.

ServletContext.getJspConfigDescriptor() can return null if there is no
<jsp-config> in the web.xml. JspConfig does not allow for this and will throw a
NPE e.g. if there is no web.xml in the application.

-- 
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