If you look inside the WEB-INF/lib directory in the war file being built, is
the correct version of the jasperreports library present?

Mike


On 8/31/07, Jesfre <[EMAIL PROTECTED]> wrote:
>
>
> Hi all. I solved my last problem
> (
> http://www.nabble.com/Jasperreports-compilation-error%21-tf4350546s2369.html
> ) in other way. Thanks to mraible & horwitz; I configured pom.xml file.
>
> But now... When I try to run   command>mvn jetty:run-war     occurs this
> error:
>
> 2007-08-31 11:35:11.984::WARN:  Nested in
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean
> with name 'purchaseBetweenPDFReport' defined in ServletContext resource
> [/WEB-INF/dispatcher-servlet.xml]: Instantiation of bean failed; nested
> exception is java.lang.NoClassDefFoun
> dError: net/sf/jasperreports/engine/design/JRCompiler:
> java.lang.NoClassDefFoundError:
> net/sf/jasperreports/engine/design/JRCompiler
>        at java.lang.Class.getDeclaredConstructors0(Native Method)
>        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
>        at java.lang.Class.getConstructor0(Class.java:2699)
>        at java.lang.Class.getDeclaredConstructor(Class.java:1985)
>        at
>
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate
> (SimpleInstantiationStrategy.java:54)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean
> (AbstractAutowireCapableBeanFactory.java:759)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance
> (AbstractAutowireCapableBeanFactory.java:724
>
>
>
> Because the configured dispatcher-servlet.xml has the following code:
>
> <!-- If a JasperReports view requires more complex configuration then use
> the BeanNameViewResolver to map a given view name to a given view bean -->
>        <bean id="nameViewResolver"
> class="org.springframework.web.servlet.view.BeanNameViewResolver"/>
>
>    <!--PurchaseBetweenReport-BEAN-START-->
>        <bean id="purchaseBetweenPDFReport"
> class="
> org.springframework.web.servlet.view.jasperreports.JasperReportsMultiFormatView
> ">
>            <property name="contentDispositionMappings">
>                <props>
>                        <prop key="html">inline; filename=report.html
> </prop>
>                    <prop key="csv">inline; filename=report.csv</prop>
>                        <prop key="pdf">inline; filename=report.pdf</prop>
>                            <prop key="xls">inline; filename=report.xls
> </prop>
>                </props>
>                </property>
>            <property name="url"
> value="/WEB-INF/reports/purchaseBetweenReport.jasper" />
>        </bean>
>        <!--PurchaseBetweenReport-BEAN-END-->
>
>    <!--SaleBetweenReport-BEAN-START-->
>        <bean id="saleBetweenPDFReport"
> class="
> org.springframework.web.servlet.view.jasperreports.JasperReportsMultiFormatView
> ">
>            <property name="contentDispositionMappings">
>                <props>
>                        <prop key="html">inline; filename=report.html
> </prop>
>                    <prop key="csv">inline; filename=report.csv</prop>
>                        <prop key="pdf">inline; filename=report.pdf</prop>
>                            <prop key="xls">inline; filename=report.xls
> </prop>
>                </props>
>                </property>
>            <property name="url"
> value="/WEB-INF/reports/saleBetweenReport.jasper"
> />
>        </bean>
>        <!--SaleBetweenReport-BEAN-END-->
>
> Then, what to do?
>
> The jasperreports libraries are in the .m2 repository.
>
> --
> View this message in context:
> http://www.nabble.com/Another-jasperreports-compilation-error%21%21-tf4361284s2369.html#a12430159
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to