Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: I've installed fresh Fedora 22 Server and Dogtag using instructions here: http://pki.fedoraproject.org/wiki/Quick_Start Right after pkispawn I try to connect to HTTPS server and get the following exception: type Exception report message An exception occurred processing JSP page /index.jsp at line 135 description The server encountered an internal error that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 135 132: } 133: 134: ServletContext kraContext = getServletContext().getContext("/kra"); 135: String kraName = kraContext.getServletContextName(); 136: String kraPath = kraContext.getContextPath(); 137: if (!"".equals(kraPath) && request.isSecure()) { 138: %> Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:571) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:497) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:276) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:549) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:308) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:168) java.security.AccessController.doPrivileged(Native Method) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:497) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:276) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:549) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:308) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:248) root cause java.lang.NullPointerException org.apache.jsp.index_jsp._jspService(index_jsp.java:200) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:497) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:276) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:549) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:308) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:168) java.security.AccessController.doPrivileged(Native Method) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:497) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:276) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:549) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:308) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:248) note The full stack trace of the root cause is available in the Apache Tomcat/7.0.59 logs. Version-Release number of selected component (if applicable): # rpm -qa | grep dogtag dogtag-pki-10.2.4-1.fc22.noarch dogtag-pki-console-theme-10.2.4-1.fc22.noarch dogtag-pki-server-theme-10.2.4-1.fc22.noarch How reproducible: Always Steps to Reproduce: 1. Install Fedora 22 Server 2. dnf update -y 3. reboot 4. dnf install 389-ds-base dogtag-pki 5. setup-ds.pl --silent\ General.FullMachineName=`hostname`\ General.SuiteSpotUserID=nobody\ General.SuiteSpotGroup=nobody\ slapd.ServerPort=389\ slapd.ServerIdentifier=pki-tomcat\ slapd.Suffix=dc=example,dc=com\ slapd.RootDN="cn=Directory Manager"\ slapd.RootDNPwd=Secret123 6. pkispawn (for CA) 7. pkispawm (for KRA) 8. open https://<IP>:8443 Actual results: NullPointerException report Expected results: Dogtag management interface Additional info: Tried to restart service with no luck.
The problem was caused by the change of behavior of getServletContext().getContext() in recent Tomcat version. It has been fixed in Dogtag 10.2.5-1. Could you please try again? Thanks.
The issue gone away with 10.2.5-1.f22, but it is still in updates-testing, not in stable.
Upstream ticket: https://fedorahosted.org/pki/ticket/1732
This issue no longer exists in the current release (10.2.6). See also PKI ticket #1407.