Bug 67210 - Error on change Libraries
Summary: Error on change Libraries
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 RC3   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-15 07:26 EDT by Matthias Baumann CLA
Modified: 2004-10-27 06:50 EDT (History)
1 user (show)

See Also:


Attachments
the .classpath file (1.84 KB, application/octet-stream)
2004-06-15 09:47 EDT, Matthias Baumann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Baumann CLA 2004-06-15 07:26:16 EDT
if you change an exist project ->
Java Build Path -> Libraris -> remove a jar -> OK.

An Error is created:

Invalid project description.
  OK
  d:/www/LP_PostfachService and d:/www overlap.
Comment 1 Dirk Baeumer CLA 2004-06-15 08:04:26 EDT
Matthias,

can you please provide more info. 

- which build are you using
- is there anything in the log
- do you have steps to reproduce this
- where exactly is the error created.
Comment 2 Matthias Baumann CLA 2004-06-15 08:44:14 EDT
this problem is on version:

I200405290105
 and
I200406111814

In the perspektive Java.
I clicked on my project in the PackageExplorer ( right click )
-> properties->Java Build Path -> Libraries ->Click the first *.jar ->  remove a
jar -> OK.
and then is the error created.

! the jar i had tryed to delete is not deleted !

I can this error reproduce , any times.

The project was created with eclipse 2.1

no log entry is created

if I create a new project with build I200406111814 , the error will not shown.
Comment 3 Dirk Baeumer CLA 2004-06-15 08:53:07 EDT
Martin, can you please investigate. Seems to be a problem when upgrading a 
workspace from 2.1.x to 3.0.
Comment 4 Martin Aeschlimann CLA 2004-06-15 09:16:13 EDT
Matthias, can you attach the .classpath file of the project where you have 
this problem? 
Comment 5 Matthias Baumann CLA 2004-06-15 09:47:15 EDT
Created attachment 12139 [details]
the .classpath file
Comment 6 Martin Aeschlimann CLA 2004-06-16 06:25:43 EDT
it seems that the classpath validation is more strict or has a bug. We use
JavaConventions.validateClasspath for that.
The project happens to have lots of libraries inside source folders. That
shouldn't be a problem. 

Moving to jdt.core
Comment 7 Frederic Fusier CLA 2004-06-17 13:06:54 EDT
I see two incompatible entries in your classpath:
    <classpathentry kind="src" path="src"/>
and
    <classpathentry kind="src" path="/LP_Shared"/>

Since 2.1, Java Build Path dialog did not allow you to set this as you'll get
error message:
Invalid classpath in 'LP_Shared/.classpath' file: Cannot nest 'LP_Shared/src'
inside 'LP_Shared'. To enable the nesting exclude 'src/' from 'LP_Shared'.
In 2.0, you cannot set both Project and a folder a source location...

So, questions are:
1) did you modify you .classpath manually?
2) if you remove one of the offending line for source location, do you still get
same error?
3) i'd like to know the version you used with this .classpath. Is it 2.0, 2.1?
With which RC version (ie. 2.0.2 or 2.1.3...)?

Thx
Comment 8 Frederic Fusier CLA 2004-06-17 13:08:11 EDT
Or perhaps... /LP_Shared was outside your workspace, wasn't it?
Comment 9 Frederic Fusier CLA 2004-06-17 13:59:30 EDT
Sorry, I was a little be confused...
It seems that LP_Shared is a project of your workspace and in an other project,
you refer to libraries present in folder lib of LP_Shared project...
Is it correct? If so, forgot my previous comment 7 and comment 8...

However, I cannot reproduce your problem. I created 2 projects LP_Shared and
b67210  repectively in 2.1.3 workspace.

Here is my workspace setup:
b67210
  src
    Test.java (empty class)
LP_Shared
  lib
    jclMin.jar (which contains Object.class)

.classpath for b67210:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="lib" path="/LP_Shared/lib/jclMin.jar"/>
    <classpathentry kind="output" path="bin"/>
</classpath>

I have copied these 2 projects in 3.0 workspace and imported them. Then I
removed library jclMin.jar from .classpath of b67210 using dialog of Java Build
Path wihtout any problem...

So I still need precision on versions you use or any other information which 
can help me to reproduce the problem...
There's also still remaining question about manual changes in .classpath as I
cannot see how you can get line:
    <classpathentry kind="src" path="/LP_Shared"/>
in .classpath file using the dialog interface...

Perhaps, if it not too big can you zip your project on which you get the error
(not LP_Shared) and attach it to this bug. If it's too big then please send it
to me...

Thx
Comment 10 Frederic Fusier CLA 2004-06-17 14:00:48 EDT
FYI: I also performed similar test with 2.0.2 workspace and didn't get any error
while removing the library in Java Build Path dialog...
Comment 11 Matthias Baumann CLA 2004-06-17 16:45:22 EDT
HI,
I don't modify the classpath by hand.
 Sorry I cant sent the project. Inside the projced are to many security
informations . Sorry!

I dont remember when I created this Project, mybe with eclipse 2.0 at spring 2002.??


Matthias
Comment 12 Frederic Fusier CLA 2004-06-21 07:06:01 EDT
I've tried to set up a project with similar .classpath using 2.1.3 version:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="lib" path="/LP_Shared/lib/lps/latest/lib/compare.jar"/>
    <classpathentry kind="lib"
        path="/LP_Shared/lib/lps/latest/lib/antsupport.jar"
sourcepath="/LP_AAS/src"/>
    <classpathentry kind="lib"
        path="/LP_Shared/lib/lps/latest/lib/antui.jar" sourcepath="/LP_AAS/src"/>
    <classpathentry kind="lib" path="/LP_Shared/lib/ant.jar"/>
    <classpathentry kind="lib" path="/LP_Shared/lib/jclMin.jar"/>
    <classpathentry kind="lib" path="/LP_Shared/lib/lucene-1.2.jar"/>
    <classpathentry kind="lib" path="/LP_Shared/lib/optional.jar"/>
    <classpathentry kind="lib" path="/LP_Shared/lib/parser.jar"/>
    <classpathentry kind="lib" path="/LP_Shared/lib/xercesImpl.jar"/>
    <classpathentry kind="var" path="IBM_VM"/>
    <classpathentry kind="var" path="IBM_RMI"/>
    <classpathentry kind="lib" path="/LP_Shared/lib/lps/latest/lib/dtcore.jar"/>
    <classpathentry kind="lib" path="/LP_Shared/lib/xmlParserAPIs.jar"/>
    <classpathentry kind="output" path="bin"/>
</classpath>

and then open this project with 3.0 RC3. I still can remove any project using
Java Build Path dialog page without any error or problem.

Please retry with last RC3 version. You can also try to remove by hand in
.classpath...
If it still does not work, then it will be difficult to reproduce your problem
without having having your project as there's surely something wrong with it in
your workspace...

Another advice could be to export this project and import it in a new "pure" 3.0
workspace to see if the problem still remains...

Reopen the bug when you would have made these tests and if you unfortunately
still have issue...
Comment 13 Matthias Baumann CLA 2004-06-25 15:09:45 EDT
3.0 RC3.
does't  work ! Any perpektive is crached.
I go back to 3.0 RC2 !

I am waiting for the day the finally is coming :-))

I hope all other bugs are fixed then.

Matthias