I'm using a snapshot of WildFly Alpha2.
Hibernate Metamodel Generator is only aware of JPA 2.0. If I use a persistence.xml with the new namespace for JPA 2.1, then I get the following (serious?) warning during compilation. Using orm.xml for JPA 2.1 results in a similar warning.
This is the beginning of persistence.xml: