Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources
PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources [message #716596] Wed, 17 August 2011 19:45
plex4r  is currently offline plex4r
Messages: 4
Registered: August 2011
Junior Member
I am working in eclipse352 and trying to create a simple JPA example with Weblogic on Oracle.
I am getting a PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources.
My persistence.xml is below. Any ideas what the issue is?

<?xml version="1.0" encoding="UTF-8"?>
<persistence ....
<persistence-unit name="JPATest" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<class>com.bill.model.Person</class>
<properties>
<property name="eclipselink.target-server" value="WebLogic_10"/>
<property name="eclipselink.jdbc.driver" value="oracle.jdbc.OracleDriver"/>
<property name="eclipselink.jdbc.url" value="jdbc:oracle:thin:@//oracledbserver:1922/e1dev"/>
<property name="eclipselink.jdbc.user" value="user1"/>
<property name="eclipselink.jdbc.password" value="pwd"/>
<property name="eclipselink.logging.level" value="DEBUG"/>
<property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
</properties>
</persistence-unit>
</persistence>


Exception in thread "Main Thread" javax.persistence.PersistenceException: No Persistence provider for EntityManager named JPATest: Provider named org.eclipse.persistence.jpa.PersistenceProvider threw unexpected exception at create EntityManagerFactory:
java.lang.NullPointerException
java.lang.NullPointerException
at java.util.ResourceBundle.getBundle(ResourceBundle.java:960)
at org.eclipse.persistence.exceptions.i18n.ExceptionMessageGenerator.buildMessage(ExceptionMessageGenerator.java:47)
at org.eclipse.persistence.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:126)
at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:133)
at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:65)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:110)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at com.bill.client.Client1.main(Client1.java:15)



at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at com.bill.client.Client1.main(Client1.java:14)
Previous Topic:[RESOLVED] ClassCastException
Next Topic:JPA BigDecimal scale difference between Oracle and DB2
Goto Forum:
  


Current Time: Thu Oct 23 10:10:41 GMT 2014

Powered by FUDForum. Page generated in 0.11162 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software