知识库

推荐内容

快逸做的更好

产品优势

您的位置: 首页 > 知识库 > 安装部署 > 快逸报表:在jboss中部署报表的一个异常解决

快逸报表:在jboss中部署报表的一个异常解决

在jboss中使用报表:在jboss中部署报表的一个异常解决" class="alinks_links" onclick="return alinks_click(this);" href="http://www.quiee.com.cn/" rel="external">快逸报表,会出现一个异常:

log4j:ERROR A “org.jboss.logging.util.OnlyOnceErrorHandler” object is not assignable to a “org.apache.log4j.spi.ErrorHandler” variable

解决办法

对于jboss4.0.x解决方法是把/server/default/jbossweb-tomcat55.sar/META-INF/jboss-service.xml 中的以下两个属性改成true
<attribute name=”Java2ClassLoadingCompliance”>true</attribute>
<attribute name=”UseJBossWebLoader”>true</attribute>

对于jboss4.2.x,则把/server/default/jboss-web.deployer\META-INF/jboss-service.xml 中的那两个属性改成true。
更改后的两个属性及其注释摘录如下:
<!- Get the flag indicating if the normal Java2 parent first class
loading model should be used over the servlet 2.3 web container first
model.
->
<attribute name=”Java2ClassLoadingCompliance”>true</attribute>
<!- A flag indicating if the JBoss Loader should be used. This loader
uses a unified class loader as the class loader rather than the tomcat
specific class loader.
The default is false to ensure that wars have isolated class loading
for duplicate jars and jsp files.
->
<attribute name=”UseJBossWebLoader”>true</attribute>
<!-

本文标签:
发布日期:2009/03/11
本文分类: 安装部署