Hello ,
I have website under domain : https://eg-sa.com/ was running on cpanel with MySQL 5.1.23 . After upgrading CPanel and MySQL to 8.0.27-cll-lve the website not connecting with database it gives :
1- the issue of: bash: java: command not found , has been fixed after run the following commands:
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-2.el8_5.x86_64
echo $JAVA_HOME
export PATH=$PATH:$JAVA_HOME/bin
echo $PATH
ubic restart ea-tomcat85
ubic status ea-tomcat85
I have website under domain : https://eg-sa.com/ was running on cpanel with MySQL 5.1.23 . After upgrading CPanel and MySQL to 8.0.27-cll-lve the website not connecting with database it gives :
- DriverManagerException: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/egsajava_egsa?useUnicode=yes&characterEncoding=UTF-8
1- the issue of: bash: java: command not found , has been fixed after run the following commands:
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-2.el8_5.x86_64
echo $JAVA_HOME
export PATH=$PATH:$JAVA_HOME/bin
echo $PATH
- testing by run:
java -version - the output is:
openjdk version "1.8.0_312"
OpenJDK Runtime Environment (build 1.8.0_312-b07)
OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)
ubic restart ea-tomcat85
ubic status ea-tomcat85
- it gave error:
Restarting ea-tomcat85... Configuration error
java.io.FileNotFoundException: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-2.el8_5.x86_64/jre/lib/logging.properties (Nosuch file or directory)
Attachments
-
265.1 KB Views: 0
Last edited by a moderator: