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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. SMSC number is the sms center no. put the sim to a
View Tutorial By: Java MAn at 2012-01-28 19:08:23
2. How do use qsort to sort lines in text file?
View Tutorial By: kenny at 2008-11-18 08:59:55
3. The code sample in this tutorial is good. It would
View Tutorial By: Anon at 2009-06-05 03:36:59
4. I managed to get the program working. However I ha
View Tutorial By: Anthrax at 2012-02-15 10:11:19
5. This is a nice introduction. Thanks a lot.
View Tutorial By: Provas Kumar Saha at 2010-04-26 02:38:34
6. it doesn't count for the values like 001 or 02 et
View Tutorial By: angesh at 2012-02-10 16:15:02
7. hello after working with this code i got the follw
View Tutorial By: Tapaswini Sabat at 2011-11-05 12:43:49
8. your web site is very useful for students
View Tutorial By: aathithi at 2008-06-22 22:41:07
9. Great stuff!!!
The clickLink functi
View Tutorial By: Harro at 2008-10-13 07:25:26
10. Hello Sir/Madam, I want to know the basic concepts
View Tutorial By: venkatesh at 2012-12-24 06:17:00