永发信息网

用tomcat链接jsp时报错了 帮个忙啊

答案:4  悬赏:60  手机版
解决时间 2021-04-23 05:56
  • 提问者网友:城市野鹿
  • 2021-04-22 13:40
Jaxmao Project HTTP状态500 -

type 异 常 报 告

信 息

描 述 服务器遇到内部错误,无法满足这个访问请求

异 常 org.apache.jasper.JasperException: [Microsoft][SQLServer JDBC Driver]Error establishing socket. org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

起 因 javax.servlet.ServletException: [Microsoft][SQLServer JDBC Driver]Error establishing socket. org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774) org.apache.jsp.index_jsp._jspService(index_jsp.java:128) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

起 因 java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing socket. com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source) com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source) com.microsoft.jdbc.base.BaseConnection.open(Unknown Source) com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source) java.sql.DriverManager.getConnection(Unknown Source) java.sql.DriverManager.getConnection(Unknown Source) org.apache.jsp.index_jsp._jspService(index_jsp.java:62) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

注 意 完整的起因在Apache Tomcat/5.5.20里。

Apache Tomcat/5.5.20 Jaxmao Project
最佳答案
  • 五星知识达人网友:你哪知我潦倒为你
  • 2021-04-22 14:54
把数据库的三个驱动包,加入到tomcat的lib下 就可以了
全部回答
  • 1楼网友:猎心人
  • 2021-04-22 16:52
Driver路径写错了吧!
  • 2楼网友:蕴藏春秋
  • 2021-04-22 16:23

链接不到数据库 最大的可能是驱动有问题 建议换一个,

sql2000出现这个问题需要打补丁

  • 3楼网友:長槍戰八方
  • 2021-04-22 15:20
应该是驱动有问题!如股票从来就没接上的话,你的数据库打了补丁没?
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯