1st. verifiy that the driver you need is in the Tomcat common lib. 2nd.
verify your config in your server.xml and make sure your character "case" is
correct. 3rd, double check your web.xml or context.xml to make sure your
referencing your DataSource correctly, and finally post this and your
class(or JSP ) code that is trying to get the connection.

sounds like a configuration issue from this.

On 3/4/07, Wojtek Kusch <[EMAIL PROTECTED]> wrote:

Hi!
I have a JSP-App and need a database connection (to the MS Access
database "unleashed").
But, I get following exception:

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null'


This is the context in "conf\Catalina\localhost"

---------------------------------------------------------------------------------------------------
<Context debug="1" reloadable="true">

  <Logger className="org.apache.catalina.logger.FileLogger"
   prefix="localhost_unleashed_" suffix=".log"
   timestamp="false"/>

  <Resource name="jdbc/unleashed" auth="Container"
type="javax.sql.DataSource"/>
  <ResourceParams name="jdbc/unleashed">
    <parameter>
        <name>driverClassName</name>
         <value>sun.jdbc.odbc.JdbcOdbcDriver</value>
    </parameter>
    <parameter>
        <name>url</name>
         <value>jdbc:odbc:unleashed</value>
    </parameter>
  </ResourceParams>

</Context>

-------------------------------------------------------------------------------------------------------

What's wrong? Thanks for help!
Wojtek Kusch

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to