Please or Register to create posts and topics.

Want to upgrade Jasper Report lib Jar

I am working on to upgrade the Jasper Report jar in the project but problem I am facing is I didn't find any notes which version wil be a better fit for a project who is working on
Java 8, Tomcat 9 and Aspose 20.3
and
Java 17, Tomcat 10 and Aspose 24.10
I want a suggestion which things should be consider while upgrading Jasper Report and which latest version of Jasper Report Lib Jar would be better fit for this to Envorinment also Which is the latest Jasper Report Lib released?

kilian.folger has reacted to this post.
kilian.folger

Hello Jairaj,

you mention Tomcat - are you talking about the JasperReports Server (JRS) or about building your own web app using the JasperReports Library (JRL)?

Tomcat 10 uses Jakarta EE 9, which has gone through the Jakarta migration. The JasperReports Library 7.x has also been migrated and so would be compatible. But Aspose 24.10 only supports JRL up to 6.20.0. Aspose.Words 25.2 is compatible with JRL 7.x according to their release notes.

As for the Server, there is not yet a version compatible with Jakarta EE 9, even JRS 9 is still on the javax.* namespace. It looks like TIBCO is planning to migrate their Pro versions this year. You may want to join their upcoming webinar on the topic. As for our fork, we are also looking toward Jakarta, but it will be a while before we actually perform the migration.

Finally, JRS 8.x and 9.x are officially compatible with Java 8 and Java 17. We have found a problem when running JRS 8.2.0 on Java 17 where repository imports don't work if the repo includes a schedule. It seems they just didn't test thoroughly enough to find that, so I'm not sure if they fixed this in 9.0.0.

JRL 6.20.0 and 7.x officially work with Java 8 and 17 as well. However, JRL still has a dependency on Castor XML, which is where the error in JRS 8.2.0 came from, so there might be a few bugs there, too. But there are none that I know of specifically.

Jairaj has reacted to this post.
Jairaj

Thank you Kilian Folger, for your response

Tomcat - are you talking about the JasperReports Server (JRS) or about building your own web app using the JasperReports Library (JRL)?
——> As my project is currently using Jasper Report 6.5.0 jar file to generate reports. 

Tomcat 10 uses Jakarta EE 9, which has gone through the Jakarta migration. The JasperReports Library 7.x has also been migrated and so would be compatible

——> this means if tomcat 10 is used in our project then 7.x jasper reports version can be used, does 7.x support if project is using tomcat 9 ??

But Aspose 24.10 only supports JRL up to 6.20.0. Aspose.Words 25.2 is compatible with JRL 7.x according to their release notes.

——> so I can use 25.3 version of Aspose which will be compatible with 7.x Jasper reports, if this 7.x version compatible for Aspose 20.3??

So 7.x is compatible for both the Java 8 and 17 but please can you answer the above questions and is there any other higher version then 7.x which is stable and can be used as a Lib jar file in our project.
Please check this once https://community.jaspersoft.com/forums/topic/68721-jasper-7-version-not-working-with-java-17-but-working-with-java-8/?utm_source=chatgpt.com

Uploaded files:
  • image-16.png
kilian.folger has reacted to this post.
kilian.folger

Hello Jairaj,

the Jakarta migration is generally a breaking change. However, the only parts of JRL that used J2EE/Jakarta EE are jasperreports-servlets and jasperreports-hibernate. There are J2EE versions of servlets and hibernate, so yes, you can use JRL 7.x with Tomcat 9.

As for Aspose.Words, version 20.4 officially only goes until JRL 6.11, but we have also used an Aspose.Words JAR with a newer JRL version that it wasn't officially compatible with and it worked.

JRL 7.0.0 is a bigger change, as it introduced changes to .jrxml, .jrtx, AND .jasper formats that break compatibility. On the other hand, exporters do not deal with these files directly but with JasperPrint objects , so it might still work. We haven't tried it out and investigating it would be its own project.

Maybe the Aspose support can help you. If you find anything, please do post it here.

okay got it I will update if I find anything related to this topics,
things we cleared:-
1. Tomcat 9/10 is compatible with JRL 6.21.x & 7.x

2. Aspose 20.3, 24.10, 25.3 are compatible with JRL 6.21.x &  7.x

but can you suggest me is JRL 7.x compatible with Java 8 and 17 as at many places it is said like "

but there have been reports of issues when attempting to use it with Java 17. as it is mentioned at various places, jasper 7.x with java 8 its working but if we tried the same version with Java 17 there can be errors related to dependencies like Log4j and Jackson when running JasperReports.

"

so what can be used here? which JRL versions can be compatible for Java 8 and 17 totally.

kilian.folger has reacted to this post.
kilian.folger

I can't give you any guarantees.

One customer transitioned to Java 17 a year or so ago in combination with JRL 6.20.3. By now, they are using 6.21.2 and they have not had problems with it. But they are only using a subset of the library, of course.

Another one is running a Jasper Server on Java 17 with JRL 6.20.3 and the only problem we've found so far is that you can't export a repository that has a running schedule, again because of that Castor XML problem.

But we have not done any exhaustive tests either.