Я использую Eclipse Photon и получаю ошибку 500, у меня есть какое-то решение, но не для моей конкретной проблемы, то есть -
java.lang.NoClassDefFoundError: java / sql / Driver
Я не понимаю, как удалить java / sql / Тип ошибки драйвера.
Вот моя ошибка-
HTTP Status 500 – Internal Server Error
Type Exception Report
Message Servlet execution threw an exception
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
javax.servlet.ServletException: Servlet execution threw an exception
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Root Cause
java.lang.NoClassDefFoundError: java/sql/Driver
java.base/java.lang.ClassLoader.findBootstrapClass(Native Method)
java.base/java.lang.ClassLoader.findBootstrapClassOrNull(Unknown Source)
java.base/java.lang.System$2.findBootstrapClassOrNull(Unknown Source)
java.base/jdk.internal.loader.ClassLoaders$BootClassLoader.loadClassOrNull(Unknown Source)
java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown Source)
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
java.base/java.lang.ClassLoader.loadClass(Unknown Source)
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1247)
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)
java.base/java.lang.Class.forName0(Native Method)
java.base/java.lang.Class.forName(Unknown Source)
com.login.LoginCDao.getLoginC(LoginCDao.java:12)
com.login.GetLogin.doGet(GetLogin.java:23)
`javax.servlet.http.HttpServlet.service(HttpServlet.java:634`)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Note The full stack trace of the root cause is available in the server logs.
Apache Tomcat/9.0.13