javax.servlet.ServletException: Servlet execution threw an exception org.apache.tomcat.websocket.se

我的运行环境:
eclipse+Tomcat8.5
错误截图:
javax.servlet.ServletException: Servlet execution threw an exception org.apache.tomcat.websocket.se

1 解决方法:

2jar包放错位置了,我直接Build Path 在main方法里运行不会出错,但在HTTPServlet的Service方法里调用就会出现这个错误

3 将jar包放在lib目录下就解决了

javax.servlet.ServletException: Servlet execution threw an exception org.apache.tomcat.websocket.se