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

Bug 327206

Summary: AddMappedOutputFoldersParticipant failing when deleting a deployed project
Product: [WebTools] WTP Common Tools Reporter: Rob Stryker <stryker>
Component: wst.commonAssignee: Rob Stryker <stryker>
Status: RESOLVED FIXED QA Contact: Carl Anderson <ccc>
Severity: normal    
Priority: P3 Flags: ccc: review+
Version: 3.2   
Target Milestone: 3.2.3   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch checks that classpath file and project exist none

Description Rob Stryker CLA 2010-10-07 06:46:27 EDT
-create a new dynamic web project for JBossAS-6.0M5 (runtime shouldn't matter)
-create some dummy index.jsp file
-run the project on the server
-delete the project including its sources

=> ide log says:

java.io.IOException: Cannot obtain a location URI for L/h/.classpath
at org.eclipse.jdt.internal.core.JavaProject.readFileEntriesWithException(JavaProject.java:2427)
at org.eclipse.jdt.internal.core.JavaProject.readFileEntries(JavaProject.java:2461)
at org.eclipse.jdt.internal.core.JavaProject.readRawClasspath(JavaProject.java:2499)
at org.eclipse.jst.common.jdt.internal.javalite.JavaProjectLite.readRawClasspath(JavaProjectLite.java:116)
at org.eclipse.jst.common.internal.modulecore.AddMappedOutputFoldersParticipant.getMappedJavaOutputContainers(AddMappedOutputFoldersParticipant.java:94)
at org.eclipse.jst.common.internal.modulecore.AddMappedOutputFoldersParticipant.finalize(AddMappedOutputFoldersParticipant.java:74)
at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.runFinalizations(FlatVirtualComponent.java:153)
at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.cacheResources(FlatVirtualComponent.java:122)
at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.getChildModules(FlatVirtualComponent.java:111)
at org.eclipse.wst.web.internal.deployables.FlatComponentDeployable.getExportModelChildren(FlatComponentDeployable.java:172)
at org.eclipse.wst.web.internal.deployables.FlatComponentDeployable.getModules(FlatComponentDeployable.java:183)

Need to check project still exists in this particular participant to prevent such exceptions.
Comment 1 Rob Stryker CLA 2010-10-07 08:01:36 EDT
Created attachment 180415 [details]
Patch checks that classpath file and project exist
Comment 2 Rob Stryker CLA 2010-10-07 08:02:58 EDT
Looking for some delicious approvals
Comment 3 Carl Anderson CLA 2010-11-01 14:21:40 EDT
Approved.
Comment 4 Rob Stryker CLA 2010-11-19 03:44:04 EST
seems i committed this after the approval. Great.