- This topic has 12 replies, 4 voices, and was last updated 11 years, 8 months ago by support-tony.
-
AuthorPosts
-
Michael ClavierMemberHi there,
when switching from one branch to another, (My)Eclipse is not able to replace a jar file with another version. While (My)Eclipse is running, it is also not possible to delete the jar file, no matter what tool I use for.
I had had this problem about a year ago. At that time we could solve it, as can be seen in
http://www.myeclipseide.com/PNphpBB2-viewtopic-t-28992-postdays-0-postorder-asc-start-0.html
But now, the problem is back again.
The solution from that time doesn’t help anymore: Although having set “-Dgwtd.warmup.enabled=false” in myeclipse.ini, the deletion of jar files will fail.
What have we done in between? Switched version management from CVS to Git. Nothing else that seems to be noteworthy.
Any idea?
Thanks for your help,
Michael
support-pradeepMemberMichael,
We couldn’t replicate the issue at our end on MyEclipse 10.7.
As the bug that is referenced in the old topic appeared to have been fixed quite some time ago. So, can you please mention whether you are using the same release of MyEclipse and the same version of GWT (which you have mentioned in your old post) ? If not can you please share the installation details of MyEclipse from MyEclipse > Installation Summary > Installation details ? Also, please share us the version of GWT plugin you are using ?
Can you please clarify the exact conditions under which the jar file couldn’t be deleted ? Are you running the app when trying to delete the jar file ?
Michael ClavierMemberPradeep,
the problem appears under MyEclipse 10.5 and 10.7.
Installation Details is:
=================
*** Date:
Dienstag, 12. März 2013 10:05 Uhr MEZ*** System properties:
OS=WindowsVista
OS version=6.1.0
OS arch=amd64
Profile arch=x86_64
Window system=win32
Java version=1.6.0_13
Workspace=file:/D:/WS/work/workspace 86/
VM Args=-Xmx2048m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=256m
-Dosgi.nls.warnings=ignore
-Dgwtd.warmup.enabled=false
-jar
C:\PRC0FE~1\Genuitec\MYECLI~1\../Common/plugins/ORB7B5~1.JAR*** Subscription information
Product Id: E3MP (MyEclipse Professional Subscription)
License version: 3.0
Full Maintenance Included
Subscription expiration date (YYYYMMDD): 20130611
Number of users: 11*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 10.5
Build id: 10.5-20120615Blueprint: MyEclipse 10
com.genuitec.myeclipse.database – 10.5.0.me201206141911
com.genuitec.myeclipse.desktop – 10.5.0.me201206141911
com.genuitec.myeclipse.editor – 10.5.0.me201206141911
com.genuitec.myeclipse.enterprise.workbench – 10.5.0.me201206141911
com.genuitec.myeclipse.geronimo – 10.5.0.me201206141911
com.genuitec.myeclipse.glassfish – 10.5.0.me201206141911
com.genuitec.myeclipse.icefaces.feature – 10.5.0.me201206141911
com.genuitec.myeclipse.iedebugger – 10.5.0.me201206141911
com.genuitec.myeclipse.imageeditor – 10.5.0.me201206141911
com.genuitec.myeclipse.jboss – 10.5.0.me201206141911
com.genuitec.myeclipse.jetty – 10.5.0.me201206141911
com.genuitec.myeclipse.jonas – 10.5.0.me201206141911
com.genuitec.myeclipse.jrun – 10.5.0.me201206141911
com.genuitec.myeclipse.jsf – 10.5.0.me201206141911
com.genuitec.myeclipse.matisse – 10.5.0.me201206141911
com.genuitec.myeclipse.maven – 10.5.0.me201206141911
com.genuitec.myeclipse.oracle – 10.5.0.me201206141911
com.genuitec.myeclipse.orion – 10.5.0.me201206141911
com.genuitec.myeclipse.persistence – 10.5.0.me201206141911
com.genuitec.myeclipse.pulse – 10.5.0.me201206141911
com.genuitec.myeclipse.reports – 10.5.0.me201206141911
com.genuitec.myeclipse.resin – 10.5.0.me201206141911
com.genuitec.myeclipse.struts – 10.5.0.me201206141911
com.genuitec.myeclipse.sun – 10.5.0.me201206141911
com.genuitec.myeclipse.tomcat – 10.5.0.me201206141911
com.genuitec.myeclipse.uml2 – 10.5.0.me201206141911
com.genuitec.myeclipse.visualvm – 10.5.0.me201206141911
com.genuitec.myeclipse.visualvm.server – 10.5.0.me201206141911
com.genuitec.myeclipse.weblogic – 10.5.0.me201206141911
com.genuitec.myeclipse.websphere – 10.5.0.me201206141911
com.genuitec.myeclipse.ws – 10.5.0.me201206141911
org.eclipse.birt – 2.6.1.me201206141911
org.eclipse.datatools.connectivity.feature – 1.9.0.me201206141911
org.eclipse.datatools.enablement.feature – 1.9.0.me201206141911
org.eclipse.datatools.modelbase.feature – 1.9.0.v201106031100-77078CcNBHCBYKYEbNV
org.eclipse.datatools.sqldevtools.feature – 1.9.0.me201206141911
org.eclipse.emf – 2.7.0.v20110606-0949
org.eclipse.gef – 3.7.0.v20110425-2050-777D-81B2Bz0685C3A6E34272
org.eclipse.graphiti.feature – 0.8.0.v20110607-1252
org.eclipse.jpt.jpa.feature – 3.0.0.me201206141911
org.eclipse.jpt.jpadiagrameditor.feature – 1.0.0.me201206141911
org.eclipse.jst.common.fproj.enablement.jdt – 3.3.0.me201206141911
org.eclipse.jst.enterprise_ui.feature – 3.3.0.me201206141911
org.eclipse.jst.server_adapters.ext.feature – 3.3.0.me201206141911
org.eclipse.jst.server_adapters.feature – 3.2.100.me201206141911
org.eclipse.jst.server_ui.feature – 3.3.0.me201206141911
org.eclipse.jst.ws.axis2tools.feature – 1.1.200.me201206141911
org.eclipse.m2e.feature – 1.0.0.me201206141911
org.eclipse.wst.common.fproj – 3.3.0.me201206141911
org.eclipse.wst.server_adapters.feature – 3.2.100.me201206141911
org.eclipse.xsd – 2.7.0.v20110606-0949
org.springframework.ide.eclipse.feature – 2.9.1.me201206141911com.atlassian.connector.commons – 3.0.6.v20120628
com.atlassian.connector.eclipse – 3.0.6.v20120628
com.atlassian.connector.eclipse.bamboo – 3.0.6.v20120628
com.atlassian.connector.eclipse.commons – 3.0.6.v20120628
com.atlassian.connector.eclipse.crucible – 3.0.6.v20120628
com.atlassian.connector.eclipse.jira – 3.0.6.v20120628
com.atlassian.connector.eclipse.monitor – 3.0.6.v20120628
com.dynatrace.eclipseintegration – 4.1.0.2896
com.google.appengine.eclipse.sdkbundle.feature – 1.7.0
com.google.gdt.eclipse.designer.editor.feature – 2.6.0.r37x201206111227
com.google.gdt.eclipse.designer.feature – 2.6.0.r36x201206111253
com.google.gdt.eclipse.designer.hosted.feature – 2.6.0.r37x201206111222
com.google.gdt.eclipse.suite.e37.feature – 3.0.1.v201206290132-rel-r37
com.google.gwt.eclipse.sdkbundle.e37.feature – 2.4.0.v201206290132-rel-r37
com.itsolut.mantis_feature – 3.9.0.201206242005
edu.umd.cs.findbugs.plugin.eclipse – 2.0.1.20120712
fr.obeo.acceleo.bridge.feature – 2.6.0.200906261742
org.eclipse.cvs – 1.3.100.v20110520-0800-7B78FHl9VF7BD7KBM4GP9C
org.eclipse.draw2d – 3.7.0.v20110425-2050-46-7w3122153603161
org.eclipse.egit – 2.3.1.201302201838-r
org.eclipse.egit.mylyn – 2.3.1.201302201838-r
org.eclipse.equinox.p2.core.feature – 1.0.1.v20110906-1605-8290FZ9FVKHVRKtmx3fpNuo02129
org.eclipse.equinox.p2.extras.feature – 1.0.1.v20110906-1605-7A4FD4DiVOMap8cHSc6vPuny4gqO
org.eclipse.equinox.p2.rcp.feature – 1.0.1.v20110906-1605-782EqBqNKGVkiV-PUsgz-uny4gqO
org.eclipse.equinox.p2.user.ui – 2.1.2.R37x_v20110815-1155-6-Bk8pYWZz0qUTX5I15GZWwbXkrl
org.eclipse.help – 1.3.0.v20110530-0844-7i7uFFmFFl8nvqbDpEqTvx
org.eclipse.jdt – 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1
org.eclipse.jgit – 2.3.1.201302201838-r
org.eclipse.jgit.pgm – 2.3.1.201302201838-r
org.eclipse.jsf.feature – 3.3.0.me201206141911
org.eclipse.mylyn.bugzilla_feature – 3.8.0.v20120612-0600
org.eclipse.mylyn.commons – 3.8.2.v20120916-1200
org.eclipse.mylyn.commons.identity – 1.0.2.v20120916-1200
org.eclipse.mylyn.commons.notifications – 1.0.2.v20120916-1200
org.eclipse.mylyn.commons.repositories – 1.0.2.v20120916-1200
org.eclipse.mylyn.context_feature – 3.8.2.v20120916-1200
org.eclipse.mylyn.discovery – 3.8.2.v20120916-1200
org.eclipse.mylyn.ide_feature – 3.8.0.v20120612-0600
org.eclipse.mylyn.java_feature – 3.8.0.v20120612-0600
org.eclipse.mylyn.monitor – 3.8.2.v20120916-1200
org.eclipse.mylyn.pde_feature – 3.8.0.v20120612-0600
org.eclipse.mylyn.tasks.ide – 3.8.0.v20120612-0600
org.eclipse.mylyn.team_feature – 3.8.2.v20120916-1200
org.eclipse.mylyn.trac_feature – 3.8.0.v20120612-0600
org.eclipse.mylyn.wikitext_feature – 1.7.0.v20120612-0600
org.eclipse.mylyn_feature – 3.8.2.v20120916-1200
org.eclipse.ocl – 3.1.0.v20110606-1427
org.eclipse.pde – 3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnpz0E–0
org.eclipse.platform – 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q
org.eclipse.rcp – 3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272
org.eclipse.wb.core.feature – 1.5.0.r37x201206111201
org.eclipse.wb.core.ui.feature – 1.5.0.r36x201206111213
org.eclipse.wb.core.xml.feature – 1.5.0.r37x201206111216
org.eclipse.wb.css.feature – 1.5.0.r37x201206111208
org.eclipse.wb.doc.user.feature – 1.5.0.r36x201206111211
org.epic.feature.main – 0.5.46Eclipse startup command=-os
win32
-ws
win32
-arch
x86_64
-showsplash
-launcher
C:\Programme_MyEclipse\Genuitec\MyEclipse 10\myeclipse.exe
-name
Myeclipse
–launcher.library
C:\Programme_MyEclipse\Genuitec\MyEclipse 10\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_4.2.0.v201201111650\eclipse_4201.dll
-startup
C:\Programme_MyEclipse\Genuitec\MyEclipse 10\../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
-exitdata
b04_5c
-install
C:\Programme_MyEclipse\Genuitec\MyEclipse 10
-configuration
C:\Programme_MyEclipse\Genuitec\MyEclipse 10\configuration
-vm
C:\Programme_MyEclipse\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\bin\javaw.exe================
gwt version is 2.4.0.
The problem occurs when trying to switch from one Git branch to another including the exchange of a jar file.
Of course it is allowed to ask for the app to be running, but: No, the app is not running.
Regards,
Michael
Michael ClavierMemberMe again,
had the problem right now. .log file ends with:
===============!ENTRY org.eclipse.egit.ui 4 0 2013-03-12 14:10:51.965
!MESSAGE Branch failed
!STACK 1
org.eclipse.core.runtime.CoreException: Could not delete file D:\WS\work\workspace 86\MGA\WEBGwin\WebRoot\WEB-INF\lib\GwtWebServiceClient.jar
at org.eclipse.egit.core.op.BranchOperation$1.run(BranchOperation.java:136)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2326)
at org.eclipse.egit.core.op.BranchOperation.execute(BranchOperation.java:162)
at org.eclipse.egit.ui.internal.branch.BranchOperationUI$1.run(BranchOperationUI.java:199)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.api.errors.JGitInternalException: Could not delete file D:\WS\work\workspace 86\MGA\WEBGwin\WebRoot\WEB-INF\lib\GwtWebServiceClient.jar
at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:294)
at org.eclipse.egit.core.op.BranchOperation$1.run(BranchOperation.java:132)
… 5 more
Caused by: java.io.IOException: Could not delete file D:\WS\work\workspace 86\MGA\WEBGwin\WebRoot\WEB-INF\lib\GwtWebServiceClient.jar
at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:142)
at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:98)
at org.eclipse.jgit.dircache.DirCacheCheckout.checkoutEntry(DirCacheCheckout.java:1132)
at org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:457)
at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:391)
at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:240)
… 6 more
!SUBENTRY 1 org.eclipse.egit.core 4 0 2013-03-12 14:10:51.980
!MESSAGE Could not delete file D:\WS\work\workspace 86\MGA\WEBGwin\WebRoot\WEB-INF\lib\GwtWebServiceClient.jar
!STACK 0
org.eclipse.jgit.api.errors.JGitInternalException: Could not delete file D:\WS\work\workspace 86\MGA\WEBGwin\WebRoot\WEB-INF\lib\GwtWebServiceClient.jar
at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:294)
at org.eclipse.egit.core.op.BranchOperation$1.run(BranchOperation.java:132)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2326)
at org.eclipse.egit.core.op.BranchOperation.execute(BranchOperation.java:162)
at org.eclipse.egit.ui.internal.branch.BranchOperationUI$1.run(BranchOperationUI.java:199)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.io.IOException: Could not delete file D:\WS\work\workspace 86\MGA\WEBGwin\WebRoot\WEB-INF\lib\GwtWebServiceClient.jar
at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:142)
at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:98)
at org.eclipse.jgit.dircache.DirCacheCheckout.checkoutEntry(DirCacheCheckout.java:1132)
at org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:457)
at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:391)
at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:240)
… 6 more==============
Regards,
Michael
support-tonyKeymasterMichael,
This is a strange one. I can’t replicate the problem this time. I’ve tried with CVS and Git. The only time that the jar can’t be deleted is when the application is running in the Google app engine. The only difference between my set up and your set up seems to be the version of the GWT SDK. Mine is 2.5.0 (the app engine is 1.7.5). This is what was installed from the eclipse update site for the Google plug-in. Is it possible for you to try with a fresh install of the Google plugin and SDKs, or maybe it will recognize and update for those plug-ins? Maybe the 2.4 SDK doesn’t recognize that switch in the ini file or has some other bug that holds on to the file.
This doesn’t seem to be a MyEclipse problem since all of the plug-ins involved are not MyEclipse functionality. However, we’ll try to help you solve it, if we can.
IgnatzMouseMemberTony,
I have the exact same issue here with Blue 10.7.1.
I’m using GWT 2.5.0 and 2.5.1 and in both cases MyEclipse complains that it can’t remove <WebRoot>/WEB-INF/lib/gwt-servlet.jar, everything else it can remove.
I only can remove the file when I close MyEclipse, wait for a while, the it seems to be closed or whatever.
I#M not using the GWT App Engine just MyEclipse server.This happens on Windows 7 x64.
Regards,
Thomas
support-tonyKeymasterThomas,
So, it seems to be unrelated to the GWT version or the MyEclipse edition. Are you using Git, as Michael is, or are your attempted deletions manual (i.e. not because of an update from the version control system)?
Is there anything unusual about your system (or yours, Michael) that you think might have an effect because I can’t replicate the problem here without running the GWT application in MyEclipse when the delete is attempted? As this seems to be a problem with non MyEclipse functionality, is it possible for you to try this with an eclipse distribution on which the Google plug-in is installed?
IgnatzMouseMemberTony,
+ I’m simply trying to deleet the whole project incl. the files
+ failing that I try to delete it from a shell (bash/Cygwin on Windows 7)
+ I wouldn’t think that there is anything “unusual” about my system
+ I try this with MyEclipse Blues 10.7.1 to which the GWT plugin is installed.
However, I only can install it from the Market Place and not from the Configuration Center (which fails).To me it looks like that the file in question is kept open by some process (Tomcat?) so that it is impossible to delete unless ME is shutdown…
support-tonyKeymasterThomas,
It looks like your situation is different from Michael’s but GWT seems to be a constant in both situations. However, there might be different causes.
So, just to be clear, you are seeing the problem after running a GWT project in MyEclipse Tomcat and then trying to delete the project from MyEclipse? Did you stop Tomcat before trying to delete?
You can find out what is holding on to a file by using a utility like Process Explorer, which allows you to search on a file handle by file name to see what is holding the file. That would be useful information.
IgnatzMouseMemberTony,
yup, I just had the same idee abot process explorer…
Yes, I stop Tomcat
I even close the projectThe file is still opened by Java! Any ideas why that is
Attachments:
You must be logged in to view attached files.
support-tonyKeymasterThomas,
I doubt Tomcat is the culprit as the files would be copied over to Tomcat for deployment and so the originals wouldn’t be held at all by Tomcat. I can only assume that something in GWT is holding the files.
Can you replicate it with a simple application (perhaps as generated when creating a new GWT Application Project)? If so, could you provide the steps you went through to create, run and delete the project, so that I can try and replicate? If I can’t replicate it, then trying to replicate with an eclipse distribution would provide useful info.
I’m still thinking, though, that this is somehow caused by the Google plug-in.
IgnatzMouseMemberTony,
as you can see from my screen shot the file is held by javaw from ME…
support-tonyKeymaster@IgnatzMouse wrote:
Tony,
as you can see from my screen shot the file is held by javaw from ME…
Yes, indeed, Thomas. But that doesn’t tell us what part of ME/eclipse is holding the lock. Unless I’ve missed something. Which is quite possible!
-
AuthorPosts