Bugs item #435105, was updated on 2001-06-21 06:31
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=435105&group_id=22866

Category: JBossServer
Group: v2.2.1 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Ronen Soreq (rsoreq)
Assigned to: Nobody/Anonymous (nobody)
Summary: Log4J - ConsoleAppender and JBoss

Initial Comment:
Console Appender and JBoss

I failed to initialize the Console Appender (Log4J) 
when running inside the Jboss environment.

Using ConsoleAppedner
---------------------

# Does not work with JBoss
log4j.appender.stdout=org.apache.log4j.ConsoleAppender

1) Test application
The Console Appender was successfully tested on a 
console application.

2) JBoss
Running from the JBoss environment yielded the 
following error:

[requestProcessor] log4j:ERROR Could not instance 
class [org.apache.log4j.ConsoleAppender].
[requestProcessor] java.lang.ClassNotFoundException: 
org.apache.log4j.ConsoleAppender

Using FileAppender as ConsoleAppender
-------------------------------------
FileAppender usage as console appender has been 
deprecated and will be removed from future Log4J 
version (refer to PS)

1) JBoss

The JBoss accepts the old FileAppender usage as 
ConsoleAppender.

# Works with Jboss
log4j.appender.stdout=org.apache.log4j.FileAppender
log4j.appender.stdout.File=System.out

# Does not work with JBoss
log4j.appender.stdout=org.apache.log4j.ConsoleAppender

2) Forte IDE
Running from the Forte IDE yielded the following 
warnings:
.log4j:WARN File option not set for appender [stdout].
log4j:WARN Are you using FileAppender instead of 
ConsoleAppender?

PS,

The following was copied from the Log4J documentation:
...
FileAppender appends log events to a file. 
Support for java.io.Writer and console appending has 
been deprecated and will be removed in the near 
future. 
You are strongly encouraged to use the replacement 
solutions: WriterAppender and ConsoleAppender. 
...


Versions
--------
Windows 2000 Service pack 2
JDK 1.3
JBoss-2.2.1
Tomcat-3.2.1


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=435105&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to