Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347211 - Improve exception message for JAXB context creation failure
Summary: Improve exception message for JAXB context creation failure
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 14:30 EDT by Rick Barkhouse CLA
Modified: 2022-06-09 10:35 EDT (History)
0 users

See Also:


Attachments
Proposed patch. (7.62 KB, patch)
2011-05-25 14:32 EDT, Rick Barkhouse CLA
no flags Details | Diff
Proposed patch. (10.96 KB, patch)
2011-05-25 14:36 EDT, Rick Barkhouse CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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