Hi all, this is my persistence.xml file: <?xml version="1.0"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0"> <persistence-unit name="STGATE" transaction-type="RESOURCE_LOCAL"> <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> <class>....</class> <properties> <property name="openjpa.ConnectionDriverName" value="oracle.jdbc.driver.OracleDriver"/> <property name="openjpa.ConnectionURL" value="jdbc:oracle:thin:@host:port:SID"/> <property name="openjpa.ConnectionUserName" value="user"/> <property name="openjpa.ConnectionPassword" value="pass"/> <property name="openjpa.Log" value="DefaultLevel=WARN, Runtime=WARN, Tool=WARN, SQL=WARN"/> </properties> </persistence-unit> </persistence>
When I run my application and the embedded container starts I get the following warnings. AVVERTENZA: Removing PersistenceUnit(name=STGATE) property openjpa.ConnectionPassword=pass [not valid in a container environment] 31-gen-2014 10.17.06 org.apache.openejb.config.AppInfoBuilder$PersistenceProviderProperties apply AVVERTENZA: Removing PersistenceUnit(name=STGATE) property openjpa.ConnectionDriverName=oracle.jdbc.driver.OracleDriver [not valid in a container environment] 31-gen-2014 10.17.06 org.apache.openejb.config.AppInfoBuilder$PersistenceProviderProperties apply AVVERTENZA: Removing PersistenceUnit(name=STGATE) property openjpa.ConnectionUserName=user [not valid in a container environment] 31-gen-2014 10.17.06 org.apache.openejb.config.AppInfoBuilder$PersistenceProviderProperties apply AVVERTENZA: Removing PersistenceUnit(name=STGATE) property openjpa.ConnectionURL=jdbc:oracle:thin:@host:port:SID [not valid in a container environment] Everything seems to work propertly, I have a @Stateless EJB where I instantiate the EntityManagerFactory and the EntityManager and so on... But I'd like to understand the meaning of those messages. Thank you guys. Bests, -- View this message in context: http://openejb.979440.n4.nabble.com/Warning-persistence-unit-configuration-tp4667381.html Sent from the OpenEJB User mailing list archive at Nabble.com.
