[jboss-dev-forums] [Design of JBossXB] - Element order exception

alesj do-not-reply at jboss.com
Thu Apr 17 12:00:51 EDT 2008


I get this when hacking persistence.xml metadata:

  | Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Requested element {http://java.sun.com/xml/ns/persistence}jta-data-source is not allowed in this position in the sequence. The next element should be {http://java.sun.com/xml/ns/persistence}properties
  | 

I'm not really understanding where this order is set?

The test code is in metadata project:
 - http://anonsvn.jboss.org/repos/jbossas/projects/metadata/trunk/src/test/java/org/jboss/test/metadata/jpa/PersistenceMDUnitTestCase.java

And this are the two metadata classes:
 - http://anonsvn.jboss.org/repos/jbossas/projects/metadata/trunk/src/main/java/org/jboss/metadata/jpa/spec/PersistenceMetaData.java
 - http://anonsvn.jboss.org/repos/jbossas/projects/metadata/trunk/src/main/java/org/jboss/metadata/jpa/spec/PersistenceUnitMetaData.java

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144937#4144937

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144937



More information about the jboss-dev-forums mailing list