Bug 251580 - Persistence XML is being read without validation.
Summary: Persistence XML is being read without validation.
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 262439 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-21 13:58 EDT by Peter Krogh CLA
Modified: 2022-06-09 10:31 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Krogh CLA 2008-10-21 13:58:24 EDT
The quick fix to Bug 247735 was to turn off validation when reading persistence xml.  There are better more correct solutions listed in that bug that should be explored.

-----
An error can occur reading Persistence XML when the enviroment is configured to
use a JAXP SAX parser that does not support the
"http://java.sun.com/xml/jaxp/properties/schemaLanguage" property, the
following exception occurs:

Caused by: org.xml.sax.SAXNotRecognizedException:
http://java.sun.com/xml/jaxp/properties/schemaLanguage
    at org.apache.xerces.framework.XMLParser.setProperty(XMLParser.java:1626)
    at org.apache.xerces.parsers.SAXParser.setProperty(SAXParser.java:770)
    at org.apache.xerces.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:183)
    at
PersistenceUnitProcessor.processPersistenceXML(PersistenceUnitProcessor.java:121)

Currently for reading Persistence XML schema validation is enabled using JDK
1.4 style APIs, a fix could involve the following options:

1.  Continue to use JDK 1.4 APIs, but enable user to turn validation off.
2.  Continue to use JDK 1.4 APIs, but log a message when schema validation
cannot be enabled.
3.  Switch to use JDK 1.5 APIs, this has been the approach in other areas of
EclipseLink.
Comment 1 Tom Ware CLA 2009-01-28 11:05:04 EST
*** Bug 262439 has been marked as a duplicate of this bug. ***
Comment 2 Doug Clarke CLA 2009-11-27 13:29:24 EST
Lowering importance to P3 and deferring to Future for now.
Comment 3 Peter Krogh CLA 2009-11-30 11:35:33 EST
Changing the priority of the bugs that have been recently triaged to future.  Targetting them to P2 will differentiate them from the P3s that have been triaged into future earlier.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:15:22 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:31:55 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink