Jürgen Weber created ROL-1948:
---------------------------------
Summary: getRealPath() null not handled
Key: ROL-1948
URL: https://issues.apache.org/jira/browse/ROL-1948
Project: Roller
Issue Type: Bug
Components: Configuration & Settings
Affects Versions: 5.0
Reporter: Jürgen Weber
Assignee: Roller Unassigned
I tryed to deploy the roller war file by putting a roller.xml into
conf/Catalina/localhost
<Context path="/roller"
docBase="/roller-weblogger-5.0.1-tomcat/webapp/roller-5.0.1-tomcat"
Roller dies without any log entries, there is only on the console
Nov 14, 2012 1:17:40 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
in logs/localhost.2012-11-14.log there is
java.lang.NullPointerException
at
org.apache.roller.weblogger.ui.core.RollerContext.contextInitialized(RollerContext.java:112)
This is because String ctxPath = servletContext.getRealPath("/"); is null
and the next line is
if(!ctxPath.endsWith(File.separator))
which results in NPE
This should be handled.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira