|Re: Eclipse Kepler R2 keeps locking persistence.xml file, preventing project building [message #1482139 is a reply to message #1481994]
||Fri, 21 November 2014 14:22
| Ed Merks
Registered: July 2009
It would be better to ask on the Web Tools forum.
On 21/11/2014 3:00 PM, David del Río Medina wrote:
> Everytime I try to build my project this message appears:
> Description Resource Path Location Type
> The project was not built due to "Could not delete
> '/Anuncios/build/classes/META-INF'.". Fix the problem, then try
> refreshing this project and building it since it may be inconsistent
> This META-INF directory contains the persistence.xml file. It has to
> be in the classpath. I have it under resources/ right now, but I have
> the same problem if I locate it under src/.
> If I try to delete it, Windows complains that some application has
> opened this file. This application is Eclipse, that for some reason
> keeps this file locked and the only way to remove it is by closing
> Eclipse first.
> So, everytime a start Eclipse, I can clean and build the project once.
> The next time it shows the message error above.
> ¿Any ideas?
> PS: As stated above, the solution provided in StackOverflow (Eclipse
> keeps bin/META-INF/persistence.xml in use) about moving the folder
> out of src/ did not work for me.
> I'm using Eclipse Java EE Kepler SR2 Build 20140224-0627
Powered by FUDForum
. Page generated in 0.02176 seconds