You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Deploy gitblit without the file /WEB-INF/web.properties
2. Start the application
What is the expected output? What do you see instead?
Gitblit startup fails with a NullPointer
java.lang.NullPointerException
#011at java.io.File.<init>(File.java:232)
#011at com.gitblit.WebXmlSettings.<init>(WebXmlSettings.java:54)
#011at com.gitblit.GitBlit.contextInitialized(GitBlit.java:1444)
#011at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4765)
#011at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5260)
#011at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
#011at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
#011at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:128)
#011at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:151)
#011at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:140)
#011at java.security.AccessController.doPrivileged(Native Method)
#011at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:840)
#011at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
#011at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:124)
What version of the product are you using? On what operating system?
0.7.0
Please provide any additional information below.
The javadoc of the method context.getRealPath says that it can return null. I'm not
sure why it does that in our case. Maybe the app is still packed when the method is
called.
An obvious workaround is to add an (empty) file "/WEB-INF/web.properties"
Reported by stefanlay1 on 2012-02-22 15:51:38
The text was updated successfully, but these errors were encountered:
Originally reported on Google Code with ID 67
Reported by
stefanlay1
on 2012-02-22 15:51:38The text was updated successfully, but these errors were encountered: