[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] Felix Karaf / No Persistence provider exception
|
What environment? Is it an OSGI thick client? Web App? What framework?
./tch
On Wed, Aug 4, 2010 at 9:20 AM, Jean-Philippe Clement
<jeanphilippe.clement@xxxxxxxxxx> wrote:
> Hello, I'm currently using Hibernate and I would like to migrate to
> EclipseLink.
>
> I made a quick test which leads to the exception PersistenceException: No
> Persistence provider for EntityManager named JPATest.
>
> Here are installed bundles:
> [ 37] [Active ] [ ] [ 60] EclipseLink ANTLR
> (2.1.0.v20100614-r7608)
> [ 38] [Active ] [ ] [ 60] EclipseLink ASM
> (2.1.0.v20100614-r7608)
> [ 39] [Active ] [ ] [ 60] EclipseLink Core
> (2.1.0.v20100614-r7608)
> [ 40] [Resolved ] [ ] [ 60] JPA Test (1.0.0)
> [ 41] [Installed ] [ ] [ 60] EclipseLink OSGi Deployment
> Fragment (deprectated, non Gemini) (2.1.0.v20100614-r7608)
> [ 42] [Active ] [ ] [ 60] JTA (1.1.0.v201002051055)
> [ 43] [Active ] [ ] [ 56] EclipseLink JPA
> (2.1.0.v20100614-r7608)
> [ 44] [Active ] [ ] [ 54] Java Persistence API 2.0
> (2.0.1.v201006031150)
>
> Test bundle stucture:
> + com
> + ...
> + lib
> ojdbc14.jar
> + META-INF
> MANIFEST.MF
> persistence.xml
> + OSGI-INF
> + blueprint
> jpa-test.xml
>
> MANIFEST.MF:
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: com.xxx.test
> Bundle-Version: 1.0.0
> Bundle-Name: JPA Test
> Bundle-Description: Testing
> Bundle-Vendor: XXX
> JPA-PersistenceUnits: JPATest
> DynamicImport-Package: *
> Import-Package: org.osgi.framework
> Bundle-ClassPath: .,lib/ojdbc14.jar
>
> persistence.xml:
> <persistence xmlns="http://java.sun.com/xml/ns/persistence"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
> http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
> version="2.0">
> <persistence-unit name="JPATest">
>
> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
> <class>com.xxx.JPAData</class>
> <class>com.xxx.JPAOwner</class>
> <properties>
> <property name="javax.persistence.jdbc.driver"
> value="oracle.jdbc.OracleDriver" />
> <property name="javax.persistence.jdbc.url"
> value="jdbc:oracle:thin:@192.1.1.1:1521:stuff" />
> <property name="javax.persistence.jdbc.user"
> value="user" />
> <property name="javax.persistence.jdbc.password"
> value="password" />
> <property name="eclipselink.logging.level"
> value="FINEST" />
> <property name="eclipselink.target-database"
> value="Oracle10g" />
> </properties>
> </persistence-unit>
> </persistence>
>
> I have no clue what the problem is!
>
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>