JasperReportsIntegration icon indicating copy to clipboard operation
JasperReportsIntegration copied to clipboard

Deployment issue on tamcat9

Open nadeem14375 opened this issue 5 months ago • 1 comments

hi, I am trying to deploy JRI on tomcat9 but facing errors,

Caused by: java.util.zip.ZipException: zip END header not found

And:

Exception fixing docBase for context [/jri]

I am unable to find the compitable version of JRI for tomcat9.

linux version : Ubuntu 24.04.4 LTS java: openjdk version 17.0.19 JRI : jri-3.0.0-jasper-7.0.1-tomcat10

Regards:

nadeem14375 avatar Jun 20 '26 05:06 nadeem14375

Errors from log: java.util.zip.ZipException: zip END header not found java.lang.IllegalStateException: Error starting child at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:686)

Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.WarResourceSet@6ce651f5]
	at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:419)

Caused by: java.lang.IllegalArgumentException: java.io.IOException: java.lang.reflect.InvocationTargetException
	at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:141)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:127)
Caused by: java.io.IOException: java.lang.reflect.InvocationTargetException
	at org.apache.tomcat.util.compat.Jre9Compat.jarFileNewInstance(Jre9Compat.java:209)
	at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:275)
	at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:138)
	... 32 more
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.GeneratedConstructorAccessor7.newInstance(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
	at org.apache.tomcat.util.compat.Jre9Compat.jarFileNewInstance(Jre9Compat.java:206)
	... 34 more
Caused by: java.util.zip.ZipException: zip END header not found
	at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1637)
	at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1645)
	at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1483)
	at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1445)
	at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:717)
	at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:251)
	at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:180)
	at java.base/java.util.jar.JarFile.<init>(JarFile.java:346)
	... 39 more

20-Jun-2026 07:28:50.391 INFO [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/opt/tomcat/webapps/jri-3.0.0-jasper-7.0.1-tomcat10.war] has finished in [212] ms 20-Jun-2026 07:29:00.403 INFO [Catalina-utility-2] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/jri-3.0.0-jasper-7.0.1-tomcat10] 20-Jun-2026 07:29:00.436 INFO [Catalina-utility-2] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/opt/tomcat/webapps/jri-3.0.0-jasper-7.0.1-tomcat10.war] 20-Jun-2026 07:29:00.444 WARNING [Catalina-utility-2] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Context] failed to set property [debug] to [0] 20-Jun-2026 07:29:12.007 INFO [Catalina-utility-2] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 20-Jun-2026 07:29:12.011 SEVERE [Catalina-utility-2] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file 20-Jun-2026 07:29:12.012 SEVERE [Catalina-utility-2] org.apache.catalina.core.StandardContext.startInternal Context [/jri-3.0.0-jasper-7.0.1-tomcat10] startup failed due to previous errors 20-Jun-2026 07:29:12.034 INFO [Catalina-utility-2] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/opt/tomcat/webapps/jri-3.0.0-jasper-7.0.1-tomcat10.war] has finished in [11,598] ms 20-Jun-2026 07:29:28.535 INFO [http-nio-8082-exec-26] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 20-Jun-2026 07:29:28.542 SEVERE [http-nio-8082-exec-26] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file 20-Jun-2026 07:29:28.542 SEVERE [http-nio-8082-exec-26] org.apache.catalina.core.StandardContext.startInternal Context [/jri-3.0.0-jasper-7.0.1-tomcat10] startup failed due to previous errors

nadeem14375 avatar Jun 20 '26 05:06 nadeem14375