| Issue 340: | FileNotFoundException running Gerrit from Eclipse | |
| Back to list |
Sign in to add a comment
|
Affected Version: 2.0.25-SNAPSHOT
What steps will reproduce the problem?
1. Launch pgm_daemon from Eclipse
2. Observe crash.
The problem here is GerritLauncher. Its assuming we are started from a WAR
file, but we weren't when we were started from Eclipse. The later code
within JettyServer's makeContext() method really wants the path of the WAR
on disk so it can setup the resource location for the application's web
context, but there's no WAR when we were launched by Eclipse so we get this
funny FileNotFoundException("NOT_ARCHIVED") coming back.
We need to find a way to launch the context without a WAR for debugging
purposes. Otherwise we have to use a really horrible workaround.
Current workaround:
1) Run `mvn package` to create the WAR.
2) Clone pgm_daemon launch configuration.
3) Move to Classpath tab
4) Remove project "gerrit-war"
5) "Add JARs ..."
6) Change filter to "*.war"
7) Select "gerrit-2.0.25-SNAPSHOT.war" under /gerrit-war/target
Nov 21, 2009
#1
sop@google.com
Owner:
s...@google.com
Dec 7, 2009
Fixed by I7dfbc0654cdc10099fb3de3041e615a9fda5fdb4
Status:
Fixed
Labels: FixedIn-2.0.25
Dec 18, 2009
(No comment was entered for this change.)
Labels:
FixedIn-2.1
Oct 21, 2012
(No comment was entered for this change.)
Status:
Released
|
||||||||||
| ► Sign in to add a comment | |||||||||||