I am using log4j with servlets in an IBM WebSphere environment.  Everything
is fine when I run with my single server addition on my PC but when I deploy
to our development platform I get the following messages in stderr and log4j
doesn't work.
 
log4j:WARN Failed to set property [maxBackupIndex] to value "3". object is
not an instance of declaring class
log4j:WARN Failed to set property [file] to value
"/data/TECdde/logs/DDEWEBEJB.log". object is not an instance of declaring
class
log4j:WARN Failed to set property [maxFileSize] to value "5000KB". object is
not an instance of declaring class
log4j:WARN File option not set for appender [logfile].
log4j:WARN Are you using FileAppender instead of ConsoleAppender?
 
I found a reference to this same issue occurring with Resin but I'm afraid I
don't understand the solution that was given.  Here is the URL of the
reference that I found...
http://www.mail-archive.com/log4j-dev@;jakarta.apache.org/msg01609.html
<http://www.mail-archive.com/log4j-dev@;jakarta.apache.org/msg01609.html>
My circumstances are slightly different in that my situation does not
improve if I re-cycle the application server.
 
If any one can give me a better understanding of the circumstances in which
this behavior occurs I would appreciate it.  I am using log4j-1.2.1.jar.
There is another application running on the same server using
log4j-1.2.6.jar that is not having the problem but I looked at the history
archive and there is nothing in the description of the changes between
log4j-1.2.1 and log4j-1.2.6 that looks promising to me but may be I'm not
reading the tea leaves correctly.
 
I can provide even more information if required.  I could attach my servlet
code that initializes log4j in the init() method.


James D. Forney 
IT Business Systems Analyst 
eBusiness Systems 
* (717)810-2962  * [EMAIL PROTECTED] 
* http://forneyj3 <http://forneyj3/>  
tyco/Electronics 

 

Reply via email to