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

Bug 347211

Summary: Improve exception message for JAXB context creation failure
Product: z_Archived Reporter: Rick Barkhouse <rick.barkhouse>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed patch.
none
Proposed patch. none

Description Rick Barkhouse CLA 2011-05-25 14:30:27 EDT
If JAXB Context creation fails, no mention is made of the EclipseLink OXM metadata that could be present in the properties Map passed to the context factory:

"The path {0} contains no ObjectFactory or jaxb.index file and no sessions.xml was found"

This should be improved to mention OXM metadata:

"The context path {0} contains no ObjectFactory or jaxb.index, no external metadata was found in properties Map, and no sessions.xml was found."
Comment 1 Rick Barkhouse CLA 2011-05-25 14:32:22 EDT
Created attachment 196590 [details]
Proposed patch.
Comment 2 Rick Barkhouse CLA 2011-05-25 14:36:13 EDT
Created attachment 196591 [details]
Proposed patch.
Comment 3 Rick Barkhouse CLA 2011-05-25 14:53:36 EDT
Fixed, reviewed by dmahar.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:15:48 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:35:29 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink