Re: How to get the tomcat internal log out?
On 26/11/2011 05:31, MiB wrote: 25 nov 2011 14.37 Christopher Schultz wrote: +1 Any webapp that runs on 5.5 that doesn't run on Tomcat 7 represents either a regression in Tomcat or a webapp that has been tied-into Tomcat's internal classes (which it shouldn't have been). Running is not the issue here, is it? Internal logs are. The point was made to address a previous answer, in which the OP stated that their apps were 'designed to run on tc 5 or 6'. Not everyone can update to Tomcat 7 midproduction. For sure. That hasn't been raised as an issue yet though. However, there are modern web applications made with certain frameworks that will not run on 5.5 and must use 6 or later. If so there's no alternative to update tomcat. But what does this fact have to do with logging? Nothing, as explained above. AFAICT the OP hasn't really explained their need to get more detailed logging data, or why they can't configure it using the logging.properties file (as indicated in an earlier part of the thread). p -- [key:62590808] signature.asc Description: OpenPGP digital signature
Re: How to get the tomcat internal log out?
On 25 Nov 2011, at 03:15, 飞翔鸟 fxbird1...@163.com wrote: Hello : Why tomcat 7? Are there some features which can make classes updated without restart tomcat? Thanks . Please post your replies below the question. 5.5 is very old and will soon stop being supported. The latest release is 7.0, new users should be using that. p At 2011-11-24 00:04:06,Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 11/21/11 7:00 AM, Konstantin Kolinko wrote: 2011/11/21 Kurt fxbird1...@163.com: Hello all: I compile tomcat 5.5.30 and import it to eclipse as a project, to research how the tomcat load class , I need to view the running log ,after reading through this post(http://tomcat.apache.org/tomcat-5.5-doc/logging.html) and adding below log4j.properties to the direcotry 'common/classes' and log4j-1.26.jar to common/lib, logs turned out not to be generated when I debug the tomcat starting from class Catalina. No idea about it, I've tried many times. log4j.rootLogger=DEBUG,R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=k:\\logs\\tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p%t%c-%m%n log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=DEBUG, R log4j.logger.org.apache.catalina.core=DEBUG, R log4j.logger.org.apache.catalina.session=DEBUG, R And the program parameter I use is 'start', vm parameter is '-Dcatalina.home=I:\My Documents\program\java\projects\eclipse\mye9.0\TOMCAT_5_5_30\mybuild-5.5.30' Any ideas? Thanks 0. Is there a reason why the OP is trying to use Tomcat 5.5 instead of Tomcat 7? 1. Is there a reason why you are trying to use log4j? That is not default configuration for Tomcat logging. The default one is JULI. (Though you have to remove log4.jar from Tomcat if you want JULI to work). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7NGXYACgkQ9CaO5/Lv0PCN/ACgucGIyR8+8qLjAcejpyuDzxN6 r+cAoJCeXdgeK5cEhUFyCfAybjll4XUy =734m -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to get the tomcat internal log out?
Hello guy: Tc7 is good, but I've no choice cause our projects are designed to run on tc 5 or 6. The point is how to make the tomcat internal log out, whatever version it is. Nice day. Kurt 在 Fri, 25 Nov 2011 16:29:32 +0800,Pid * p...@pidster.com 写道: On 25 Nov 2011, at 03:15, 飞翔鸟 fxbird1...@163.com wrote: Hello : Why tomcat 7? Are there some features which can make classes updated without restart tomcat? Thanks . Please post your replies below the question. 5.5 is very old and will soon stop being supported. The latest release is 7.0, new users should be using that. p At 2011-11-24 00:04:06,Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 11/21/11 7:00 AM, Konstantin Kolinko wrote: 2011/11/21 Kurt fxbird1...@163.com: Hello all: I compile tomcat 5.5.30 and import it to eclipse as a project, to research how the tomcat load class , I need to view the running log ,after reading through this post(http://tomcat.apache.org/tomcat-5.5-doc/logging.html) and adding below log4j.properties to the direcotry 'common/classes' and log4j-1.26.jar to common/lib, logs turned out not to be generated when I debug the tomcat starting from class Catalina. No idea about it, I've tried many times. log4j.rootLogger=DEBUG,R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=k:\\logs\\tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p%t%c-%m%n log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=DEBUG, R log4j.logger.org.apache.catalina.core=DEBUG, R log4j.logger.org.apache.catalina.session=DEBUG, R And the program parameter I use is 'start', vm parameter is '-Dcatalina.home=I:\My Documents\program\java\projects\eclipse\mye9.0\TOMCAT_5_5_30\mybuild-5.5.30' Any ideas? Thanks 0. Is there a reason why the OP is trying to use Tomcat 5.5 instead of Tomcat 7? 1. Is there a reason why you are trying to use log4j? That is not default configuration for Tomcat logging. The default one is JULI. (Though you have to remove log4.jar from Tomcat if you want JULI to work). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7NGXYACgkQ9CaO5/Lv0PCN/ACgucGIyR8+8qLjAcejpyuDzxN6 r+cAoJCeXdgeK5cEhUFyCfAybjll4XUy =734m -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to get the tomcat internal log out?
From: Kurt [mailto:fxbird1...@163.com] Subject: Re: How to get the tomcat internal log out? our projects are designed to run on tc 5 or 6. Then they should run on 7 just as well. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to get the tomcat internal log out?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/25/11 3:37 AM, Caldarale, Charles R wrote: From: Kurt [mailto:fxbird1...@163.com] Subject: Re: How to get the tomcat internal log out? our projects are designed to run on tc 5 or 6. Then they should run on 7 just as well. +1 Any webapp that runs on 5.5 that doesn't run on Tomcat 7 represents either a regression in Tomcat or a webapp that has been tied-into Tomcat's internal classes (which it shouldn't have been). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7Pmg0ACgkQ9CaO5/Lv0PBoXwCaAyb1zKy7BsHxP2IaRWchNAg5 fQYAn3p68Jn6RqrapGItpOY81B/mbMQF =j+xU -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to get the tomcat internal log out?
25 nov 2011 14.37 Christopher Schultz wrote: +1 Any webapp that runs on 5.5 that doesn't run on Tomcat 7 represents either a regression in Tomcat or a webapp that has been tied-into Tomcat's internal classes (which it shouldn't have been). Running is not the issue here, is it? Internal logs are. Not everyone can update to Tomcat 7 midproduction. However, there are modern web applications made with certain frameworks that will not run on 5.5 and must use 6 or later. If so there's no alternative to update tomcat. But what does this fact have to do with logging? /MiB - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to get the tomcat internal log out?
2011/11/23 Kurt fxbird1...@163.com: I tried to invoke Bootstrap,but got an error saying Can't load server.xml from I:\workspace\mye10\TOMCAT_5_5_30\conf\server.xml,server.xml does exist At least that is some logging. Maybe that problem can be solved? The more usual configuration you are using, the more people would be able to help. Is there any material to guide a newbie on how to compile,run tomcat 5 of your compiled version, config logging thing etc? There are BUILDING.txt, RUNNING.txt as well as pages in the webapps/(tomcat-)docs. Even if they lack somewhere, there would not be much effort in improving 5.5 documentation, because Tomcat 5.5 is near its end of life. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to get the tomcat internal log out?
Hello Konstantin: I tried to invoke Bootstrap,but got an error saying Can't load server.xml from I:\workspace\mye10\TOMCAT_5_5_30\conf\server.xml,server.xml does exist and when I invoke Catalina ,everything is ok, that is ,web app deployed into webapps/Root can run normally. Is there any material to guide a newbie on how to compile,run tomcat 5 of your compiled version, config logging thing etc? Thanks and nice day. Kurt 在 Mon, 21 Nov 2011 20:00:51 +0800,Konstantin Kolinko knst.koli...@gmail.com 写道: 2011/11/21 Kurt fxbird1...@163.com: Hello all: I compile tomcat 5.5.30 and import it to eclipse as a project, to research how the tomcat load class , I need to view the running log ,after reading through this post(http://tomcat.apache.org/tomcat-5.5-doc/logging.html) and adding below log4j.properties to the direcotry 'common/classes' and log4j-1.26.jar to common/lib, logs turned out not to be generated when I debug the tomcat starting from class Catalina. No idea about it, I've tried many times. log4j.rootLogger=DEBUG,R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=k:\\logs\\tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p%t%c-%m%n log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=DEBUG, R log4j.logger.org.apache.catalina.core=DEBUG, R log4j.logger.org.apache.catalina.session=DEBUG, R And the program parameter I use is 'start', vm parameter is '-Dcatalina.home=I:\My Documents\program\java\projects\eclipse\mye9.0\TOMCAT_5_5_30\mybuild-5.5.30' Any ideas? Thanks 1. Is there a reason why you are trying to use log4j? That is not default configuration for Tomcat logging. The default one is JULI. (Though you have to remove log4.jar from Tomcat if you want JULI to work). 2. Why are you trying to start Catalina? The entry point is org.apache.catalina.startup.Bootstrap. 3. You need to use -Djava.util.logging.manager= and -Djava.util.logging.config.file= vm options to configure JULI, like catalina.sh/catalina.bat does it. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to get the tomcat internal log out?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 11/21/11 7:00 AM, Konstantin Kolinko wrote: 2011/11/21 Kurt fxbird1...@163.com: Hello all: I compile tomcat 5.5.30 and import it to eclipse as a project, to research how the tomcat load class , I need to view the running log ,after reading through this post(http://tomcat.apache.org/tomcat-5.5-doc/logging.html) and adding below log4j.properties to the direcotry 'common/classes' and log4j-1.26.jar to common/lib, logs turned out not to be generated when I debug the tomcat starting from class Catalina. No idea about it, I've tried many times. log4j.rootLogger=DEBUG,R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=k:\\logs\\tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p%t%c-%m%n log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=DEBUG, R log4j.logger.org.apache.catalina.core=DEBUG, R log4j.logger.org.apache.catalina.session=DEBUG, R And the program parameter I use is 'start', vm parameter is '-Dcatalina.home=I:\My Documents\program\java\projects\eclipse\mye9.0\TOMCAT_5_5_30\mybuild-5.5.30' Any ideas? Thanks 0. Is there a reason why the OP is trying to use Tomcat 5.5 instead of Tomcat 7? 1. Is there a reason why you are trying to use log4j? That is not default configuration for Tomcat logging. The default one is JULI. (Though you have to remove log4.jar from Tomcat if you want JULI to work). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7NGXYACgkQ9CaO5/Lv0PCN/ACgucGIyR8+8qLjAcejpyuDzxN6 r+cAoJCeXdgeK5cEhUFyCfAybjll4XUy =734m -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to get the tomcat internal log out?
2011/11/21 Kurt fxbird1...@163.com: Hello all: I compile tomcat 5.5.30 and import it to eclipse as a project, to research how the tomcat load class , I need to view the running log ,after reading through this post(http://tomcat.apache.org/tomcat-5.5-doc/logging.html) and adding below log4j.properties to the direcotry 'common/classes' and log4j-1.26.jar to common/lib, logs turned out not to be generated when I debug the tomcat starting from class Catalina. No idea about it, I've tried many times. log4j.rootLogger=DEBUG,R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=k:\\logs\\tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p%t%c-%m%n log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=DEBUG, R log4j.logger.org.apache.catalina.core=DEBUG, R log4j.logger.org.apache.catalina.session=DEBUG, R And the program parameter I use is 'start', vm parameter is '-Dcatalina.home=I:\My Documents\program\java\projects\eclipse\mye9.0\TOMCAT_5_5_30\mybuild-5.5.30' Any ideas? Thanks 1. Is there a reason why you are trying to use log4j? That is not default configuration for Tomcat logging. The default one is JULI. (Though you have to remove log4.jar from Tomcat if you want JULI to work). 2. Why are you trying to start Catalina? The entry point is org.apache.catalina.startup.Bootstrap. 3. You need to use -Djava.util.logging.manager= and -Djava.util.logging.config.file= vm options to configure JULI, like catalina.sh/catalina.bat does it. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org