问题描述
typeExceptionreportmessagedescriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest.exceptionorg.apache.jasper.JasperException:AnexceptionoccurredprocessingJSPpage/redirectImage.jspatline1916:17:Stringpassword="";18:19:Connectionconn=DriverManager.getConnection(url,user,password);20:21:Statementstmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);22:Stacktrace:org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rootcausejavax.servlet.ServletException:java.sql.SQLException:[Microsoft][SQLServer2000DriverforJDBC]Errorestablishingsocket.org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)org.apache.jsp.redirectImage_jsp._jspService(redirectImage_jsp.java:125)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rootcausejava.sql.SQLException:[Microsoft][SQLServer2000DriverforJDBC]Errorestablishingsocket.com.microsoft.jdbc.base.BaseExceptions.createException(UnknownSource)com.microsoft.jdbc.base.BaseExceptions.getException(UnknownSource)com.microsoft.jdbc.base.BaseExceptions.getException(UnknownSource)com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(UnknownSource)com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(UnknownSource)com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(UnknownSource)com.microsoft.jdbc.base.BaseConnection.open(UnknownSource)com.microsoft.jdbc.base.BaseDriver.connect(UnknownSource)java.sql.DriverManager.getConnection(DriverManager.java:582)java.sql.DriverManager.getConnection(DriverManager.java:185)org.apache.jsp.redirectImage_jsp._jspService(redirectImage_jsp.java:72)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)noteThefullstacktraceoftherootcauseisavailableintheApacheTomcat/6.0.14logs.我刚入门,做一个JSP连接数据的测试,然后出现这个错误是哪的问题呢?
解决方案
解决方案二:
少了个sp4补丁已经可以了。。
解决方案三:
什么sp4补丁
解决方案四:
org.apache.jasper.JasperException:AnexceptionoccurredprocessingJSPpage/redirectImage.jspatline19
解决方案五:
建立不起连接,少了sp3或是sp4补丁!