tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Procek, Brett" <pro...@lucent.com>
Subject 'No suitable driver' exception
Date Thu, 19 Apr 2001 18:20:55 GMT
Hello,
Has anyone gotten the 'initParameter' functionality working using the
JDBC custom library tags.
I set up the appropriate Context variables in my web.xml file, but I
keep getting the same exception = 'No suitable driver'.  I can
successfully connect to my Oracle database if I put the URL/driver
information directly in the JSP page.  It anyone can help, this would be
much appreciated.

Thanks,
Brett

Here are the relavant code snippets...


Tagged Database connection attempt in my.JSP File ------
<sql:connection id="conn1">
  <sql:url initParameter="dbURL"/>
  <sql:driver initParameer="dbDriver"/>
</sql:connection>
-----------------------------------------
Web.XML file ----------------------------
 <context-param>
      <param-name>dbURL</param-name>
 
<param-value>jdbc:oracle:thin:xwdnms/oracle@xwdnms.ih.lucent.com:1521:NM
S</param-value>
    </context-param>
    <context-param>
      <param-name>dbDriver</param-name>
      <param-value>oracle.jdbc.driver.OracleDriver</param-value>
    </context-param>
------------------------------------------

Mime
View raw message