Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » WTP tomcat mysql jndi datasource error(Datasource Connection error)
WTP tomcat mysql jndi datasource error [message #636311] Sat, 30 October 2010 17:59 Go to next message
Syed  is currently offline Syed Friend
Messages: 1
Registered: October 2010
Junior Member
I am trying to run the tomcat example of JNDI datasource from the following link:
http://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-exam ples-howto.html

I have created a data source through data source explorer and able to access it. When I run the jsp page I get the following error. As the link says that I am suppose to have a context.xml in META-INF, but when I created that my tomcat won't start,Later on I have searched the internet for solution but I can't seem to find any solution that fixes my issue. Any help would be appreciated.

HTTP Status 500 -

------------------------------------------------------------ --------------------

type Exception report

message

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

exception

org.apache.jasper.JasperException: javax.servlet.ServletException: 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.jasper.servlet.JspServletWrapper.handleJspExcepti on(JspServletWrapper.java:492)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:407)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)


root cause

javax.servlet.ServletException: 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.jasper.runtime.PageContextImpl.doHandlePageExcept ion(PageContextImpl.java:898)
org.apache.jasper.runtime.PageContextImpl.handlePageExceptio n(PageContextImpl.java:827)
org.apache.jsp.test_jsp._jspService(test_jsp.java:89)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.ja va:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:376)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)


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.g etConnection(QueryTagSupport.java:314)
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.d oStartTag(QueryTagSupport.java:197)
org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(test_ jsp.java:110)
org.apache.jsp.test_jsp._jspService(test_jsp.java:67)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.ja va:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:376)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)




Re: WTP tomcat mysql jndi datasource error [message #636670 is a reply to message #636311] Tue, 02 November 2010 12:28 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1313
Registered: July 2009
Senior Member
Details about the WTP support for Tomcat can be found in the Tomcat
FAQ[1]. However, questions about configuring Tomcat are best asked on
the Tomcat Users mailing list, if you haven't already.

Cheers,
Larry

[1] http://wiki.eclipse.org/WTP_Tomcat_FAQ

On 10/30/2010 1:59 PM, Syed wrote:
> I am trying to run the tomcat example of JNDI datasource from the
> following link:
> http://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-exam ples-howto.html
>
> I have created a data source through data source explorer and able to
> access it. When I run the jsp page I get the following error. As the
> link says that I am suppose to have a context.xml in META-INF, but when
> I created that my tomcat won't start,Later on I have searched the
> internet for solution but I can't seem to find any solution that fixes
> my issue. Any help would be appreciated.
>
> HTTP Status 500 -
> ------------------------------------------------------------
> --------------------
>
> type Exception report
>
> message
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
> org.apache.jasper.JasperException: javax.servlet.ServletException:
> 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.jasper.servlet.JspServletWrapper.handleJspExcepti
> on(JspServletWrapper.java:492)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServl
> etWrapper.java:407)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:320)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java :265)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>
>
> root cause
> javax.servlet.ServletException: 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.jasper.runtime.PageContextImpl.doHandlePageExcept
> ion(PageContextImpl.java:898)
> org.apache.jasper.runtime.PageContextImpl.handlePageExceptio
> n(PageContextImpl.java:827)
> org.apache.jsp.test_jsp._jspService(test_jsp.java:89)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.ja va:68)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServl
> etWrapper.java:376)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:320)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java :265)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>
>
> 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.g
> etConnection(QueryTagSupport.java:314)
> org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.d
> oStartTag(QueryTagSupport.java:197)
> org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(test_ jsp.java:110)
> org.apache.jsp.test_jsp._jspService(test_jsp.java:67)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.ja va:68)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServl
> etWrapper.java:376)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:320)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java :265)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>
>
>
>
>
Previous Topic:XSD comparer
Next Topic:Action listener context menu
Goto Forum:
  


Current Time: Fri Dec 19 21:17:51 GMT 2014

Powered by FUDForum. Page generated in 0.04222 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software