[jboss-jira] [JBoss JIRA] (WFLY-1412) Hibernate Metamodel Generator is not aware of persistence.xml for JPA 2.1
Juergen Zimmermann (JIRA)
jira-events at lists.jboss.org
Wed May 29 07:35:55 EDT 2013
Juergen Zimmermann created WFLY-1412:
----------------------------------------
Summary: Hibernate Metamodel Generator is not aware of persistence.xml for JPA 2.1
Key: WFLY-1412
URL: https://issues.jboss.org/browse/WFLY-1412
Project: WildFly
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 8.0.0.Alpha2
Reporter: Juergen Zimmermann
Assignee: Scott Marlow
I'm using a snapshot of WildFly Alpha2.
The latest usable version of the Hibernate Metamodel Generator is 1.2.0.Final which is only aware of JPA 2.1. If I use a persistence.xml with the new namespace for JPA 2.1, then I get the following (serious?) warning during compilation. I'm not sure whether this is a WildFly or a Hibernate warning.
[WARNING] Hibernate JPA 2 Static-Metamodel Generator 1.2.0.Final
[WARNING] Error unmarshalling /META-INF/persistence.xml with exception :
javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 28; cvc-elt.1: Deklaration des Elements "persistence" kann nicht gefunden werden.]
This is the beginning of persistence.xml:
<?xml version="1.0"?>
<!--
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="2.0">
-->
<persistence 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"
version="2.1"> <!-- line 12 -->
<persistence-unit name="de.shop.PU">
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list