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