That's interesting that the scope would affect runtime behavior.
Regardless, we really appreciate you figuring this out and sharing the
knowledge with this list.

Thanks!

Matt

On 7/19/07, Travers Snyman <[EMAIL PROTECTED]> wrote:




I had a number of side effect issues while integrating the struts plugins
jfreechart and jasperreports in Apffuse 2 m5 with basic struts archtype.
These included freemarker template errors, validation problems when
persisting data in simple CRUD operations and numerous conflicts with
opensymphony Xwork. These are all solved when setting the scope in the
dependency to "runtime" instead of "compile" . I now have a very clean
integration of Jfreecharts and Jasperreports in my Appfuse application and
it works really well. For reference, here are the dependencies for these
plugins in the pom.xml



      <dependency>

            <groupId>org.apache.struts</groupId>


<artifactId>struts2-jfreechart-plugin</artifactId>

            <version>2.0.8</version>

         <scope>runtime</scope>

      </dependency>

      <dependency>

            <groupId>org.apache.struts</groupId>


<artifactId>struts2-jasperreports-plugin</artifactId>

            <version>2.0.8</version>

            <scope>runtime</scope>

       </dependency>

      <dependency>

            <groupId>jasperreports</groupId>

            <artifactId>jasperreports</artifactId>

            <version>1.3.4</version>

            <scope>compile</scope>

                <exclusions>

                        <exclusion>

                                <groupId>eclipse</groupId>


<artifactId>jdtcore</artifactId>

                        </exclusion>

                </exclusions>

       </dependency>

       <dependency>

            <groupId>jfreechart</groupId>

            <artifactId>jfreechart</artifactId>

            <version>1.0.0</version>

         <scope>compile</scope>

       </dependency>



Travers




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to