Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336475

Summary: jetty-maven-plugin 7.2.1/7.2.2/7.3.0 locks deployed js files for edit.
Product: [RT] Jetty Reporter: Fredrik Sundberg <fredrik.sundberg>
Component: otherAssignee: Project Inbox <jetty-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: jesse.mcconnell
Version: unspecified   
Target Milestone: 7.2.x   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Fredrik Sundberg CLA 2011-02-07 03:13:38 EST
Build Identifier: 20100917-0705

Since jetty-maven-plugin 7.2.1 deployed js-files through mvn jetty:run that has been accessed by a web browser (locally) cannot be edited and then saved in eclipse no more. To be able to save the file, one needs to stop jetty, save the file and then start jetty again.

The same happens every time in 7.2.1/7.2.2/7.3.0 but works like a charm in 7.2.0.

Reproducible: Always

Steps to Reproduce:
1. mvn jetty:run on project
2. Access the site using a web browser so that the js file is loaded(this is important!)
3. open a js-file in eclipse , edit it and try to save it
4. Could not write file: C:\Documents and Settings\K245530\K245530_view_tap\TreasurySystems\TAP\src\main\webapp\js\tap-grid2.js.
C:\Documents and Settings\K245530\K245530_view_tap\TreasurySystems\TAP\src\main\webapp\js\tap-grid2.js (The requested operation cannot be performed on a file with a user-mapped section open)
Comment 1 Jesse McConnell CLA 2011-02-07 08:27:30 EST
http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows

reopen if this doesn't address your issue
Comment 2 Fredrik Sundberg CLA 2011-02-07 08:49:24 EST
Hmm ok, but something made it worse between 7.2.0 and 7.2.1. This *never* happens for me on 7.2.0.