Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Devaka Cooray
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
JSP
not able to read records from mysql database
Narasimha Raju Naidu
Ranch Hand
Posts: 37
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hello to all,
my problem is while accessing data from mysql database i am getting the following error can any one tell what is the actual problem
"exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.lang.NullPointerException
org.apache.jsp.test_jsp._jspService(test_jsp.java:57)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)"
in order to connect and retriving records i am using .class files. can any one help
regards
Mathias Nilsson
Ranch Hand
Posts: 367
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Are you using netbeans
IDE
to build and deploy your application?
If you are use this link to set up connection to mysql. IS for postgre but works for mysql as well.
LINK
I think that the problem is that the mysql.jar is not in the common/lib in your
tomcat
. copy the lib to the common/lib folder and try again.
SCJP1.4
Narasimha Raju Naidu
Ranch Hand
Posts: 37
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
THANKS FOR YOUR REPLY
I AM USING TOMCAT5.17 ,MYSQL CONNECTOR/ODBC 3.51 AND MYSQL SERVER 5.0. CAN ANY ONE TELL THE POST INSTALLATION INSTRUCTIONS.
REGARDS
Ulf Dittmer
Rancher
Posts: 43081
77
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Narasimha,
please, PLEASE!, don't post in all uppercase letters. It's considered shouting, and thus rude, all over the 'net:
KeepItDown
. It's also unnecessarily hard to read.
Narasimha Raju Naidu
Ranch Hand
Posts: 37
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
ok thanks for your sugession
regards
Happily living in the valley of the dried frogs with a few tiny ads.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
struts exception
Exception in struts Application
exception in validation mechanism
HTTP status 500 - Unknown source
Check for Duplicates
More...