Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Jar files locked by Eclipse when trying to update(Jar files locked by Eclipse when trying to update)
icon5.gif  Jar files locked by Eclipse when trying to update [message #648382] Wed, 12 January 2011 16:28 Go to next message
Mac Noland is currently offline Mac NolandFriend
Messages: 1
Registered: January 2011
Junior Member

Good day. We have a large user base that uses an Eclipse Source Control plug-in for our projects. They happen to be Microsoft's Team System Everywhere, but I don't think it would matter.

On a Windows 7 box (or XP) running Helios, when users do a Get Latest on a jar file, the plug-in attempts to override the local file with the latest version, but the file often ends up being locked by the Eclipse.exe process.

To get the file unlocked, the users close down Eclipse and then launch it again. At that point, the files are released and they can do a Get Latest again.

My initial guess was that an internal process (e.g. running Tomcat) was the culprit and that shutting down that internal process (e.g. Tomcat) would alleviate the situation. From what they tell me though, they shut down all spawned processes and that it's actually the Eclipse.exe (or Javaw.exe running Eclipse) process that has the jar file locked. E.g. Not the Tomcat process.

Has anyone seen something like this before? And does anyone have any suggestions of things we can further look at to see if we can track down what in Eclipse might be causing the lock on these files?

Thanks in advance.
Re: Jar files locked by Eclipse when trying to update [message #648736 is a reply to message #648382] Fri, 14 January 2011 10:36 Go to previous messageGo to next message
Mauro Molinari is currently offline Mauro MolinariFriend
Messages: 285
Registered: July 2009
Senior Member
Il 12/01/2011 17:29, Mac Noland ha scritto:
> Has anyone seen something like this before? And does anyone have any
> suggestions of things we can further look at to see if we can track down
> what in Eclipse might be causing the lock on these files?

What I noticed is that the latest version of WebTools (for the Helios
release) keeps locks on JARs that are on the build path of a Dynamic Web
Project, while the previous version (for Galileo) didn't.

This is causing some problems to me, too: for instance, I can no longer
update JAR files from the CVS if these JAR files are in WEB-INF/lib, so
they're used in the project classpath.
I don't know if this has been already reported as a bug.

Mauro.
Re: Jar files locked by Eclipse when trying to update [message #648743 is a reply to message #648736] Fri, 14 January 2011 11:36 Go to previous message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 1/14/2011 4:06 PM, Mauro Molinari wrote:
> Il 12/01/2011 17:29, Mac Noland ha scritto:
>> Has anyone seen something like this before? And does anyone have any
>> suggestions of things we can further look at to see if we can track down
>> what in Eclipse might be causing the lock on these files?
>
> What I noticed is that the latest version of WebTools (for the Helios
> release) keeps locks on JARs that are on the build path of a Dynamic Web
> Project, while the previous version (for Galileo) didn't.
>
> This is causing some problems to me, too: for instance, I can no longer
> update JAR files from the CVS if these JAR files are in WEB-INF/lib, so
> they're used in the project classpath.
> I don't know if this has been already reported as a bug.
>
> Mauro.
WTP forums is a better place for these queries.
Previous Topic:3.6.1 and Tomcat 7 problems
Next Topic:Import Maven Modular java project from SVN
Goto Forum:
  


Current Time: Fri Apr 19 20:08:12 GMT 2024

Powered by FUDForum. Page generated in 0.03009 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top