问题描述
HTTPStatus500---------------------------------------------------------------------------------typeExceptionreportmessagedescriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest.exceptionorg.apache.jasper.JasperException:AnexceptionoccurredprocessingJSPpage/index.jspatline4037:StuInfoDaodao=newStuInfoDaoImpl();38:introws=5;39:intpageNo=1;40:intpageCount=dao.getCount(rows);41:if(request.getParameter("page")!=null){42:pageNo=Integer.parseInt(request.getParameter("page"));43:}Stacktrace:org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:515)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:408)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:com.microsoft.sqlserver.jdbc.SQLServerException:用户'sa'登录失败。org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855)org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784)org.apache.jsp.index_jsp._jspService(index_jsp.java:194)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:384)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)rootcausecom.microsoft.sqlserver.jdbc.SQLServerException:用户'sa'登录失败。com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(UnknownSource)com.microsoft.sqlserver.jdbc.IOBuffer.processPackets(UnknownSource)com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(UnknownSource)com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(UnknownSource)com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(UnknownSource)java.sql.DriverManager.getConnection(DriverManager.java:582)java.sql.DriverManager.getConnection(DriverManager.java:185)com.northdx.dao.BaseDao.getConn(BaseDao.java:25)com.northdx.dao.StuInfoDaoImpl.getCount(StuInfoDaoImpl.java:84)org.apache.jsp.index_jsp._jspService(index_jsp.java:99)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:384)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)
解决方案
解决方案二:
MSSQL里面安全选的是混合模式登录吗?
解决方案三:
在不用java执行的时候,用sa用户能够登上去吗