Jdbc Driver class is not found in tomcate server

HI,

Iam doingfollowing steps

  1. Adding following dependency in main pom.xml

    mysql
    mysql-connector-java
    8.0.20

  2. updating conf/context.xml & conf/context-mysql.xml with respective values (hardcoded)

  3. Now doing docker build to create the new docker Images and to generate new war files.

docker.build

  1. Now Deploying those docker images in kuberneter cluster. and when I login and check container logs Tomcat catalina logs throing error
    “Caused by: java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver”

Do I need to add mysql dependency in any other pom.xml?

please see: