ITPub博客

首页 > 应用开发 > Java > How to config JBoss to use log4j and jdk1.5

How to config JBoss to use log4j and jdk1.5

原创 Java 作者:goldtime 时间:2007-11-12 17:55:45 0 删除 编辑

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博客 ” ,链接:https://blog.itpub.net/778728/viewspace-981988/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    42
  • 访问量
    75888