went through this and received following error:
   

org.apache.jasper.JasperException: Exception in JSP: /test.jsp:4    1: <%@ 
taglib uri="http://java.sun.com/jsp/jstl/sql"; prefix="sql" %>  2: <%@ taglib 
uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>  3:   4: <sql:query 
var="rs" dataSource="jdbc/TestDB">  5: select id, foo, bar from testdata  6: 
</sql:query>  7:       Stacktrace:   
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
   
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) 
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)   
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)  
  
  root cause 
javax.servlet.ServletException: Unable to get connection, DataSource invalid: 
"org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of 
class '' for connect URL 'null'"   
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
   
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
   org.apache.jsp.test_jsp._jspService(org.apache.jsp.test_jsp:81)   
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)   
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) 
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)   
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)  
  
  root cause 
javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: 
"org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of 
class '' for connect URL 'null'"   
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276)
   
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159)
   org.apache.jsp.test_jsp._jspx_meth_sql_query_0(org.apache.jsp.test_jsp:100)  
 org.apache.jsp.test_jsp._jspService(org.apache.jsp.test_jsp:58)   
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)   
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) 
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)   
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)  
  
  note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.15 logs.
  

"Caldarale, Charles R" <[EMAIL PROTECTED]> wrote:
  > From: (e==mc²)? [mailto:[EMAIL PROTECTED] 
> Subject: Re: JNDI datasource
> 
> just a tip why dont you try creating a datasource manually since neuer
> Tomcat version dont provide the admin application you will be then
> confortable with laater versions and you will dig into knowing things
> better ?
> http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html

The OP is running 5.5.12, so the 4.1 doc is not necessarily applicable. The 
correct links for his level would be:
http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to