Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330472 - Dynamic JAXB: Schema Import / Entity Resolver fails if bootstrapping from XSDNode
Summary: Dynamic JAXB: Schema Import / Entity Resolver fails if bootstrapping from XSD...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-17 11:35 EST by Rick Barkhouse CLA
Modified: 2022-06-09 10:23 EDT (History)
1 user (show)

See Also:


Attachments
Patch (12.10 KB, patch)
2011-06-27 17:17 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 2010-11-17 11:35:28 EST
Given SCHEMA1 that imports SCHEMA2, everything works fine if bootstrapping from an InputSource, but fails if coming from a Node.  This is due to the introduction of a blank SYSTEM_ID during schema parsing, that later clashes with the SYSTEM_ID returned from the EntityResolver.
Comment 1 Rick Barkhouse CLA 2011-06-27 17:17:21 EDT
Created attachment 198689 [details]
Patch
Comment 2 Rick Barkhouse CLA 2011-06-28 10:54:13 EDT
The same issue exists if trying to use XJC external bindings files.  A fix for this is also included in this patch.
Comment 3 Rick Barkhouse CLA 2011-06-28 11:52:25 EDT
Fixed, reviewed by mmacivor.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:23:29 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink