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

Bug 329993

Summary: Better logging for J2EEModelProviderRegistry
Product: [WebTools] WTP Java EE Tools Reporter: Jason Sholl <jsholl>
Component: jst.j2eeAssignee: Jason Sholl <jsholl>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 Flags: cbridgha: review+
Version: 3.2   
Target Milestone: 3.2.3   
Hardware: PC   
OS: Windows Server 2003   
Whiteboard:
Attachments:
Description Flags
patch none

Description Jason Sholl CLA 2010-11-11 08:30:45 EST
J2EEModelProviderRegistry needs slightly better error logging to report the offending extension details so bad extensions can be quickly identified.

Instead of logging a message like this followed by the exception which caused it:

!ENTRY org.eclipse.jst.j2ee 4 0 2010-11-11 08:04:22.921
!MESSAGE Unrecognized facet: jst.ear2

The following will now be logged followed by the exception which caused it:

!ENTRY org.eclipse.jst.j2ee 4 0 2010-11-11 08:29:11.703
!MESSAGE Plugin org.eclipse.jst.jee, extension org.eclipse.jst.j2ee.J2EEModelProvider
Unrecognized facet: jst.ear2
Comment 1 Jason Sholl CLA 2010-11-11 08:32:52 EST
Created attachment 182897 [details]
patch
Comment 2 Jason Sholl CLA 2010-11-11 08:35:15 EST
code checked into both 32M and HEAD for WTP 3.2.3 and 3.3
Comment 3 Chuck Bridgham CLA 2010-11-17 09:51:48 EST
approved