How to config JBoss to use log4j and jdk1.5

本文档详细介绍了如何解决JBoss部署中Tomcat遇到的两个常见问题。首先,通过编辑jboss-service.xml来解决第一个问题,并确保正确设置相关参数。其次,针对第二个问题,需要修改web.xml文件,定位到特定条目并添加初始化参数,以支持特定的JSP编译选项。此外,还介绍了如何配置Log4j以使用自定义的log4j.xml文件。

To resolve the first problem
1. open "{jboss_home}serverdefaultdeployjbossweb-tomcat55.sarMETA-INFjboss-service.xml".
2. true
true
To resolve the second problem
1. open "{jboss_home}serverdefaultdeployjbossweb-tomcat55.sarconfweb.xml".
2. locate at "" entry, try to find "org.apache.jasper.servlet.JspServlet"
3. Add 2 init-params as following:

compilerSourceVM
1.5



compilerTargetVM
1.5

4. If we want to use Log4j.properties in our own application, modify "{jboss_home}serverdefaultconfjboss_service.xml":
"org.jboss.logging.Log4jService" name="jboss.system:type=Log4jService,service=Logging">
"ConfigurationURL">resource:log4j.xml
"CatchSystemOut">false
"Log4jQuietMode">true

摘自:http://www.blogjava.net/vcok/archive/2007/02/24/100444.html

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/778728/viewspace-981988/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/778728/viewspace-981988/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值