TBH I've never tried log4j, but I'm curious that slf4j does not work for you. My persistence.xml looks like:
<?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"> <persistence-unit name="rx.physikodata" transaction-type="JTA"> <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> <jta-data-source>osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/rx)</jta-data-source> LIST_OF_CLASSES_TO_SCAN <exclude-unlisted-classes>true</exclude-unlisted-classes> <validation-mode>NONE</validation-mode> <properties> <property name="openjpa.Log" value="slf4j"/> <property name="openjpa.RuntimeUnenhancedClasses" value="supported"/> </properties> </persistence-unit> </persistence> and it works like a charm. I've no changes in my logging configuration. Maybe it's something completely differently? logging from your bundles using slf4j works? You'vent changed the startup order, did you? Kind regards, Andreas On Fri, Nov 30, 2012 at 9:25 AM, Alexey Romanov <[email protected]> wrote: > Same thing was happening with "slf4j"/"commons" back in Karaf 2.2.7, but it > threw an exception on "log4j". > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Configuring-OpenJPA-to-log-in-Karaf-2-3-0-tp4026959p4026967.html > Sent from the Karaf - User mailing list archive at Nabble.com.
