[求助]小妹不才请各位帅哥哥靓姐姐帮忙
做的JSP页面在输入用户名和密码后,与主页连不上 出现了错误界面:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Name SqlServerDB is not bound in this Context org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758) org.apache.jsp.checklogin_jsp._jspService(checklogin_jsp.java:108) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
javax.naming.NameNotFoundException: Name SqlServerDB is not bound in this Context org.apache.naming.NamingContext.lookup(NamingContext.java:768) org.apache.naming.NamingContext.lookup(NamingContext.java:138) org.apache.naming.NamingContext.lookup(NamingContext.java:779) org.apache.naming.NamingContext.lookup(NamingContext.java:138) org.apache.naming.NamingContext.lookup(NamingContext.java:779) org.apache.naming.NamingContext.lookup(NamingContext.java:138) org.apache.naming.NamingContext.lookup(NamingContext.java:779) org.apache.naming.NamingContext.lookup(NamingContext.java:151) org.apache.naming.SelectorContext.lookup(SelectorContext.java:136) javax.naming.InitialContext.lookup(InitialContext.java:347) connection.conn.<init>(conn.java:28) org.apache.jsp.checklogin_jsp._jspService(checklogin_jsp.java:57) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.