openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trey (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OPENJPA-2338) persistence.xml openjpa.Log property ignored
Date Wed, 20 Feb 2013 21:09:13 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-2338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Trey updated OPENJPA-2338:
--------------------------

    Description: 
I have a persistence.xml at /META-INF/foo/persistence.xml:
<persistence xmlns="http://java.sun.com/xml/ns/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_2_0.xsd"
	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.



  was:
I have a persistence.xml at /META-INF/foo/persistence.xml:
<persistence xmlns="http://java.sun.com/xml/ns/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_2_0.xsd"
	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.

-Trey


    
> persistence.xml openjpa.Log property ignored
> --------------------------------------------
>
>                 Key: OPENJPA-2338
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2338
>             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="http://java.sun.com/xml/ns/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_2_0.xsd"
> 	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: http://www.atlassian.com/software/jira

Mime
View raw message