Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this work on Tomcat 10.1.3 #135

Closed
badger95 opened this issue Oct 12, 2023 · 7 comments
Closed

Does this work on Tomcat 10.1.3 #135

badger95 opened this issue Oct 12, 2023 · 7 comments

Comments

@badger95
Copy link

I've been using JasperReportsIntegration for 10 years and have never had issue. I recently upgraded to Tomcat 10.1.3 and am having issues.
I've deployed to webapps directory and get: FAIL - Application at context path [/jri] could not be started
I've deployed also to webapps-javaee directory and can get the jri home test page to load but when trying to run the test.pdf it returns java errors.

ON page it lists:
The current configuration is loaded from: F:/JasperIntegrationforTomcat10
Config-Directory: F:/JasperIntegrationforTomcat10\conf
Config-File: F:/JasperIntegrationforTomcat10\conf\application.properties
Reports-Path: F:\JasperIntegrationforTomcat10\conf..\reports
Temp-Directory: C:\Program Files\Apache Software Foundation\Tomcat 10.1\webapps\jri\report_tmp
Logs-Directory: F:/JasperIntegrationforTomcat10\logs
Java-Runtime-Version: 20.0.2
JasperReports-Version: 6.20.0-51a71b12f8db21cb011628dd221240da17b0feaa-migrated-1.0.7
Your ip address: 127.0.0.1
Classpath: C:\Program Files\Apache Software Foundation\Tomcat 10.1\bin\bootstrap.jar
C:\Program Files\Apache Software Foundation\Tomcat 10.1\bin\tomcat-juli.jar
______________ERROR PAGE _______________
Type Exception Report

Message Servlet execution threw an exception

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

jakarta.servlet.ServletException: Servlet execution threw an exception
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
Root Cause

BUG! exception in phase 'semantic analysis' in source unit 'calculator_test_1697119302414_957837' Unsupported class file major version 64
org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:906)
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:628)
net.sf.jasperreports.compilers.JRGroovyCompiler.compileUnits(JRGroovyCompiler.java:112)
net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:230)
net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:358)
net.sf.jasperreports.engine.JasperCompileManager.compileToFile(JasperCompileManager.java:274)
net.sf.jasperreports.engine.JasperCompileManager.compileToFile(JasperCompileManager.java:256)
net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:555)
de.oc.jasper.ReportUtilities.compileJRXMLIfNecessary(ReportUtilities.java:134)
de.oc.integration.jasper.webapp.ReportWrapper.service(ReportWrapper.java:197)
jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
Before I spend more time more time debugging....is it supported on 10.1.3 ?
Thanks.

@daust
Copy link
Owner

daust commented Oct 14, 2023

Hi,

yes, should work.

I am testing releases now on Windows with:

  • apache-tomcat-10.0.27
  • apache-tomcat-10.1.5
  • glassfish-4.1
  • wildfly-26.1.1.Final
  • Weblogic wls1411
  • Weblogic wls12214

For Tomcat 10.1.5 I am using JDK 11, though.
And your error messages indicates an issue with the Java version.

Please use the latest version 2.10.1: https://github.com/daust/JasperReportsIntegration/releases

And definitely make sure to use the Tomcat10 specific version: jri-2.10.1-jasper-6.20.0-tomcat10.war.

Please let me know if this fixes the problem.

Best, Dietmar.

@badger95
Copy link
Author

badger95 commented Oct 15, 2023 via email

@badger95
Copy link
Author

badger95 commented Oct 15, 2023 via email

@badger95
Copy link
Author

badger95 commented Oct 15, 2023 via email

@daust
Copy link
Owner

daust commented Oct 15, 2023

Hhhm. It works for me without problems.
I am using Windows 11 in a virtual machine running Parallels. It is a 64bit system.

image

I have downloaded Tomcat 10.1.13
image

yet I don't see the the other webapps directory.
image

Either you are giving incorrect / missing information or I don't know.

And yes, you need to put the file jri-2.10.1-jasper-6.20.0-tomcat10.war into the directory webapps.

Also, this time you didn't give the detailed error message ... just said it won't start ... not helpful.

@badger95
Copy link
Author

badger95 commented Oct 16, 2023 via email

@daust
Copy link
Owner

daust commented Oct 17, 2023

Wonderful.
I guess in the end, it might have been that the JDK 11 was not picked up by the Tomcat environment for some reason. This would explain the behavior.
Anyhow, glad you have it working now.
Best, ~Dietmar.

@daust daust closed this as completed Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants