facebook

delete/replace a jar file will fail

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #325499 Reply

    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

    #325502 Reply

    support-swapna
    Moderator

    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 : https://www.genuitec.com/forums/topic/installation-how-to-install-myeclipse-from-pulse/

    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.

    #325536 Reply

    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

    #325563 Reply

    support-swapna
    Moderator

    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.

    #325564 Reply

    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

    Attachments:
    You must be logged in to view attached files.
    #326218 Reply

    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

    #326257 Reply

    support-swapna
    Moderator

    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 ?

    #326261 Reply

    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

    #326267 Reply

    support-swapna
    Moderator

    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.

    #326268 Reply

    Swapna,

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

    Sorry,

    Michael

    #326296 Reply

    support-swapna
    Moderator

    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 ?

    #326300 Reply

    Swapna,

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

    Kind regards

    Michael

    Attachments:
    You must be logged in to view attached files.
    #326331 Reply

    support-swapna
    Moderator

    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.

    #326333 Reply

    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

    Attachments:
    You must be logged in to view attached files.
    #326335 Reply

    support-swapna
    Moderator

    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.

Viewing 15 posts - 1 through 15 (of 21 total)
Reply To: delete/replace a jar file will fail

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in