Return-Path: Delivered-To: apmail-xml-security-dev-archive@www.apache.org Received: (qmail 2698 invoked from network); 11 Jan 2010 19:47:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jan 2010 19:47:36 -0000 Received: (qmail 77112 invoked by uid 500); 11 Jan 2010 19:47:35 -0000 Delivered-To: apmail-xml-security-dev-archive@xml.apache.org Received: (qmail 77096 invoked by uid 500); 11 Jan 2010 19:47:35 -0000 Mailing-List: contact security-dev-help@xml.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: security-dev@xml.apache.org List-Id: Delivered-To: mailing list security-dev@xml.apache.org Received: (qmail 77088 invoked by uid 99); 11 Jan 2010 19:47:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2010 19:47:35 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.98.36] (HELO brmea-mail-4.sun.com) (192.18.98.36) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2010 19:47:26 +0000 Received: from fe-amer-10.sun.com ([192.18.109.80]) by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o0BJl5eC007029 for ; Mon, 11 Jan 2010 19:47:05 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KW300K00L1EQB00@mail-amer.sun.com> for security-dev@xml.apache.org; Mon, 11 Jan 2010 12:47:05 -0700 (MST) Received: from [129.148.174.250] ([unknown] [129.148.174.250]) by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KW300CLALMG92C0@mail-amer.sun.com> for security-dev@xml.apache.org; Mon, 11 Jan 2010 12:47:04 -0700 (MST) Date: Mon, 11 Jan 2010 14:47:03 -0500 From: Sean Mullan Subject: Re: debugging In-reply-to: <26F80DDA37B8D74089834618998C3DF1AD210900@SIMAIL.snt-is.com> Sender: Sean.Mullan@Sun.COM To: security-dev@xml.apache.org Message-id: <4B4B8037.3040207@sun.com> References: <26F80DDA37B8D74089834618998C3DF1AD20FAFE@SIMAIL.snt-is.com> <4B449DCF.1000000@sun.com> <26F80DDA37B8D74089834618998C3DF1AD2104F7@SIMAIL.snt-is.com> <4B4B4D47.8000709@sun.com> <26F80DDA37B8D74089834618998C3DF1AD210900@SIMAIL.snt-is.com> User-Agent: Thunderbird 2.0.0.22 (X11/20090612) Are you using the JSR 105 API and JDK 6? If you are, it could be using the XML Security implementation bundled with JDK 6. This uses a different logging mechanism (JDK logging). If so, check my blog for info on configuring that: http://weblogs.java.net/blog/mullan/archive/2006/02/more_xml_signat_1.html http://weblogs.java.net/blog/2008/03/13/configuring-logging-properties-jsr-105-and-apache-xml-signature-applications I don't really know much about configuring log4j - I just use the config that somebody else set up previously in the ant build.xml file. It seems to work for me, at least for the stuff in the Apache XML Security code. --Sean Bolcina Ivan wrote: > Thanks, Sean. > > I dont have a clue, why it doesn't work. > I put commons-logging.jar, commons-loggin-api.jar, log4j-1.2.15.jar into lib directory. > > I edited log4j.properties like below. > Then I stared my app using > java -Dlog4j.configuration=log4j.properties -jar PartnersXC.jar > > Still, nothing happens :-( > Any ideas? > > My coleage told me, that this "should work right out of box", so I really don't know what am I missing... > > BR,ivan > > # ------------------------------------------------------------------------ > # > # Logging Configuration > # > # ------------------------------------------------------------------------ > # > log4j.rootLogger=DEBUG, Console > > ######################################################################## > # > # Logging based on packages > # > ######################################################################## > log4j.logger.org.apache.xml.security=DEBUG, Console > log4j.logger.org.apache.xml.security.test.AllTests=DEBUG, Console > > ######################################################################## > # > # Logfile definitions > # > ######################################################################## > #Console Log > log4j.appender.Console=org.apache.log4j.ConsoleAppender > log4j.appender.Console.Threshold=DEBUG > log4j.appender.Console.layout=org.apache.log4j.PatternLayout > log4j.appender.Console.layout.ConversionPattern=%-5p %C{1}:%L - %m\n > log4j.appender.Console.Target=System.out > > #LOGTXT Log > log4j.appender.LOGTXT=org.apache.log4j.FileAppender > log4j.appender.LOGTXT.File=log.txt > log4j.appender.LOGTXT.Append=true > log4j.appender.LOGTXT.Threshold=DEBUG > log4j.appender.LOGTXT.layout=org.apache.log4j.PatternLayout > log4j.appender.LOGTXT.layout.ConversionPattern=%-5p %C{1}:%L - %m\n > > > and then I started my app.like > > -----Original Message----- > From: Sean.Mullan@Sun.COM [mailto:Sean.Mullan@Sun.COM] > Sent: Monday, January 11, 2010 5:10 PM > To: security-dev@xml.apache.org > Subject: Re: debugging > > Look at src/org/apache/xml/security/resource/log4j.properties in the > source tree. Change these lines to print debug messages on Console: > > log4j.logger.org.apache.xml.security=DEBUG, Console > log4j.logger.org.apache.xml.security.test.AllTests=DEBUG, Console > > Specify the following system property when running tests: > > -Dlog4j.configuration=[path to logging.properties] > > Make sure log4j and apache commons logging jars are in classpath. > > Look at the build.xml and search for "log4j" to see how this works when > running ant and Junit tests. > > --Sean > > > Bolcina Ivan wrote: >> Thanks for info, but I don't understand it. >> >> The link on site of apache xml security seems broken, and link you provided explains things very generic. >> >> As far as I understand, I have to write yet another configuration file? >> Has anyone enable debuging messages? Can you share your configuration files/startup properties? >> >> BR,ivan >> >> -----Original Message----- >> From: Sean.Mullan@Sun.COM [mailto:Sean.Mullan@Sun.COM] >> Sent: Wednesday, January 06, 2010 3:27 PM >> To: security-dev@xml.apache.org >> Subject: Re: debugging >> >> Bolcina Ivan wrote: >>> Hi. >>> >>> >>> >>> How to enable debuging messages. I looked at log4j.log and it seems >>> fine, but no debug messages are printed out to console? >> See: http://commons.apache.org/logging/guide.html#Configuration >> >> --Sean >