[ https://issues.apache.org/jira/browse/OPENJPA-2897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17485562#comment-17485562 ]
Rich M commented on OPENJPA-2897: --------------------------------- I can see persistence xsd 1.0 and 2.0 in openjpa jar 3.0. However, I am using persistence 2.1 xsd as below. <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> During enhance, build fails with this error: [ERROR] Failed to execute goal org.apache.openjpa:openjpa-maven-plugin:3.0.0:enhance (enhancer) on project <name>: Execution enhancer of goal org.apache.openjpa:openjpa-maven-plugin:3.0.0:enhance failed: org.apache.openjpa.persistence.PersistenceProductDerivation:java.io.IOException: org.xml.sax.SAXException: file:/<project>/target/classes/META-INF/persistence.xml [Location: Line: 2, C: 251]: org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Oracle Access Manager Operation Error'. -> [Help 1] > persistence_2_1.xsd not available > --------------------------------- > > Key: OPENJPA-2897 > URL: https://issues.apache.org/jira/browse/OPENJPA-2897 > Project: OpenJPA > Issue Type: Bug > Reporter: Rich M > Priority: Blocker > > Persistence.xml contains schema validation referring to > [http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd] > This gets redirected to > [https://www.oracle.com/webfolder/technetwork/jsc/xml/ns/persistence/persistence_2_1.xsd] > However, 2.1.xsd is not available here, failing the builds during build-time > enhancement. > Any idea what's going on ? -- This message was sent by Atlassian Jira (v8.20.1#820001)