How to config JBoss to use log4j and jdk1.5

goldtime發表於2007-11-12

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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章