Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] eclipselink.target-server with OC4J

What is the full stack trace of the error?

ageing student wrote:
When using the property eclipselink.target-server with the value OC4J_10_1_3
in my persistence.xml I get the following error ...

Exception creating EntityManagerFactory using PersistenceProvider class
org.eclipse.persistence.jpa.PersistenceProvider for persistence unit
ServerJPA.

I don't get this error if I omit the property.

I'm using OC4J 10.1.3.3.0

My persistence.xml is as follows

<?xml version="1.0" encoding="windows-1252" ?>
<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_1_0.xsd";
             version="1.0" xmlns="http://java.sun.com/xml/ns/persistence";>
  <persistence-unit name="ServerJPA" transaction-type="JTA">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>jdbc/jpa</jta-data-source>
    <properties>
      <property name="eclipselink.target-database" value="Oracle"/>
      <property name="eclipselink.target-server" value="OC4J_10_1_3"/>
      <property name="eclipselink.logging.level" value="INFO"/>
      <property name="eclipselink.logging.exceptions" value="true"/>
      <property name="eclipselink.logging.exceptions" value="true"/>
      <property name="eclipselink.logging.thread" value="true"/>
      <property name="eclipselink.logging.timestamp" value="true"/>
      <property name="eclipselink.logging.session" value="true"/>
      <property name="eclipselink.logging.level.WEAVER" value="INFO"/>
    </properties>
  </persistence-unit>
</persistence>


Back to the top