Hi,
I have an application named myApplication.ear, it contains persistence.xml, differents ejb modules, one war module and differents jar in /lib.
In /lib there is myProviderAPI.jar which contains a class MyProvider extends org.hibernate.ejb.HibernatePersistence
I read eap 6.1 documentation and i seen when i use jboss.as.jpa.providerModule, if a persistence provider is packaged with the application,
this value should be "application".
But i had tried without this property and the persistence provider class is not found on startup server, so i wrote "myApplicationName", "myApplicationName.ear", "deployment.myApplicationName", "deployment.myApplicationName.ear" and even "application", each time on server startup there is an error message for each module deployment :
org.jboss.modules.ModuleNotFoundException: myApplicationName:main
org.jboss.modules.ModuleNotFoundException: myApplicationName.ear:main
org.jboss.modules.ModuleNotFoundException: deployment.myApplicationName:main
org.jboss.modules.ModuleNotFoundException: deployment.myApplicationName.ear:main
org.jboss.modules.ModuleNotFoundException: applicationr:main
Also somebody have a solution to use my own persistence Provider extending HibernatePersistence deploying in my application?
I m not understand how to use apllication's Provider.
Ask me if you have need more details.
Thank you for help.