ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | c-jdbc List | August 2004 Index

<--  Date Index  --> <--  Thread Index  -->

Re: Re: [c-jdbc] tomcat 5.27 connection pooling


hi again,

i did the above but in my .jsp file:

<%@ page errorPage="errorpg.jsp" 
import="java.sql.*, 
javax.sql.*, 
java.io.*,
javax.naming.InitialContext,
javax.naming.Context" %>
</head>
<body>
<h1>JDBC JNDI Resource Test</h1>

<%
InitialContext initCtx = new InitialContext();
DataSource ds = (DataSource) 

initCtx.lookup("java:comp/env/jdbc/mydatasourcedatabasename");

Connection conn = ds.getConnection();
......

i get the error : Cannot load JDBC driver class 
'org.objectweb.cjdbc.driver.Driver'


when i import in this file the org.objectweb.cjdbc.driver.DataSource i get as 
an errorr null.

thanks,bill



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.