Originally reported on Google Code with ID 199
What steps will reproduce the problem?
1.deploy gitblit.war to a weblogic server container
2.start the JVM
3.not the exception
What is the expected output? What do you see instead?
expected the ap to deploy, but the deployment failed.
What version of the product are you using? On what operating system?
1.2.1, HPUX, Java-6, Weblogic 10.3.4
Please provide any additional information below.
It appears that Giblit.java is trying to call
SevletContext.getRealPath("/") - which returns a NULL when deployed as a war file -
as stated in the API for getRealPath():
"This method returns null
if the servlet container cannot translate the virtual path
to a real path for any reason (such as when the content is
being made available from a <code>.war</code> archive).
"
See also http://stackoverflow.com/questions/536228/why-does-getrealpath-return-null-when-deployed-with-a-war-file
This was not happening in v.1.1.0.
Stack trace:
<[ACTIVE] ExecuteThread: '0' f
or queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1360160594805>
<BEA-101162> <User defined liste
ner com.gitblit.GitBlit failed: java.lang.NullPointerException.
java.lang.NullPointerException
at java.io.File.<init>(File.java:231)
at com.gitblit.GitBlit.contextInitialized(GitBlit.java:3205)
at com.gitblit.GitBlit.contextInitialized(GitBlit.java:3196)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
....
Reported by jaymeyer on 2013-02-06 16:02:03
Originally reported on Google Code with ID 199
Reported by
jaymeyeron 2013-02-06 16:02:03