Parsons Technical Services wrote:
Resource Link

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/globalresources.html

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html#Resource%20Links


Doug


----- Original Message ----- From: "Darryl Wagoner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Tuesday, March 01, 2005 5:09 PM
Subject: newbie having problems with MySQL JDBC/JNDI Datasource example



Greetings,

Not sure if this made it the first time. I didn't see it show up on the list

I am trying to get the example in the MySQL JDBC/JNDI HOWTO to work and I am missing something.

I get this error:  My webapp directory is /DBTest.

What am I missing?

thanks

-darryl


--- Error Page ---

*type* Exception report

*message*

*description* _The server encountered an internal error () that prevented it from fulfilling this request._

*exception*

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:845)


org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:778)

org.apache.jsp.testDB_jsp._jspService(org.apache.jsp.testDB_jsp:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)


org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
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.testDB_jsp._jspx_meth_sql_query_0(org.apache.jsp.testDB_jsp:100)

org.apache.jsp.testDB_jsp._jspService(org.apache.jsp.testDB_jsp:58)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)


org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



Sounds like it can't find the driver. Do you have the Connector/J jar installed in the correct place? Should be in common/lib.



-- Justin Crabtree Java Programmer Ozarks Technical Community College 447-7533



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



Reply via email to