I get an error when launching tomcat and deploying knowledge.war.
Looking at tomcat's catalina.yyyy-mm-dd.log
19-Jan-2017 15: 41: 20.568 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95.x86_64/jre
It seemed that jdk1.7 was being used. It seems that the originally installed java7 is in the way and is not recognized. Therefore
Add the following to the beginning of /opt/apache-tomcat*/bin/startup.sh and catalina.sh.
JAVA_HOME=/usr/java/jdk1.8.0_73
PATH=$JAVA_HOME/bin:$PATH
19-Jan-2017 17: 03: 30.561 Info [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/java/jdk1.8.0_73/jre
Now java8 is recognized successfully.
Recommended Posts