MyEclipse Forums
This thread has been locked & this forum has been archived.
Please post new topics to General Development
View previous topic Printable version Log in to check your private messages View next topic
Author Message
MichaelClavier
Post subject: delete/replace a jar file will fail  PostPosted: Apr 24, 2012 - 09:35 AM



Joined: Feb 22, 2008
Posts: 54

Hi,

when trying to delete or replace a jar file I will often get the following error message:

Problems encountered while deleting resources.
Could not delete 'D:\WS\work\workspace 86\EARGwin\lib\utils.jar'.
Problems encountered while deleting files.
Could not delete: D:\WS\work\workspace 86\EARGwin\lib\utils.jar.

There is no external server process running. Even directly after having MyEclipse restarted the error will remain.

The jar-file is part of an EAR project, which is referenced by two other projects, one EJB, the other WEB. EJB an Web project are combined as Enterprise application projects. The error remains, regardless of having the EAR deployed or not.

I am working on MyEclipse 9.1, Build id: 9.1-20110701.


Regards,

Michael
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Apr 24, 2012 - 11:13 AM



Joined: Nov 11, 2010
Posts: 2491

Michael,

Sorry that you are seeing this issue.

1. Can you share the installation details from MyEclipse > Installation Summary > Installation Details ? Paste them here for us.

2. Can you please update to our latest release 10.1 and check if you still see the issue ?
You can install 10.1 alongside 9.1 version and the license which you hold for 9.1 is valid for 10.1 too as our licenses are time based and not version based.

You can download 10.1 from this link :
http://www.myeclipseide.com/index.php?name=Recommend_Us&req=Download&version=ME

Alternatively, you can use Pulse to install 10.1. Here is an FAQ for the same. Select 'Eclipse 3.7 - Indigo' and MyEclipse 10.1 and follow the FAQ : http://www.myeclipseide.com/PNphpBB2-viewtopic-t-25976.html

3. If you are still seeing the issue, please give us detail steps you are following right from EAR creation to the way you are trying to delete the jar for us to help replicate it at our end.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
MichaelClavier
Post subject:   PostPosted: Apr 25, 2012 - 08:01 AM



Joined: Feb 22, 2008
Posts: 54

Swapna,

thanks for supporting me.

1. Installation Summary is:
*** Date:
Mittwoch, 25. April 2012 08:46 Uhr MESZ

** System properties:
OS=Windows7
OS version=6.1.0
Java version=1.7.0


*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 9.1
Build id: 9.1-20110701


*** Eclipse details:
MyEclipse Enterprise Workbench

Version: 9.1
Build id: 9.1-20110701






Eclipse startup command=-os
win32
-ws
win32
-arch
x86_64
-showsplash
-launcher
D:\Programme\Genuitec\MyEclipse91\myeclipse.exe
-name
Myeclipse
--launcher.library
D:\Programme\Genuitec\MyEclipse91\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_3.2.0.v201103301700\eclipse_3215.dll
-startup
D:\Programme\Genuitec\MyEclipse91\../Common/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-exitdata
b2c_5c
-install
D:\Programme\Genuitec\MyEclipse91
-configuration
D:\Programme\Genuitec\MyEclipse91\configuration
-vm
C:\Program Files\Java\jdk1.7.0\bin\javaw.exe

2. I would so much like to install MyEclipse 10.1.
As the last updates showed me, this will take not just downloading and installing time but also upgrading projects and correcting things and so on.
I will find one or two days to be able to do so as far as project plans will allow it.

3. I still see the issue.
The way I delete the jar file: select the file in package explorer, then press Del-Button and press OK.
The way I replace the jar file: select the jar file, open context menu, choose replace/latest from head (or branch), press OK
In both cases the error will be shown, the jar file can't be removed.

The EAR project is an project with the following structure:
EARProject:
- lib/utils.jar et al
- configured with the modules
- EJBProject
- WEBProject
- EJBProject
- classpath references to ../EARProject/lib/utils.jar

Removing EJBProject and WEBProject from EARProject's modules does not solve the problem.

Do you have any idea?


Regards,

Michael
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Apr 26, 2012 - 07:44 AM



Joined: Nov 11, 2010
Posts: 2491

MichaelClavier,

Thank you for the details. I could not replicate the issue at my end.

1. Clear the contents of the .log file which is located at <workspace dir>/.metadata/.log, now try deleting the jar file and copy paste the contents of the .log file here for us.

2. Can you please switch to a new workspace, create a sample project and check if you see the same issue ?

Let us know how it works for you.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
MichaelClavier
Post subject:   PostPosted: Apr 26, 2012 - 08:42 AM



Joined: Feb 22, 2008
Posts: 54

Swapna,

attached you will find the .log-file.

I'll try to create a sample project as soon as I am able to.

Regards,

Michael
 
 View user's profile Send private message  
Reply with quote Back to top
MichaelClavier
Post subject: MyEclipse 10.0 - same error  PostPosted: May 21, 2012 - 07:16 AM



Joined: Feb 22, 2008
Posts: 54

Swapna,

I was now able to install MyEclipse 10.1.
Unfortunately the deletion results in the same error as in ME 9.1.


Kind regards,

Michael
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: May 22, 2012 - 08:32 AM



Joined: Nov 11, 2010
Posts: 2491

MichaelClavier,

Sorry that you are still seeing the issue.

Can you give us some more information to help investigate further?

1.Which source control system are you working with?

2. How are you checking out the files initially for use in MyEclipse (e.g. checking out externally or from within MyEclipse, and is it whole projects or individual files/folders) ?

3. Can you check if you can delete the file outside of MyEclipse, from Windows Explorer or from a command line ?

4. Can you also recheck if there is any other program that might have the jar file open ?

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
MichaelClavier
Post subject:   PostPosted: May 22, 2012 - 08:46 AM



Joined: Feb 22, 2008
Posts: 54

Swapna,

1.source control system is CVS.

2. The files are checked out from within MyEclipse into a workspace directory. The files are checked out as a complete CVS project.

3. The files can also not be deleted from outside MyEclipse. The only posibility to delete the files is to close MyEclipse, then delete the files with Explorer for example.

4. There is definitely no other process that might have the files opened.


Michael
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: May 22, 2012 - 11:14 AM



Joined: Nov 11, 2010
Posts: 2491

MichaelClavier,

Thank you for the details.

Can you try turning off the "Build Automatically" to see if there is a builder which is holding on to the jar file ?

Restart the IDE after turning off the "Build Automatically" and try deleting the jar file.

Let us know it works for you.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
MichaelClavier
Post subject:   PostPosted: May 22, 2012 - 11:18 AM



Joined: Feb 22, 2008
Posts: 54

Swapna,

build automatically deactivated, restarted - but deletion results in failure, the file cannot be deleted.

Sorry,

Michael
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: May 23, 2012 - 06:04 AM



Joined: Nov 11, 2010
Posts: 2491

Michael,

Thank you for trying our recommendations. We tried to replicate the issue with the information you provided but we do not see the issue at our end.

Can you please install process explorer: http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx to know which process has locked the file ?

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
MichaelClavier
Post subject: result of process explorer  PostPosted: May 23, 2012 - 10:20 AM



Joined: Feb 22, 2008
Posts: 54

Swapna,

I installed process explorer. The result is to be seen in the attachment.
Hope it'll bring you further.


Kind regards

Michael
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: May 24, 2012 - 08:45 AM



Joined: Nov 11, 2010
Posts: 2491

Michael,

Thank you for trying and confirming that it is indeed a MyEclipse process which is holding the lock for the jar. We still are unable to replicate the issue at our end.

Can you please give us some more information?

1. Do you have any third party plugins installed ? If yes, please list them for us.

2. Can you send us the .project file for the referencing project for further investigation ?

3. Can you please try to close editors and perspectives related to Jasper to find out what is holding the file, while trying to delete the jar after each close.

4. Can you also confirm that this is the only jar that is locked and other jars that have the same dependency are not locked ? Also recheck if you can delete any other jar in the EAR/lib with no dependencies.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
MichaelClavier
Post subject:   PostPosted: May 24, 2012 - 09:08 AM



Joined: Feb 22, 2008
Posts: 54

Swapna,

ad 1. yes, all plugins should be listed in configuration details (see attachment)

ad 2. .project of the referencing project - renamed as .project.txt, as it is not allowed to attach .project files

ad 3. as far as I know, there is no jasper process running on my computer.
If you think that there is a jasper process, please tell me how to identify them.

ad 4. no, this is not the only jar file. I tried to rename/delete 10 out of 40, none of them can be renamed/deleted.

Hope this helps,

Michael
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: May 24, 2012 - 10:36 AM



Joined: Nov 11, 2010
Posts: 2491

Michael,

Thank you for the files. We are looking at them.

Even if there are no known Jasper editors or perspectives open, please close the editors and perspectives one by one, to try to find out what is locking the files.

If you cannot find what is locking the files, then close the referencing project and check if you can delete the jar file.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits