Community
Participate
Working Groups
Build Identifier: 20110301-1815 I'm trying to following the solution provided here: http://stackoverflow.com/questions/4988019/jetty-maven-plugin-is-ignoring-custom-webdefault-xml to get around the static file locking issues on Windows. Here's the output when the jetty server started [INFO] Web defaults = src/main/resources/webdefault.xml [INFO] Web overrides = none but after a while, a java exception thrown java.lang.ClassNotFoundException: org.mortbay.jetty.servlet.DefaultServlet Reproducible: Always Steps to Reproduce: 1. copy webdefault.xml from jetty.jar 2. set "useFileMappedBuffer" to "false" like the followings: <init-param> <param-name>useFileMappedBuffer</param-name> <param-value>false</param-value> </init-param> 3. add the followings under <plugins> in pom.xml <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>8.0.0.M2</version> <configuration> <webAppConfig> <defaultsDescriptor>src/main/resources/webdefault.xml</defaultsDescriptor> <contextPath>/mycontext</contextPath> </webAppConfig> <scanIntervalSeconds>5</scanIntervalSeconds> </configuration> </plugin> 4. $ mvn clean jetty:run
Created attachment 196089 [details] Exception thrown during startup using maven FYI, i'm using Stripes framework 1.5.6 with this
Gilbert, I think you've copied the webdefaults.xml from the older jetty version, as the DefaultServlet in jetty-7.x onwards is at the org.eclipse package namespace. Try extracting and modifying webdefaults.xml from a jetty-7 or jetty-8 jar. I'll close this issue for now, as I'm 99.999999% sure that's the problem. If not, please do reopen. Jan