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



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. pls help me build a jar application for sending bu
View Tutorial          By: sam at 2011-08-13 11:31:03

2. hey pls tel me, what is the advantage of method ov
View Tutorial          By: divya at 2013-08-27 14:20:22

3. plse can u send me study material or sample questi
View Tutorial          By: sneha at 2015-03-12 09:40:49

4. Runtime rt=Runtime.getRuntime();
String cmd

View Tutorial          By: saranya at 2014-10-30 05:36:36

5. Now what the hell does all this mean???
To

View Tutorial          By: Søren at 2011-09-22 03:13:53

6. hi there, i was testing your code-samples,

View Tutorial          By: Douglas at 2011-04-07 22:35:56

7. hi this is from iniyan....
can you send t

View Tutorial          By: iniyan at 2007-09-09 06:50:18

8. not work
View Tutorial          By: kkbb at 2011-03-12 03:52:06

9. hi! i want to know about how database createed in
View Tutorial          By: kundan at 2010-05-19 05:03:33

10. thank u.actually i want little more...
View Tutorial          By: burhan at 2010-07-13 03:46:01