Comment on Tutorial - JSP Example to connect to MS SQL database and retrieve records By Abinaya



Comment Added by : PL

Comment Added at : 2013-08-27 02:58:55

Comment on Tutorial : JSP Example to connect to MS SQL database and retrieve records By Abinaya
I tried to use excute this code to retreive records from my Database, however, it gave me a user login error, with the stacktrace below. Could anyone help?

Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)


root cause

javax.servlet.ServletException: Login failed for user 'foo'.
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
org.apache.jsp.port.pf0001_jsp._jspService(pf0001_jsp.java:123)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)


View Tutorial



Ask a Question

Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. steps 2 create and use tiles
View Tutorial          By: sasank at 2008-10-03 08:06:43

2. i tried, the coding dont hv any errors but its not
View Tutorial          By: anna at 2010-11-02 21:56:27

3. Hai Guys..
Itâs nice to see your di

View Tutorial          By: Santosh at 2010-09-19 08:17:52

4. i have written above code but the values are not s
View Tutorial          By: varun at 2010-01-15 18:37:19

5. Excellent!!!!!!!!!!

Tons of thanks

View Tutorial          By: Sara at 2009-06-03 05:38:59

6. Can you send me the file please?
kami2772@h

View Tutorial          By: laue at 2014-11-18 20:35:02

7. Hi This is very fine to understanding struts flo
View Tutorial          By: Abinash at 2011-06-28 08:27:18

8. give some good examples very bad i dont lke dis ex
View Tutorial          By: abinaya banu at 2014-07-14 06:04:28

9. Barely can understand it even I'm a NEWBIES ^^
View Tutorial          By: YieonChee at 2012-11-28 17:56:24

10. click the line which is shown in this site:

View Tutorial          By: hi to get 5 files at 2010-09-22 03:10:36