> I've no changes in my logging configuration.

Does that mean you have no log4j.category.openjpa.* properties in
org.ops4j.pax.logging.cfg?

Yours, Alexey Romanov


On Fri, Nov 30, 2012 at 1:53 PM, Andreas Pieber [via Karaf] <
[email protected]> wrote:

> 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
> <[hidden email] <http://user/SendEmail.jtp?type=node&node=4026971&i=0>>
> 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.
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://karaf.922171.n3.nabble.com/Configuring-OpenJPA-to-log-in-Karaf-2-3-0-tp4026959p4026971.html
>  To unsubscribe from Configuring OpenJPA to log in Karaf 2.3.0, click 
> here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4026959&code=YWxleGV5LnYucm9tYW5vdkBnbWFpbC5jb218NDAyNjk1OXwtNDYxNDY2Mjc3>
> .
> NAML<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Configuring-OpenJPA-to-log-in-Karaf-2-3-0-tp4026959p4026976.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to