This maven2 archetype contains a little sample application with the new Spring 3.0.0.RELEASE Framework and JasperReports 3.5.3. The configuration is xml-driven. It is deployed on the PLOIN Repository-Server on
http://www.ploin-m2.de/nexus/content/groups/public/
you can create a project from the archetype with the following command:
mvn archetype:generate -DarchetypeGroupId=org.ploin.archetype -DarchetypeArtifactId=tempSpringJasperReports -DarchetypeVersion=1.0 -DarchetypeRepository=http://www.ploin-m2.de/nexus/content/groups/public/ -DgroupId=org.ploin -DartifactId=demoSpringJasperReport
The created project is a web-application with a simple servlet-filter. On the start site you can choose to create a pdf ord excel file.
the example are very good but the report.jrxml and reportCompany are wrong and i can se the complete example coul you send me that files please
Thanks
What exactly do you mean with wrong? Do you have any exceptions?
After you created your project from the Archetype, you have to unpack the report.jrxml.zip and the reportCompany.jrxml.zip. I could not pack the xml files directly to the archetype, because of some problems. That’s why I packed the xml files in zip format. Just unpack it and run the application. For me it works fine.
The those two zip files (report.jrxml.zip and the reportCompany.jrxml.zip) seemed are corrupted. I could not unzip the files. Thanks.
Hi Kim,
I am sorry for that. I uploaded both files on the server. You can download it from here:
I renamed it to *.jpg because otherwise WordPress not allowed me to upload the files. You can download the files with the command line tool wget.
wget https://robertreiz.files.wordpress.com/2010/10/report-jrxml.jpg
After the download just rename it to *.jrxml and it should work.
– Robert
My name is Sang Shin, founder and chief instructor of JavaPassion.com. Is it OK to use your example in my “Spring 3” course? Of course, your name and this blogging site will be mentioned. Thanks in advance. (Also I will give you 6 month free subscription to JavaPassion.com in case you want to access the site.)
That is OK for me 🙂