• Post Reply Bookmark Topic Watch Topic
  • New Topic

not able to read records from mysql database  RSS feed

 
Narasimha Raju Naidu
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Narasimha Raju Naidu
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok thanks for your sugession

regards
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!