Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353125 - Jetty Maven Plugin: Changing pom.xml causes exception when webapp is restarted
Summary: Jetty Maven Plugin: Changing pom.xml causes exception when webapp is restarted
Status: CLOSED NOT_ECLIPSE
Alias: None
Product: Jetty
Classification: RT
Component: build (show other bugs)
Version: 7.5.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.5.x   Edit
Assignee: Michael Gorovoy CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-26 11:03 EDT by Michael Gorovoy CLA
Modified: 2011-07-27 13:52 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gorovoy CLA 2011-07-26 11:03:43 EDT
[INFO] restarting o.m.j.p.JettyWebAppContext{/,[file:/home/mgorovoy/code/work/jetty-app-overlays/target/tmp/webinf/, jar:file:/home/mgorovoy/.m2/repository/org/eclipse/jetty/tests/jetty-app-overlay-common/7.5.0-SNAPSHOT/jetty-app-overlay-common-7.5.0-SNAPSHOT.war!/, file:/home/mgorovoy/code/work/jetty-app-overlays/src/main/webapp/]},file:/home/mgorovoy/code/work/jetty-app-overlays/src/main/webapp/
2011-07-26 11:00:12.563:INFO::stopped o.m.j.p.JettyWebAppContext{/,[file:/home/mgorovoy/code/work/jetty-app-overlays/target/tmp/webinf/, jar:file:/home/mgorovoy/.m2/repository/org/eclipse/jetty/tests/jetty-app-overlay-common/7.5.0-SNAPSHOT/jetty-app-overlay-common-7.5.0-SNAPSHOT.war!/, file:/home/mgorovoy/code/work/jetty-app-overlays/src/main/webapp/]},file:/home/mgorovoy/code/work/jetty-app-overlays/src/main/webapp/
[INFO] Webapp source directory = /home/mgorovoy/code/work/jetty-app-overlays/src/main/webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes directory /home/mgorovoy/code/work/jetty-app-overlays/target/classes does not exist
[INFO] Context path = /
[INFO] Tmp directory = /home/mgorovoy/code/work/jetty-app-overlays/target/tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file = null
[INFO] Webapp directory = /home/mgorovoy/code/work/jetty-app-overlays/src/main/webapp
[INFO] Reconfiguring scanner after change to pom.xml ...
[ERROR] Error reconfiguring/restarting webapp after change in watched files
java.lang.NullPointerException
	at java.io.File.<init>(File.java:222)
	at org.mortbay.jetty.plugin.JettyRunMojo.restartWebApp(JettyRunMojo.java:471)
	at org.mortbay.jetty.plugin.JettyRunMojo$1.filesChanged(JettyRunMojo.java:444)
	at org.eclipse.jetty.util.Scanner.reportBulkChanges(Scanner.java:677)
	at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:542)
	at org.eclipse.jetty.util.Scanner.scan(Scanner.java:394)
	at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:345)
	at java.util.TimerThread.mainLoop(Timer.java:512)
	at java.util.TimerThread.run(Timer.java:462)
Comment 1 Jesse McConnell CLA 2011-07-26 16:25:27 EDT
Normally I wouldn't comment...but since its from another developer I figured I ought to.

jetty-maven-plugin bugs ought to be opened on the codehaus side....and actually when we find them here we probably ought to open an issue for it on that side and close the issue on the eclipse bugzilla side down with a pointer to the bug over there.
Comment 2 Michael Gorovoy CLA 2011-07-26 19:17:05 EDT
Whoops, you are absolutely correct, Jesse. I've been looking into another bug in Bugzilla, and opened a new one here on autopilot. I will move it over to JIRA shortly.
Comment 3 Michael Gorovoy CLA 2011-07-27 13:52:02 EDT
Opened JIRA issue for this problem http://jira.codehaus.org/browse/JETTY-1403.