Hello everyone. My problem is this: I have a JSP project, which used the Oracle SQL database. However, it came in handy for me to use MySQL and I installed MySQL .jar and I changed the Connection class, all right, so much so that in the class I tested DAO everything goes right. The problem is when I load the page in TomCat. These errors come to me:
type Exception report message Servlet execution threw an exception description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception org.apache.tomcat.websocket.server.WsFilter.doFilter (WsFilter.java:52) root cause java.lang.NoClassDefFoundError: com / mysql / jdbc / Driver (ConnectionBD.java:25) The.ProductOf.the.RegisterItem (ProductOpt.java:33) br.platform.controller.ProductControl.Post (Product Control.java:51) javax.servlet.http.HttpServlet.service (HttpServlet.java:650) javax.servlet.http.HttpServlet.service (HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter (WsFilter.java:52) root cause java.lang.ClassNotFoundException: com.mysql.jdbc.Driver org.apache.catalina.loader.WebappClassLoaderBase.loadClass (WebappClassLoaderBase.java:1892) org.apache.catalina.loader.WebappClassLoaderBase.loadClass (WebappClassLoaderBase.java:1735) (ConnectionBD.java:25) The.ProductOf.the.RegisterItem (ProductOpt.java:33) br.platform.controller.ProductControl.Post (Product Control.java:51) javax.servlet.http.HttpServlet.service (HttpServlet.java:650) javax.servlet.http.HttpServlet.service (HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter (WsFilter.java:52) note The full stack trace of the root cause is available in the Apache Tomcat / 7.0.81 logs.
What am I doing wrong?