tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From IƱigo Mediavilla Saiz <>
Subject Deploying mysql-connector-java-5.1.7-bin.jar in /WEB-INF/lib
Date Sun, 23 Nov 2008 11:08:52 GMT
I try to access to a Database through the connector it fails if I leave
it inside WEB-INF\lib, but everything works if I copy the jar in the
lib folder of the apache distribution. Is there any other way to let a
web app access to a lib without having to copy the jar in apache\lib?
I'm using apache 6.0.18 and the exception I receive when I try to 
access the db is:

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class ''
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(
    at discoteca.authentication.AuthenticationServlet.obtenerConexionBD(
    at discoteca.authentication.AuthenticationServlet.doPost(
    at javax.servlet.http.HttpServlet.service(
    at javax.servlet.http.HttpServlet.service(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.apache.catalina.core.StandardWrapperValve.invoke(
    at org.apache.catalina.core.StandardContextValve.invoke(
    at org.apache.catalina.core.StandardHostValve.invoke(
    at org.apache.catalina.valves.ErrorReportValve.invoke(
    at org.apache.catalina.core.StandardEngineValve.invoke(
    at org.apache.catalina.connector.CoyoteAdapter.service(
    at org.apache.coyote.http11.Http11Processor.process(
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Caused by: java.lang.ClassNotFoundException:
    at Method)
    at java.lang.ClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    at java.lang.ClassLoader.loadClassInternal(
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(
    ... 17 more

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