开发者

Problem while deploying application in Tomcat

I am开发者_C百科 trying to deploy my application in Tomcat.

Getting following execption

log4j:WARN No appenders could be found for logger (org.apache.commons.digester.D
igester.sax).
log4j:WARN Please initialize the log4j system properly.

But the same war is working fine in Jboss

Please help


These warnings should not prevent your application from working; it's just log4j which complains that it can't find its configuration file.

Most likely in Jboss there's a log4j.properties or log4j.xml in the app server classpath which log4j automatically loads.

If you want to enable logging you have to drop a log4j.xml configuration file in your classpath (the /webapps/appname/WEB-INF/classes directory, for example, or common/classes) including a ROOT category, or org.apache.commons.digester).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜