Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341948

Summary: An internal error occurred during: "Updating Tag Library Index".
Product: [WebTools] WTP Source Editing Reporter: Carl Anderson <ccc>
Component: jst.jspAssignee: Nick Sandonato <nsand.dev>
Status: RESOLVED FIXED QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: thatnitind
Version: 3.2.3Flags: thatnitind: review+
Target Milestone: 3.2.4   
Hardware: PC   
OS: Windows XP   
Whiteboard: WI72281
Attachments:
Description Flags
patch none

Description Carl Anderson CLA 2011-04-05 13:35:04 EDT
Here is the exception I am seeing:

!MESSAGE An internal error occurred during: "Updating Tag Library Index".
!STACK 0
java.lang.IllegalArgumentException: Path must include project and resource name: /zip.zip
	at org.eclipse.core.runtime.Assert.isLegal(Unknown Source)
	at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1801)
	at org.eclipse.core.internal.resources.Container.getFile(Container.java:207)
	at org.eclipse.jst.jsp.core.taglib.ProjectDescription.handleElementChanged(ProjectDescription.java:1348)
	at org.eclipse.jst.jsp.core.taglib.ProjectDescription$BuildPathJob.run(ProjectDescription.java:136)
	at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)


Here's what I did:

1) Window->Preferences->Java->Build Path->Classpath Variables, press New, enter "MyVariable" for the name and choose a file.  (In my case, c:\zip.zip )
2) Create an EAR (I used 6.0, but shouldn't matter) with at least 2 child modules.
3) Select one child module, bring up Properties->Java Build Path, select the Libraries tab, press "Add Variable..." and select the variable you created.  Press OK.
4) Select another child module, bring up Properties->Java Build Path, select the Libraries tab, press "Add Variable..." and select the variable you created.  Press OK.

The IllegalArgumentException occurs.  After that, it appears that any change you make in any project's properties causes this error again.
Comment 1 Nick Sandonato CLA 2011-04-05 15:00:04 EDT
Created attachment 192590 [details]
patch
Comment 2 Nick Sandonato CLA 2011-04-05 16:50:18 EDT
Changes released. Thanks.