openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Bauer (JIRA)" <>
Subject [jira] [Commented] (OPENJPA-2338) persistence.xml openjpa.Log property ignored
Date Mon, 04 Mar 2013 15:01:19 GMT


Jeremy Bauer commented on OPENJPA-2338:

I noticed your persistence.xml is in "/META-INF/foo/persistence.xml".  A persistence.xml in
a non-default location will not be processed by the provider unless you are using a framework
that supports non-default locations or using the OpenJPA API to specify the path to the persistence.xml.
  Just making sure you aren't updating a persistence.xml that isn't being processed...

Also, OpenJPA has an integration test suite for slf4j - openjpa-integration/slf4j.  You might
check that out if you haven't.
> persistence.xml openjpa.Log property ignored
> --------------------------------------------
>                 Key: OPENJPA-2338
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: logging
>    Affects Versions: 2.2.1
>         Environment: Windows 7 64-bit
>            Reporter: Trey
> I have a persistence.xml at /META-INF/foo/persistence.xml:
> <persistence xmlns=""
> 	xmlns:xsi=""
> 	xsi:schemaLocation=""
> 	version="2.0">
> 	<persistence-unit name="agent" transaction-type="RESOURCE_LOCAL">
>         <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
> 		<class>foo.MyClass</class>
> 		<exclude-unlisted-classes>true</exclude-unlisted-classes>
> 		<properties>
> 			<property name="openjpa.Log" value="slf4j" />
> 		</properties>
> 	</persistence-unit>
> </persistence>
> Despite specifying slf4j, the built-in logging mechanism is used.
> This is the same behavior no matter what value I provide (log4j, none, etc) or if I remove
the <properties> tag altogether.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message