Jasper Reports not generated after java updates?

0

Whenever java auto updates had done then it required to restart the tomcat server otherwise gives error to generate jasper report.Is there any option that doesn't require to restart tomcat server. 

sumit.bhujbal101's picture
Joined: Oct 3 2018 - 9:41pm
Last seen: 10 months 1 week ago

Check the tomcat/bin/setenv.sh for JAVA_HOME and JRE_HOME path  and set to correct path of upgraded version of JAVA. If not, create a file setenv.sh and populate it with variables.

 

-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"

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

export JRE_HOME
export JAVA_HOME
export CATALINA_OPTS
 

SETTURGOPI - 10 months 3 weeks ago

TOMcat must be restarted to load the new version of java. Please shutdown and clean server cache and restart

SETTURGOPI - 10 months 3 weeks ago

0 Answers:

No answers yet
Feedback