求助,刚开始学javaweb但是无论如何也连接不上数据库

下面是出现的问题,求大佬帮助看一下

HTTP Status 500 – Internal Server Error
Type 异常报告

消息 Servlet execution threw an exception

描述 服务器遇到一个意外的情况,阻止它完成请求。

Exception

javax.servlet.ServletException: Servlet execution threw an exception
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Root Cause

java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLServerConnection.java:4061)
com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:3157)
com.microsoft.sqlserver.jdbc.SQLServerConnection.access 100 ( S Q L S e r v e r C o n n e c t i o n . j a v a : 82 ) c o m . m i c r o s o f t . s q l s e r v e r . j d b c . S Q L S e r v e r C o n n e c t i o n 100(SQLServerConnection.java:82) com.microsoft.sqlserver.jdbc.SQLServerConnection 100(SQLServerConnection.java:82)com.microsoft.sqlserver.jdbc.SQLServerConnectionLogonCommand.doExecute(SQLServerConnection.java:3121)
com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7151)
com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2478)
com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:2026)
com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:1687)
com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:1528)
com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:866)
com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:569)
java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
addservlet.Add.getConnection(Add.java:42)
queservlet.Query.query(Query.java:39)
queservlet.Query.doGet(Query.java:106)
queservlet.Query.doPost(Query.java:116)
javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Note 主要问题的全部 stack 信息可以在 server logs 里查看

你可能感兴趣的:(求助,刚开始学javaweb但是无论如何也连接不上数据库)