You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Georg Nozicka <ge...@nozicka.at> on 2012/04/02 14:38:24 UTC

An unrecognized EntityManager property was passed to createEntityManager

I have the following weired warning messages but have no idea why they are
generated (I am listing only a few of them, in reality there are much more).
These warnings are listed to the console with every request to the server
which is doing something with OpenJpa. 

183894  ShopPU  WARN   [http-bio-8080-exec-1] openjpa.Runtime - An
unrecognized EntityManager property was passed to createEntityManager and
will be ignored. Key: "java.vm.version", Value: "class
java.lang.String:20.0-b11".
183895  ShopPU  WARN   [http-bio-8080-exec-1] openjpa.Runtime - An
unrecognized EntityManager property was passed to createEntityManager and
will be ignored. Key: "javax.xml.soap.MessageFactory", Value: "class
java.lang.String:org.apache.openejb.server.webservices.saaj.MessageFactoryImpl".
183895  ShopPU  WARN   [http-bio-8080-exec-1] openjpa.Runtime - An
unrecognized EntityManager property was passed to createEntityManager and
will be ignored. Key: "sun.jnu.encoding", Value: "class
java.lang.String:UTF-8".
183895  ShopPU  WARN   [http-bio-8080-exec-1] openjpa.Runtime - An
unrecognized EntityManager property was passed to createEntityManager and
will be ignored. Key: "java.vendor.url", Value: "class
java.lang.String:http://java.sun.com/".
183895  ShopPU  WARN   [http-bio-8080-exec-1] openjpa.Runtime - An
unrecognized EntityManager property was passed to createEntityManager and
will be ignored. Key: "java.vm.info", Value: "class java.lang.String:mixed
mode".
183895  ShopPU  WARN   [http-bio-8080-exec-1] openjpa.Runtime - An
unrecognized EntityManager property was passed to createEntityManager and
will be ignored. Key: "user.dir", Value: "class
java.lang.String:/home/georg/Eclipse/eclipse".
183895  ShopPU  WARN   [http-bio-8080-exec-1] openjpa.Runtime - An
unrecognized EntityManager property was passed to createEntityManager and
will be ignored. Key: "sun.cpu.isalist", Value: "class java.lang.String:".
183895  ShopPU  WARN   [http-bio-8080-exec-1] openjpa.Runtime - An
unrecognized EntityManager property was passed to createEntityManager and
will be ignored. Key: "java.awt.graphicsenv", Value: "class
java.lang.String:sun.awt.X11GraphicsEnvironment".

This effect I have with a Geronimo Server as well as with a TomEE Server.
With Geronimo I didn't have it as long I did not use Spring to configure the
Persistent Unit, the DB Connection and that like. i.e. just with introducing
Spring these warning messages started to happen. 

The xml which configures the various settings looks as follows:


	<bean id="entityManagerFactory"
	
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">

		<property name="persistenceXmlLocation"
value="classpath*:META-INF/persistence.xml" />

		<property name="persistenceUnitName" value="ShopPU" />

		<property name="dataSource" ref="dataSource" />

		<property name="jpaVendorAdapter" ref="jpaVendorAdapter" />

		<property name="jpaProperties">
			<props>
				<prop key="openjpa.QueryCache">false</prop>
				<prop key="openjpa.Log">DefaultLevel=TRACE, Runtime=TRACE, Tool=TRACE,
					SQL=TRACE</prop>
				<prop key="openjpa.InverseManager">true(Action=warn)</prop>
				<prop key="openjpa.Optimistic">true</prop>
				<prop
key="openjpa.jdbc.SynchronizeMappings">buildSchema(ForeignKeys=true)</prop>
				<prop
key="openjpa.jdbc.DBDictionary">postgres(SearchStringEscape=\)</prop>
				<prop key="openjpa.ConnectionFactoryProperties">PrettyPrint=true,
PrettyPrintLineLength=72,
					PrintParameters=true</prop>
			</props>
		</property>
		
		<property name="loadTimeWeaver">
    		<bean
class="org.springframework.instrument.classloading.ReflectiveLoadTimeWeaver"/>
  		</property>
  		 
	</bean>

	<bean id="jpaVendorAdapter"
class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter">
		<property name="showSql" value="true" />
		<property name="generateDdl" value="false" />
	</bean>

	<bean id="dataSource"
		class="org.springframework.jdbc.datasource.DriverManagerDataSource">
		<property name="username" value="XXXXX" />
		<property name="password" value="YYYYY" />
		<property name="driverClassName" value="org.postgresql.Driver" />
		<property name="url" value="jdbc:postgresql://localhost:5432/shop" />
	</bean>

	<bean id="jpaDialect"
class="org.springframework.orm.jpa.vendor.OpenJpaDialect" />

	<bean id="transactionManager"
class="org.springframework.orm.jpa.JpaTransactionManager">
		<property name="entityManagerFactory" ref="entityManagerFactory" />
		<property name="jpaDialect" ref="jpaDialect" />
	</bean>

	<tx:annotation-driven transaction-manager="transactionManager" />

	<context:annotation-config />

	<bean name="SecurityService"
class="org.apache.openejb.core.security.SecurityServiceImpl" />

Operating System is Linux-Mint 64bit.

Any ideas what I can do to get rid of these warnings?

Georg

--
View this message in context: http://openjpa.208410.n2.nabble.com/An-unrecognized-EntityManager-property-was-passed-to-createEntityManager-tp7429225p7429225.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.