Hi All,
I am tring to use connection pooling in my servlet. using JRun as my
container.
I get the this (java.sql.SQLException: No valid JDBC driver is specified.)
error when I try to get a connection from a
datasource.
Here is my code
// Get the JNDI context
InitialContext context = new InitialContext();
// Lookup the datasource
DataSource ds = (DataSource) context.lookup ("java:comp/env/jdbc/benmgmt");
// Get the connection from the datasource
conn = ds.getConnection();
The above line throws the "No valid JDBC driver is specified"
I know that the driver class is accessible because , if I change the code to use
a direct connection instead of the
DataSource , it works. So I think , its not a classpath issue , I could be wrong
though.
I have started the server a couple of times.
When I test the connection using the JRun management console , it connects
succesfully.
Any help , suggestions or tips on this issue will be highly appreciated. I have
searched the web , JRun documentation ,
various Forums including Jrun but in vain.
Thanks in advance
Santosh
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets