JBoss used log4j internally. Consequently, the WEB-INF/lib does not work. 
You need to adapt JBoss' log4j configuration file.

See JBoss discussion groups 
and  http://www.jboss.org/developers/guides/logging.jsp for more info.

At 10:48 05.09.2002 -0400, you wrote:
>Hello all,
>
>I have been trying - unsuccessfully I might add - to get log4j to produce 
>a log file on our linux server running apache/tomcat/jboss.  I deployed a 
>war file in the Jboss deploy directory andf all of thast worked just 
>fine.  The application is up and running.  However, - no log4j log file is 
>being produced.  I placed the log4j.priperties file in the WEB-INF/lib 
>just like I do on all other configurations, but for some reason log4j 
>doesn't work and doesn't complain either.  Here is a section of the 
>log4j.properties file that defines the log file name:
>
>#log4j props file
>log4j.appender.default=org.apache.log4j.FileAppender
>log4j.appender.default.File=./wtt.log
>log4j.appender.default.layout=org.apache.log4j.PatternLayout
>log4j.appender.default.layout.ConversionPattern=%-4r %-5p %c{2} %M.%L %x - 
>%m\n
>#log4j.rootCategory=, default
>#set other modules to INFO normally
>log4j.category.WirelessLoginAction=INFO, default
>log4j.category.WirelessLoginAction2=INFO, default
>log4j.category.ConnPool.PoolManager=INFO, default
>log4j.category.ConnPool.ConnectionPool=INFO, default
>
>as you can see I am trying to log information to the file ./wtt.log
>
>however - no file by that name is ever created anywhere on the server.
>
>Perhaps someone can point me in the direction of my errors.
>
>Thanks,
>
>Gary Graham

--
Ceki

TCP implementations will follow a general principle of robustness: be
conservative in what you do, be liberal in what you accept from
others. -- Jon Postel, RFC 793



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to