Error running report on Jaspersoft : java.lang.ClassNotFoundException: com.jaspersoft.jasperserver.remote.ServiceException



I did a fresh install of Jaspersoft server 6.1.0 on a

  • RHEL 6.6
  • remote Oracle Database
  • Java : jdk-8u40-linux-x64
  • Tomcat :  apache-tomcat-7.0.55


I didn't see any error in install log but when I try to run a report on Jaspersoft server I got an error:

HTML response error code: 500, error

Une erreur de serveur interne s'est produite. Veuillez contacter votre administrateur système.

Détails: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class java.awt.Color


I checked the logs on apache tomcat : catalina.out file and I saw this  first error


Jul 27, 2016 1:29:45 PM org.apache.catalina.core.StandardContext reload
SEVERE: Exception starting Context with name [/reportservice]
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/reportservice]]
at org.apache.catalina.util.LifecycleBase.start(
at org.apache.catalina.core.StandardContext.reload(
at org.apache.catalina.startup.HostConfig.reload(
at org.apache.catalina.startup.HostConfig.checkResources(
at org.apache.catalina.startup.HostConfig.check(
at org.apache.catalina.startup.HostConfig.lifecycleEvent(
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
at org.apache.catalina.core.ContainerBase.backgroundProcess(
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(
at org.apache.catalina.core.ContainerBase$
Caused by: java.lang.NoClassDefFoundError: com/jaspersoft/jasperserver/remote/ServiceException
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(
at java.lang.Class.getDeclaredFields(
at org.apache.catalina.util.Introspection.getDeclaredFields(
at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(
at org.apache.catalina.startup.ContextConfig.configureStart(
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
at org.apache.catalina.core.StandardContext.startInternal(
at org.apache.catalina.util.LifecycleBase.start(
... 12 more
Caused by: java.lang.ClassNotFoundException: com.jaspersoft.jasperserver.remote.ServiceException
at org.apache.catalina.loader.WebappClassLoader.loadClass(
at org.apache.catalina.loader.WebappClassLoader.loadClass(
... 26 more
Did someone ever had this problem ? If anyone I can help I would appreciate it
julien.mao's picture
Joined: Jun 13 2016 - 9:01am
Last seen: 3 years 2 weeks ago

4 Answers:


Confirm your Java memory setting for Tomcat. I experience installation before where the default java memory set was an issue and I could not start up tomcat. Got a lot of class errors as there was not enought memory to upload classed. So I had to manual change memory setting to reslove this.

joseng62's picture
Joined: Dec 5 2014 - 2:43am
Last seen: 1 month 3 weeks ago

Thank you for your help, I didn't have to change the JVM memory size, I added the option -Djava.awt.headless=true to the JVM and it solved my problem

Many thanks for your help


julien.mao's picture
Joined: Jun 13 2016 - 9:01am
Last seen: 3 years 2 weeks ago

Please on wish file did you apply this modification, thanks 

jaberfi96's picture
Joined: Jul 12 2017 - 2:46am
Last seen: 2 years 3 months ago

you need to set a file in tomcat/bin/ and add as CATALINA_OPTS=-Djava.awt.headless=true doesnt come by default. you need to create one manually.

our set env looks like this


bash-3.2# cat


CATALINA_OPTS="-server -Xms1024m -XX:+UseParallelGC -Xmx2024m -XX:MaxPermSize=512m -XX:PermSize=1024m -Djava.awt.headless=true"

export JRE_HOME
export JAVA_HOME

SETTURGOPI's picture
Joined: Jul 12 2018 - 2:44am
Last seen: 5 months 13 min ago