Community
Participate
Working Groups
when you run jetty with the jetty-maven-plugin and reload a webapp, ServletContext.getAttribute("javax.servlet.context.tempdir") will return null because of this line in AbstractJettyMojo.configureWebApplication the tmp directory is only set once: if ( webAppConfig.getTempDirectory() == null && tmpDirectory != null) { ... webAppConfig.setTempDirectory(tmpDirectory); but WebAppContext.setTempDirectory sets the attribute "javax.servlet.context.tempdir" summary: -you stop the webapp -all attributes are cleared -WebAppContext.setTempDirectory is not called anymore so "javax.servlet.context.tempdir" will not be set
Fixed for jetty-7 head. svn rev 3270.