原文链接:http://blog.csdn.net/caiangfei/article/details/4480542
原文内容:
websphere6.1 部署的程序,里面log4j配置的系统打印信息没了,在日志中只能找到自己工程打印信息,去网上找问题原因,原来是Webshpere日志使用的也是 common logging,跟系统里面某些类用的log4j冲突,日志实现会被 websphere 的日志组件接管,所以这部分日志打印在
tomcat 下行, websphere 下不行。网上有几个,试了都不行,可能是版本不对。最后找了方法,解决如下:
需要新增一个commons-logging.properties文件,内容为:org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImp
l,放到/<was_home>/profiles/<profile_name>/properties/目录下,自己系统里面profile_name =AppSrv01。
查到的文章如下:
http://wiki.apache.org/jakarta-commons/Logging/FrequentlyAskedQuestions
http://www-01.ibm.com/support/docview.wss?uid=swg21211020
还有一篇相关的帖子:http://blog.sina.com.cn/s/blog_3fcee1420100lljx.html
项目上的WebSphere版本为6.1.0.45,程序部署到tomcat里,可以将Log4j的日志打印到磁盘文件里,结果迁移到WebSphere里之后,发现Log4j的日志都打印到Websphere的日志文件中去了,而Log4j日志目录下也会生成对应的日志文件,只是内容都为空
网上搜罗到解决办法尝试之后,结果问题得到解决
分享到:
相关推荐
websphere6.1.0.0升级至6.1.0.17
该文档描述监控启用全局安全后ND环境下的WebSphere6.1的部署。
描述Websphere 6.1版本在linuxAS4下的安装过程。包括WAS的安装、HTTP的安装、打补丁和调整几个优化参数。
was相关资料: Websphere安装步骤 websphere安装后配置说明 Websphere实用手册 WebSphere+v6.1配置文档
websphere 6.1安装配置指南websphere 6.1安装配置指南websphere 6.1安装配置指南websphere 6.1安装配置指南websphere 6.1安装配置指南websphere 6.1安装配置指南
MyEclipse 配置 Websphere6.1
Websphere6.1 安装 配置 DataSource JDBC JNDI ORACLE
WebSpere集群配置\WebSphere6.1安装部署手册.doc
WebSphere6.1 linux windowns 安装部署手册
WebSphere 6.1应用服务器安装部署手册
WebSphere 6.1 SSL配置文档
介绍Websphere6.1程序部署,安装,配置,程序包发布等。
1.MyEclipse6.0中Websphere6.1的配置; 2.Websphere6.1基本配置.
Websphere6.1集群安装和配置 Websphere6.1集群安装和配置 Websphere6.1集群安装和配置
websphere安装的说明,详细的图解,快速入门教程
IBM WebSphere 6.1 ND 集群安装配置
WebSphere6.1安装部署手册.doc
WebSphere Application Server Network Deployment 6集群安装部署步骤.docxwebsphere6.1集群配置