[jbosstools-issues] [JBoss JIRA] (JBIDE-18983) Project cannot be built. Possible open file handle

Max Rydahl Andersen (JIRA) issues at jboss.org
Mon Jan 5 03:23:29 EST 2015


    [ https://issues.jboss.org/browse/JBIDE-18983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029752#comment-13029752 ] 

Max Rydahl Andersen commented on JBIDE-18983:
---------------------------------------------

afaics, this does not relate to anything related to p2's inability to handle copying/moving of files between different volumes.

This bug is caused by either an eclipse plugin or part of the server is holding on to the persistence.xml via for example a forgotten file close or classloader leak. 

We've had similar issues with jsf resources in past being locked by a bug in richfaces libraries use of classloader (now long time fixed) and similar bug in one of our editors forgot to close the file during save causing locking on windows (but seem to worked fine on linux/osx...and those we know about are fixed too)

[~clerum] can you help locate wether it is the server or eclipse that is holding onto the file so we can know where to look ? 

You can use Process Explorer (http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx) to locate it (tutorial here: http://www.techsupportalert.com/content/how-find-out-which-windows-process-using-file.htm)


> Project cannot be built. Possible open file handle
> --------------------------------------------------
>
>                 Key: JBIDE-18983
>                 URL: https://issues.jboss.org/browse/JBIDE-18983
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: build, jsp/jsf/xml/html source editing, updatesite
>    Affects Versions: 4.2.1.Final
>         Environment: luna x64 windows 8.1 x64
> java 8u25 x64
>            Reporter: Cody Lerum
>            Assignee: Nick Boldt
>             Fix For: 4.2.x, 4.3.x
>
>
> Frequently when working in a Java EE7 project I will get an error like.
> "The project was not built due to "Could not delete '/gp-server/target/classes/META-INF`.". Fix the problem, then try refreshing this project and building since it may be inconsistent.
> I've looked into a process explorer in windows and then this case is happening there is always a javaw.exe process with a file handle to "V:\workspace\gp-server\target\classes\META-INF\persistence.xml
> It looks like either jboss tools or eclipse is holding on to a file handle for this.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jbosstools-issues mailing list