简体   繁体   English

Jasperreports 5.6作为JBoss EAP 6.1错误的模块

[英]Jasperreports 5.6 as a module on JBoss EAP 6.1 error

My module.xml is below. 我的module.xml在下面。 I am deploying app as JAR. 我正在将应用程序部署为JAR。 I tried to google this error, but of no avail. 我试图用谷歌搜索此错误,但无济于事。 All recommendations I see is to include JDT compiler to the app, I added it to the jasperreports module in JBoss, and to the POM, but the result is the same. 我看到的所有建议是将JDT编译器包括到应用程序中,我将其添加到JBoss的jasperreports模块和POM中,但是结果是相同的。 How to resolve it? 怎么解决呢?

    <?xml version="1.0" encoding="UTF-8"?>
    <module xmlns="urn:jboss:module:1.0" name="net.sf.jasperreports">
        <resources>
            <resource-root path="jasperreports-5.6.0.jar"/>
            <resource-root path="itext-2.1.7.js2.jar"/>
            <resource-root path="jcommon-1.0.15.jar"/>
            <resource-root path="jfreechart-1.0.12.jar"/>
            <resource-root path="xml-apis-1.3.02.jar"/>
            <resource-root path="jdtcore-3.1.0.jar"/>
            <resource-root path="castor-1.2.jar"/>
            <resource-root path="jackson-core-2.1.4.jar"/>
            <resource-root path="jackson-databind-2.1.4.jar"/>
            <resource-root path="jackson-annotations-2.1.4.jar"/>
            <resource-root path="lucene-core-4.5.1.jar"/>
            <resource-root path="lucene-analyzers-common-4.5.1.jar"/>
            <resource-root path="lucene-queryparser-4.5.1.jar"/>
            <resource-root path="olap4j-0.9.7.309-JS-3.jar"/>
            <resource-root path="jdt-compiler-3.1.1.jar"/>
        </resources>
        <dependencies>
            <module name="javax.api"/>
            <module name="org.apache.commons.beanutils"/>
            <module name="org.apache.commons.collections"/>
            <module name="org.apache.commons.digester"/>
            <module name="org.apache.commons.logging"/>
        </dependencies>
</module>

I know it's reachable because I stopped receiving errors about dependencies after placing them in the module folder. 我知道它是可以到达的,因为在将依赖项放入模块文件夹后,我不再收到有关依赖项的错误。

I have following error while trying to execute the report, the top of the trace is here, and as I understand this error is common, but I still cannot resolve it: 我在尝试执行报告时遇到以下错误,跟踪的顶部在此处,据我所知,此错误很常见,但仍然无法解决:

    21:19:00,471 ERROR [ru.reporter.ReportServiceBean] (http-localhost/127.0.0.1:8180-1) [2][admin] Got exception while in buildMonitoringReport: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
C:\JBOSS-SY\bin\report2_1403803139200_531972.java:4: error: package net.sf.jasperreports.engine does not exist
import net.sf.jasperreports.engine.*;
^
C:\JBOSS-SY\bin\report2_1403803139200_531972.java:5: error: package net.sf.jasperreports.engine.fill does not exist
import net.sf.jasperreports.engine.fill.*;

Remove <resource-root path="jdt-compiler-3.1.1.jar"/> from your module and dependency as <module name="org.jboss.as.web"/> 从模块和依赖项中将<resource-root path="jdt-compiler-3.1.1.jar"/>删除为<module name="org.jboss.as.web"/>

Check org.jboss.as.web, it should already have jdt-compiler which conflicts with the one in your module. 检查org.jboss.as.web,它应该已经具有与模块中的jdt-compiler冲突的jdt-compiler。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM