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

Bug 351857

Summary: JAXB Schema Generation trims URL from SchemaLocation
Product: z_Archived Reporter: Matt MacIvor <matt.macivor>
Component: EclipselinkAssignee: Matt MacIvor <matt.macivor>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
proposed fix and test case none

Description Matt MacIvor CLA 2011-07-12 11:07:34 EDT
JAXB SchemaGenerator does some processing to make the paths for imported schemas relative. This processing should only be applied to schemas that EcliseLink actually generates. In the case of a package-info with a schemaLocation (indicating that JAXB shouldn't generate that schema, but instead just use the provided location), the schemaLocation should be used exactly as it is in the package-info and not relativized.
Comment 1 Matt MacIvor CLA 2011-07-12 16:20:05 EDT
Created attachment 199531 [details]
proposed fix and test case
Comment 2 Matt MacIvor CLA 2011-07-13 14:45:21 EDT
fix and tests checked into 2.3.1 and trunk.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:03:47 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink