Warning while Running report: Found two components for namespace

前端 未结 5 1449
礼貌的吻别
礼貌的吻别 2021-01-12 17:41

I have problem with report using JasperReports. I ran report on my program, it works, but there were error message just like this

net.sf.jasperrepo         


        
相关标签:
5条回答
  • 2021-01-12 18:14

    It means that you have several jar files in your JasperReports Library classpath... just use:

    • commons-beanutils-1.8.0
    • commons-collections-2.1.1
    • commons-digester-1.7
    • commons-javaflow-20060411
    • commons-logging-1.0.4
    • groovy-all-1.7.5
    • iText-2.1.7
    • jasperreports-4.5.0 (any version)
    • png-encoder-1.5
    • poi-3.7-20101029 (Or poi-3.6)

    and problem solved...

    0 讨论(0)
  • 2021-01-12 18:14


    Just delete jasperreports-javaflow*.jar from your classpath during report compilation.
    The error should disappear.

    0 讨论(0)
  • 2021-01-12 18:16

    I updated primefaces jar file from 3.5 to 4.0. It is solved the problem.

    0 讨论(0)
  • 2021-01-12 18:19

    For the latest downloadable jasper jar zip(Japsperreports-6.3.0.jar) it does not provide all the needed jar files.You have to find the jar files. For eliminate issues just add

    jasperreports-6.3.0.jar , org.apache.commons.collections.jar , commons-logging-1.2.jar , commons-digester-2.1.jar , commons-beanutils-1.8.3.jar ,

    will work fine..

    0 讨论(0)
  • 2021-01-12 18:20

    The jasperreports-maven-plugin repeats the jasperreports dependency. I had your problem when I changed the version of my jasperreports dependency but did not also change it in the dependency of the jasperreports-maven-plugin.

    0 讨论(0)
提交回复
热议问题