Community
Participate
Working Groups
Due to following inconsistency: 1. Create user library with external jar in regular java project. 2. modify the path of the jar (make the library invalid) 3. invoke "refresh" /* compilation error appears */ 1. create dynamic web project and add user library to it 2. modify the path of the jar (make the library invalid) 3. invoke "refresh" /* no compilation problems, in the preferences there is a problem indicator that something is wrong with the library */ 4. invoke "Update EAR libraries" /* compilation error appears */
Christopher, what version of WTP is this for? 1.5.5? 3.0.3? Assuming the latter, so I am targetting this to 3.0.5 (since 3.0.4 is shutting down.)
After small investigation I think that it is not WTP issue, it looks more like issue with Project Explorer, as the Refresh action works in Package Explorer, but it doesn't work in Project Explorer (I cannot see any relation to WTP). I looked at the bugs reported against refresh in Project Explorer, but most of them are related to working sets and this problem looks different. I suggest changing the summary of this bug to: "Refresh action in Project Explorer doesn't refresh the classpath" or something like this and set the component to Platform/UI.
To clarify the scenerio to reproduce is following: 1. Create Java project 2. Add external jar to the build path 3. On the file system change the path to the jar 4 In the Project Explorer view choose Refresh on the project node -> no error appears Note that ff refresh is invoked in the Package Explorer view and error appears.
Jason, could you have a look at this? With Jakub we tend to think it's JDT issue.
Dani, is the scenario from comment 3 familiar to you?
Yep, this is bug 255174 in JDT Core. The Package Explorer works because its org.eclipse.jdt.ui.actions.RefreshAction does the additional work but it does not work doing the refresh in any other view (e.g. Navigator or Project Explorer) that provides its own Refresh action.
*** This bug has been marked as a duplicate of bug 255174 ***
Verified for 3.7M4 using build I20101205-2000