知识库

获得永久免费授权

最新文章

快逸视频教程

快逸做的更好

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

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

在jboss中使用快逸报表,会出现一个异常:

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>
<!-

->

引自:报表工具知识库
相关文章:普及报表系统功能说明 ; 好用的java开发工具快逸报表数据源找不到的一个原因五种常用web服务器jvm参数设置
其他相关内容:润乾报表 ; 专业.net报表工具web报表研究润乾商业智能解决方案

浏览次数:0 ; 发布日期:2009/03/11