Jump to content
We've recently updated our Privacy Statement, available here ×

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


julien.mao

Recommended Posts

Hello,

I did a fresh install of Jaspersoft server 6.1.0 on a

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

JAVA_HOME, JRE_HOME, PATH set

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(LifecycleBase.java:154)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:4007)
at org.apache.catalina.startup.HostConfig.reload(HostConfig.java:1482)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1465)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1649)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:328)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1546)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1556)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1524)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: com/jaspersoft/jasperserver/remote/ServiceException
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at java.lang.Class.getDeclaredFields(Class.java:1916)
at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:139)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:65)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:403)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:879)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:374)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5378)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 12 more
Caused by: java.lang.ClassNotFoundException: com.jaspersoft.jasperserver.remote.ServiceException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
... 26 more
 
Did someone ever had this problem ? If anyone I can help I would appreciate it
Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

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.

Link to comment
Share on other sites

  • 11 months later...
  • 1 year later...

you need to set a file in tomcat/bin/setenv.sh and add as CATALINA_OPTS=-Djava.awt.headless=true

setenv.sh doesnt come by default. you need to create one manually.

our set env looks like this

 

bash-3.2# cat setenv.sh
JAVA_HOME=/opt/jdk1.8.0_172/
JRE_HOME=/opt/jdk1.8.0_172/jre


CATALINA_PID="$CATALINA_BASE/tomcat.pid"

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

export JRE_HOME
export JAVA_HOME
export CATALINA_OPTS
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...