tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayanta Halder" <JHAL...@dfg.ca.gov>
Subject Error found while connecting to mysql from JSP page deployed on tomcat
Date Fri, 14 Jun 2002 00:23:39 GMT
Hi,
 
I have installed tomcat on HP-UX box.I have deployed my web application
on tomcat container.I have copied mysql JDBC driver under common/lib
area.
 
While running the application i am getting following error ....
 
Cannot load JDBC driver class 'null'
java.lang.NullPointerException:
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at
org.apache.commons.dbcp.BasicDataSource.createDataSource(Unknown
Source)
        at
org.apache.commons.dbcp.BasicDataSource.getConnection(Unknown Source)
        at org.apache.jsp.index_0005fmysql$jsp._jspService(Unknown
Source)
        at org.apache.jasper.runtime.HttpJspBase.service(Unknown
Source)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.jasper.servlet.JspServletWrapper.service(Unknown
Source)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
Source)
        at org.apache.jasper.servlet.JspServlet.service(Unknown
Source)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
        at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unkno
wn Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
        at org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unkno
wn Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
        at org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
        at org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)

 
Can u please tell me what is wrong ?

Thanks,

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message