When I deploy my EAR always starts the hibernate-annotations and hibernate-entitymanager embedded in server (/Jboss/server/default/lib).
I want use another version (newest).
I put the jars in my EAR and declared then in application.xml, but continues using the embedded. How I do to use the EAR jars?
You have to go for application classloader scoping. Go through the following wiki articles to understand how that can be done: