|
|
|
|
|
Re: migrate OM2M bundle to apache felix [message #1698679 is a reply to message #1665885] |
Wed, 17 June 2015 08:51 |
Francois Aissaoui Messages: 38 Registered: April 2015 |
Member |
|
|
Hi
This a common error with JPA when the framework can not reach the persistence.xml file. Indeed, this file is required to be located in the META-INF folder of the core jar file.
Try to « unjar » the core jar file with the following command : « jar -xvf org.eclipse.om2m.core_*.jar » and check the presence of the persistence.xml file in the META-INF folder.
Usually, the file is copied there by the maven install process. Check the pom.xml file of the core project, it must have the following lines :
<build>
<resources>
<resource>
<directory>META-INF</directory>
<targetPath>META-INF/</targetPath>
<includes>
<include>persistence.xml</include>
</includes>
</resource>
</resources>
</build>
This ensures that the persistence.xml is copied in the jar file.
This should fix the error « No Persistence provider for EntityManager named om2mdb » because the persistence provider is declared in the persistence file.
Tell us if this fix your problem!
François
[Updated on: Wed, 17 June 2015 14:22] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02757 seconds