You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Charles Moulliard <cm...@gmail.com> on 2010/11/12 09:34:48 UTC

OpenJPA 2.0.1 - Log4J - OSGI platform

I have deployed the following bundle (= jar file) on a OSGI Server (= Apache
Servicemix 4)

mvn:org.apache.openjpa/openjpa/2.0.1

Unfortunately, JPA traces are not added in the servicemix log and only one
WARN message appears on the console. If I try to change the log level of
log4j for openJPA to debug, nothing appears on the console.

Here are the packages imported by jpa for logging

OPS4J Pax Logging - API (3): org.apache.commons.logging; version=1.1.1
OPS4J Pax Logging - API (3): org.apache.commons.logging; version=1.0.4
OPS4J Pax Logging - API (3): org.apache.log4j; version=1.2.15 

Does anybody knows how to solve that ?

Regards,

Charles
-- 
View this message in context: http://openjpa.208410.n2.nabble.com/OpenJPA-2-0-1-Log4J-OSGI-platform-tp5731566p5731566.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: OpenJPA 2.0.1 - Log4J - OSGI platform

Posted by Pinaki Poddar <pp...@apache.org>.
> only one WARN message appears on the console.

a) What is the WARN message?
b) what is the logging configuration settings in OpenJPA's persistence.xml?

-----
Pinaki 
-- 
View this message in context: http://openjpa.208410.n2.nabble.com/OpenJPA-2-0-1-Log4J-OSGI-platform-tp5731566p5735843.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.