> -----Original Message----- > From: Michael Dick [mailto:michael.d.d...@gmail.com] > Sent: Wednesday, July 13, 2011 12:53 > To: users@openjpa.apache.org > Subject: Re: Logging questions > > It looks like you have the log4j-over-slf4j bridge on your > classpath. Or some combination of the different logging facilities.
It is possible. But my test case does not have it. I will check deeper on this. > > So commons-logging detects log4j and tries to use it. Log4j > tries to delegate to slf4j, but that fails due to the missing > implementation class. > > Do other parts of your application use log4j or slf4j? If > not, can you remove them from the classpath and try 'just' > with commons-logging? > There are legacy parts of the system that were designed for other logging frameworks, I do not have permission to modify those. I will need to find a way to force java.util.logging. > -mike > > On Tue, Jul 12, 2011 at 1:36 PM, Jason Pyeron > <jpye...@pdinc.us> wrote: > > > > -----Original Message----- > > > From: Rick Curtis [mailto:curti...@gmail.com] > > > Sent: Tuesday, July 12, 2011 14:00 > > > To: users@openjpa.apache.org > > > Subject: Re: Logging questions > > > > > > What do you have set for a configuration property? Have you tried > > > openjpa.Log=commons? > > > > <snip/> > > > > <properties> > > <property name="openjpa.DetachState" > > value="loaded(DetachedStateField=false)"/> > > <property name="openjpa.Log" > value="commons"/> > > <!-- <property name="openjpa.Log" > > value="SQL=TRACE"/> > > --> > > <!-- <property name="openjpa.Log" > > value="DefaultLevel=TRACE"/> --> > > <!-- <property name="openjpa.Log" > value="none"/> --> > > <property name="javax.persistence.jdbc.url" > > value="jdbc:oracle:thin:@localhost:1521/XE"/> > > <property name="javax.persistence.jdbc.driver" > > value="oracle.jdbc.driver.OracleDriver"/> > > <property name="javax.persistence.jdbc.user" > > value="fepldev_web" > > /> > > <property name="javax.persistence.jdbc.password" > > value="password" /> > > <property name="openjpa.jdbc.EagerFetchMode" > > value="join" /> > > <property name="openjpa.jdbc.SchemaFactory" > > value="native(ForeignKeys=true) " /> > > </properties> > > </persistence-unit> > > </persistence> > > > > > > Also worth noting, it burps out at the very start: > > > > SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". > > SLF4J: Defaulting to no-operation (NOP) logger implementation > > SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for > > further details. > > log4j:WARN No appenders could be found for logger (openjpa.Runtime). > > log4j:WARN Please initialize the log4j system properly. > > > > > > > > On Tue, Jul 12, 2011 at 12:48 PM, Jason Pyeron <jpye...@pdinc.us> > > > wrote: > > > > > > > > -----Original Message----- > > > > > From: Rick Curtis [mailto:curti...@gmail.com] > > > > > Sent: Tuesday, July 12, 2011 12:22 > > > > > To: users@openjpa.apache.org > > > > > Subject: Re: Logging questions > > > > > > > > > > Jason - > > > > > > > > > > Sorry about the slow reply, I must have missed this > one somehow. > > > > > > > > > > > 1. Is it possible to (dynamically) change the logging > > > > > levels at runtime? > > > > > No, I don't believe so. > > > > > > > > > > > 2. Could someone elaborate more on the usage of > > > java.util.logging > > > > > > by > > > > > setting to value to "commons"? > > > > > What more are you looking for? > > > > > > > > Hmm.. It does not seem to use j.u.l for logging when set to > > > commons on > > > > Sun Java > > > > 1.6 64 bit. > > > > > > > > My formatter would output like: > > > > > > > > Jul 12, 2011 12:32:10 PM > > > org.apache.coyote.http11.Http11BaseProtocol > > > > init > > > > INFO: Initializing Coyote HTTP/1.1 on http-8080 > > > > > > > > But I am getting interspersed [double CR added for clarity]: > > > > > > > > 3500 localhost WARN [main] openjpa.MetaData - Found > > > duplicate generator > > > > "seq" in "class > > > > > > > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.RecycledVoucherCheckFile". > > > > Ignoring. > > > > > > > > > > > > Jul 12, 2011 1:43:58 PM > > > > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels setUp > > > > FINE: factory created > > > > > > > > > > > > 203 localhost INFO [main] openjpa.Runtime - Starting OpenJPA > > > > 2.1.0-SNAPSHOT > > > > > > > > > > > > 484 localhost INFO [main] openjpa.jdbc.JDBC - Using > > > dictionary class > > > > "org.apache.openjpa.jdbc.sql.OracleDictionary". > > > > > > > > > > > > Jul 12, 2011 1:44:07 PM > > > > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels setUp > > > > FINE: em created > > > > > > > > > > > > Jul 12, 2011 1:44:07 PM > > > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels > > > > testListAllObjects > > > > INFO: class > > > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.AdditionalErrorInfo: > > > > before > > > > > > > > > > > > 14078 localhost TRACE [main] openjpa.jdbc.SQL - <t ... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Wed, Jun 29, 2011 at 3:55 PM, Jason Pyeron > <jpye...@pdinc.us> > > > > > wrote: > > > > > > > > > > > Using 2.1.x I have 2 questions I was unable to > google for an > > > > > > answer after reading the manual. > > > > > > > > > > > > 1. Is it possible to (dynamically) change the logging > > > > > levels at runtime? > > > > > > > > > > > > 2. Could someone elaborate more on the usage of > > > > > java.util.logging by > > > > > > setting the value to "commons"? > > > > > > > > > > > > -Jason -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00.