I deployed a ear that has a har file that has mapping xml, hibernate-service.xml and the pojo to jboss server. It works fine.
When i deploy my second ear,
i have the exception below:
org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.har:service=Hibernate
When i remove hibernate-service.xml from the har file , i got "MappingException: Unknown Entity" . So where is the problem ?
Don't i have to put hibernate-service.xml in all my hars ? Is the MappingException related to this ?
No, just once.