tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Purcell" <>
Subject jndi error configuring data source
Date Wed, 05 Jan 2005 22:02:14 GMT
I am trying to configure database pooling in Tomcat 4.1.31. I found some excellent documentation
I followed this exactly for mysql (top article).
I created the DBTest web-app precisely, and all folders exist and web.xml file is good.
My webapp is under root/DBTest/WEB-INF/classes
The server starts properly, so I know my configuration is good. The problem is I get an error
stating that it cannot find the jar file for the mysql driver when I hit the test page. (ERROR_BELOW)
Anyway, I followed the article precisely, and noticed that they hit localhost:8080. My tomcat
is running on 80 and at my IP address as you can see below. 
Would this be why it cannot find the jar file? I am looking at the ajp13 listening on /
and wondering if there is something else that needs configuring?
Would like to get this running if possible.
Thank you 
        INFO: Starting Coyote HTTP/1.1 on http-
Jan 5, 2005 3:52:27 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /
Jan 5, 2005 3:52:27 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=15/532  config=C:\jakarta-tomcat-4.1.31\conf\jk2.prop
org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.g', cause:
        at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
        at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
        at java.lang.ClassLoader.loadClassInternal(
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
        at foo.DBTest.init(
        at org.apache.jsp.test_jsp._jspService(
        at org.apache.jasper.runtime.HttpJspBase.service(
        at javax.servlet.http.HttpServlet.service(
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(
        at org.apache.jasper.servlet.JspServlet.service(
        at javax.servlet.http.HttpServlet.service(
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl                            

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message