JPA 2.1 "Invalid persistence.xml" when adding "<description>" or "<jar-file>"

Description

Using this xml:

Hibernate fails to load when calling Persistence.createEntityManagerFactory("unitName");

Jars in Classpath are
hibernate-core-5.2.13.Final
hibernate-jpa-2.1-api-1.0.2.Final
hibernate-commons-annotations-5.0.1.Final

If I remove <description> tag, ORM starts up.

To me it seems Hibernate is trying to parse my xml according to something else than 2.1 spec, but dunno what's really going on.

Environment

None

Assignee

Unassigned

Reporter

Björn Schmidt

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure