Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321749 - 8.0.0.M0 property useFileMappedBuffer doesn't work
Summary: 8.0.0.M0 property useFileMappedBuffer doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: 8.0.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 7.1.x   Edit
Assignee: Michael Gorovoy CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 11:50 EDT by Nick Klauer CLA
Modified: 2010-09-27 23:14 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Klauer CLA 2010-08-04 11:50:00 EDT
Build Identifier: 

In trying to fix the issue related to Windows File Locking (http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows) I applied the changes to my web.xml and webdefault.xml.  I also specified on the pom.xml (Maven project) the property <webDefaultXml>src/main/.../webdefault.xml</webDefaultXml> which was the file pulled out and modified as stated in the link above.

I tried changing a file after running 'mvn jetty:run' but was thrown errors related to file locking.

Switching the jetty-maven-plugin from 8.0.0.M0 to 7.1.5.v20100705 fixed the problem, so I'm thinking some sort of regression occurred in supporting this.

Reproducible: Always

Steps to Reproduce:
1. create a blank web application for Maven.
2. use the jetty-maven-plugin version 8.0.0.M0:
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>7.1.5.v20100705</version>
3. Specify in <configuration> the following additional line:
<webDefaultXml>${basedir}/src/main/resources/webdefault.xml</webDefaultXml>
4. Add an index.html or some other static file that Jetty will recognize and load.
5. 'mvn clean install jetty:run'
6. Try editing an index.html or other file that was preloaded.
Comment 1 Jan Bartel CLA 2010-09-27 04:16:39 EDT
Michael,

As the possessor of a windows environment, could you test with the latest jetty-8.0.0.M2-SNAPSHOT? I have pushed a snapshot recently, so you wont need to build
jetty-8 locally.

thanks
Jan
Comment 2 Nick Klauer CLA 2010-09-27 19:48:48 EDT
Thanks for the update.  I am having a heck of a time trying to find the location for the SNAPSHOT repositories for Jetty.  Could you let me know where I can find it?  In looking at Sonatype's Repository (http://repository.sonatype.org) the latest version I can find is 8.0.0.M1, and no snapshots.

Also, on the Jetty Download page(http://www.eclipse.org/jetty/downloads.php) there doesn't appear to be any snapshots, so I have been digging for another repository with no luck.
Comment 3 Jan Bartel CLA 2010-09-27 20:28:04 EDT
Nick,

The snapshots are here:

https://oss.sonatype.org/content/groups/jetty-with-staging/

cheers
Jan
Comment 4 Nick Klauer CLA 2010-09-27 23:14:38 EDT
Okay, took a bit of effort to get it running (I still have to figure out how to make Maven NOT download every maven-metadata.xml file in the world), but it works for me!

Awesome!  Thank you!