I tried to deploy a tomcat project on linux operating system and i encountered a weird jasper reports exception. I have to admit that it took me longer to figure out what the problem is. I have wasted two working days to finish this issue.
The module is suppose to print out invoices in PDF format but i got this exception instead. I have written the class that uses Jasper Reports version 3.7.0. Previously, im using version 3.6.1 and the necessary jar files are in my LIB folder and classpath. Then i upgraded it to 3.7.0, stored the jar files on LIB and replaced the entries in classpath. On my workstation, my class works fine. But on production server, it throws an exception.
According to JasperForge.net, the exception was about two jasper report versions used in project. I thought at first that there’s no problem with my project environment on Eclipse Europa because, i only set the 3.7.0 on classpath. But the problem was, i have 3.6.1 and 3.7.0 on LIB folder and that caused the exception. After i removed the 3.6.1 jar files and re deployed the tomcat project, the module worked.
The key point is never store two jasper reports version on both classpath and LIB folder on your tomcat project to avoid versioning issues.
- Posted using BlogPress from my iPod




