Jaspersoft report URL throws 404 error after 7.8 upgrade

book

Article ID: 221511

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

After in-place db upgrade (from jasper 713 to 78) the reportservice URL returns error: HTTP Status 404Not Found Type Status Report

Message The requested resource [/reportservice] is not available

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Jasperserver.log

Error loading class [com.jaspersoft.jasperserver.multipleTenancy.configuration.JaaSNewUser] for bean with name ‘com.jaspersoft.jasperserver.multipleTenancy.configuration.JaaSNewUser#14a00bc9’ defined in ServletContext resource [/WEB-INF/applicationContext-multiTenancy.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: com/jaspersoft/jasperserver/multipleTenancy/configuration/JaaSNewUser has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 (unable to load class [com.jaspersoft.jasperserver.multipleTenancy.configuration.JaaSNewUser])

 

Catalina.log

OS Name:               Linux
OS Version:            4.4.180-94.147-default
Architecture:          amd64
Java Home:             /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/jre
JVM Version:           1.8.0_292-b10
JVM Vendor:            IcedTea
CATALINA_BASE:         /proj/clarity/tomcat/apache-tomcat-9.0.37
CATALINA_HOME:         /proj/clarity/tomcat/apache-tomcat-9.0.37

Cause

JAVA home set to Java 8.

Environment

Clarity 15.9.2 and Jaspersoft 7.8

Resolution

Jaspersoft 7.8 needs Java11 (OpenJDK 11) installed and set in the system environment variables. 

In Linux the clarity admin can run the export command to ensure the Java11 path is set correctly

export JAVA_HOME = <path to Java11>