0 Replies Latest reply on Feb 14, 2017 10:29 AM by Jane Pellim

    jasperreports as wildfly module

    Jane Pellim Newbie

      I've created a jasperreports module

       

      <module xmlns="urn:jboss:module:1.3" name="net.sf.jasperreports.jasperreports">

         

          <properties>

              <property name="jasper.reports.compile.class.path" value"C:\dev\wildfly-8.2.0.Final\modules\system\layers\base\net\sf\jasperreports\jasperreports"/>

          </properties>

       

          <resources>

              <resource-root path="jasperreports-5.6.1.jar"/>

        <resource-root path="bcmail-jdk14-1.38.jar"/>

        <resource-root path="bcmail-jdk14-138.jar"/>

        <resource-root path="bcprov-jdk14-1.38.jar"/>

        <resource-root path="bcprov-jdk14-138.jar"/>

        <resource-root path="bctsp-jdk14-138.jar"/>

        <resource-root path="castor-1.2.jar"/>

        <resource-root path="commons-digester-2.1.jar"/>

        <resource-root path="itext-2.1.7.js2.jar"/>

        <resource-root path="jackson-annotations-2.1.4.jar"/>

        <resource-root path="jackson-core-2.1.4.jar"/>

        <resource-root path="jackson-databind-2.1.4.jar"/>

        <resource-root path="jakarta-regexp-1.4.jar"/>

        <resource-root path="jasper-jdt-6.0.29.jar"/>

        <resource-root path="jcommon-1.0.15.jar"/>

        <resource-root path="jdt-compiler-3.1.1.jar"/>

        <resource-root path="jdtcore-3.1.0.jar"/>

        <resource-root path="jfreechart-1.0.12.jar"/> 

        <resource-root path="lucene-analyzers-common-4.5.1.jar"/>  

        <resource-root path="lucene-core-4.5.1.jar"/>  

        <resource-root path="lucene-queries-4.5.1.jar"/>  

        <resource-root path="lucene-queryparser-4.5.1.jar"/>  

        <resource-root path="lucene-sandbox-4.5.1.jar"/>  

        <resource-root path="olap4j-0.9.7.309-JS-3.jar"/>  

        <resource-root path="xml-apis-1.3.02.jar"/> 

          </resources>

       

       

          <dependencies>

        <module name="javax.api"/>

              <module name="javax.annotation.api"/>

              <module name="javax.enterprise.api"/>

              <module name="javax.persistence.api"/>

              <module name="javax.transaction.api"/>

              <module name="javax.validation.api"/>

              <module name="javax.xml.bind.api"/>

              <module name="org.antlr"/>     

        <module name="org.apache.commons.beanutils"/>

              <module name="org.apache.commons.collections"/>

              <module name="org.apache.commons.logging"/>

          </dependencies>

      </module>

       

      But when deploying web application give an error:

       

      java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/JRException

       

      This class is located at  jasperreports.jar