Hi: I use a servlet to config log4j just as short manual describing in "Initialization servlet" item, it works in WebLogic, but can not work in JBoss-Tomcat, it said "ERROR: invalid console appender config detected, console stream is looping", why? The source code & properties file & console log are attached. Thanks!
Log4jInitServlet.java
Description: java/log4j.properties
Description: Binary data21:45:25,473 INFO [MainDeployer] Undeploying file:/C:/jboss-3.0.0_tomcat-4.0.3/ server/default/deploy/interest.ear 21:45:25,493 INFO [EmbeddedCatalinaServiceSX] undeploy, ctxPath=/interest, warU rl=njar:file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/tmp/deploy/server/defau lt/deploy/interest.ear/79.interest.ear^/interest.war 21:45:25,513 INFO [Engine] StandardHost[localhost]: Removing web application at context path /interest 21:45:25,553 INFO [Engine] Log4j-init: destroy 21:45:25,583 INFO [EjbModule] Stopping 21:45:25,593 INFO [EjbModule] Stopped 21:45:25,603 INFO [EARDeployer] Undeploying J2EE application, destroy step: fil e:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/interest.ear 21:45:25,623 INFO [MainDeployer] not deleting localUrl, it is null or not a cop y: njar:file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/tmp/deploy/server/defau lt/deploy/interest.ear/79.interest.ear^/interest.war 21:45:25,653 INFO [MainDeployer] Undeployed njar:file:/C:/jboss-3.0.0_tomcat-4. 0.3/server/default/tmp/deploy/server/default/deploy/interest.ear/79.interest.ear ^/interest.war 21:45:25,673 INFO [EjbModule] Destroying 21:45:25,703 INFO [EjbModule] Remove JSR-77 EJB Module: jboss.management.single :J2EEApplication=interest.ear,J2EEServer=Single,j2eeType=EJBModule,name=interest .jar 21:45:25,733 INFO [EjbModule] Destroyed 21:45:25,743 INFO [MainDeployer] not deleting localUrl, it is null or not a cop y: njar:file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/tmp/deploy/server/defau lt/deploy/interest.ear/79.interest.ear^/interest.jar 21:45:25,763 INFO [MainDeployer] Undeployed njar:file:/C:/jboss-3.0.0_tomcat-4. 0.3/server/default/tmp/deploy/server/default/deploy/interest.ear/79.interest.ear ^/interest.jar 21:45:25,793 INFO [MainDeployer] could not delete directory file:/C:/jboss-3.0. 0_tomcat-4.0.3/server/default/tmp/deploy/server/default/deploy/interest.ear/79.i nterest.ear restart will delete it 21:45:25,823 INFO [MainDeployer] Undeployed file:/C:/jboss-3.0.0_tomcat-4.0.3/s erver/default/deploy/interest.ear 21:45:25,843 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss -3.0.0_tomcat-4.0.3/server/default/deploy/interest.ear 21:45:25,913 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-3.0.0_tom cat-4.0.3/server/default/deploy/interest.ear 21:45:26,164 INFO [EjbModule] Creating 21:45:26,214 INFO [EjbModule] Deploying Interest 21:45:26,274 INFO [EjbModule] Created 21:45:26,284 INFO [EjbModule] Starting 21:45:26,434 INFO [EjbModule] Started 21:45:26,564 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=/interest, warUrl =njar:file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/tmp/deploy/server/default /deploy/interest.ear/80.interest.ear^/interest.war 21:45:26,935 INFO [Engine] WebappLoader[/interest]: Deploying class repositorie s to work directory C:\jboss-3.0.0_tomcat-4.0.3\catalina\work\localhost\interest 21:45:26,965 INFO [Engine] StandardManager[/interest]: Seeding random number ge nerator class java.security.SecureRandom 21:45:26,985 INFO [Engine] StandardManager[/interest]: Seeding of random number generator has been completed 21:45:27,185 INFO [Engine] ContextConfig[/interest]: Added certificates -> requ est attribute Valve 21:45:27,666 INFO [EmbeddedCatalinaServiceSX] Using Java2 parent classloader de legation: true 21:45:27,686 INFO [Engine] StandardWrapper[/interest:default]: Loading containe r servlet default 21:45:27,706 INFO [Engine] default: init 21:45:27,876 INFO [Engine] Log4j-init: init 21:45:27,896 INFO [STDOUT] -- listing properties -- 21:45:27,896 INFO [STDOUT] log4j.rootLogger=debug, A1 21:45:27,906 INFO [STDOUT] log4j.appender.A1.layout=org.apache.log4j.PatternLay out 21:45:27,926 INFO [STDOUT] log4j.appender.A1=org.apache.log4j.ConsoleAppender 21:45:27,936 INFO [STDOUT] log4j.appender.A1.layout.ConversionPattern=%-5p [%t] %c(%F:%M:%L) - %m%n ERROR: invalid console appender config detected, console stream is looping-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>