tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: Cannot create JDBC driver of class '' for connect URL 'null'
Date Tue, 05 Jun 2007 14:22:18 GMT
Previous posting displays configure Resource in context.xml
http://marc.info/?l=tomcat-user&m=117312340132291&w=2

HTH/
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: "Pranav" <pranav.aggarwal@altair.com>
To: <users@tomcat.apache.org>
Sent: Tuesday, June 05, 2007 9:45 AM
Subject: Ref: Cannot create JDBC driver of class '' for connect URL 'null'


> Hi,
>
> I am running an application using tomcat5.x and getting following error:
> The error log is as follows:
>
> Jun 5, 2007 7:12:31 PM org.apache.catalina.core.ApplicationContext log
> SEVERE: AdminAcct Initialization Failure
> javax.faces.FacesException: 
> org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver 
> of class '' for connect URL 'null'
>        at 
> com.sun.rave.faces.data.CachedRowSetDataModel.executeIfNecessary(CachedRowSetDataModel.java:374)
>        at 
> com.sun.rave.faces.data.CachedRowSetDataModel.isRowAvailable(CachedRowSetDataModel.java:133)
>        at 
> com.sun.rave.faces.data.CachedRowSetDataModel.setRowIndex(CachedRowSetDataModel.java:286)
>        at 
> com.sun.rave.faces.data.CachedRowSetDataModel.setWrappedData(CachedRowSetDataModel.java:323)
>        at 
> com.sun.rave.faces.data.CachedRowSetDataModel.setCachedRowSet(CachedRowSetDataModel.java:348)
>        at acctapps.AdminAcct._init(AdminAcct.java:50)
>        at acctapps.AdminAcct.init(AdminAcct.java:464)
>        at 
> com.sun.rave.web.ui.appbase.servlet.LifecycleListener.fireInit(LifecycleListener.java:555)
>        at 
> com.sun.rave.web.ui.appbase.servlet.LifecycleListener.attributeAdded(LifecycleListener.java:405)
>        at 
> org.apache.catalina.connector.Request.setAttribute(Request.java:1398)
>        at 
> org.apache.catalina.connector.RequestFacade.setAttribute(RequestFacade.java:500)
>        at 
> javax.servlet.ServletRequestWrapper.setAttribute(ServletRequestWrapper.java:283)
>        at 
> javax.servlet.ServletRequestWrapper.setAttribute(ServletRequestWrapper.java:283)
>        at 
> com.sun.faces.context.RequestMap.put(ExternalContextImpl.java:622)
>        at 
> com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:279)
>        at 
> com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78)
>        at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125)
>        at 
> com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
>        at 
> com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
>        at 
> com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
>        at 
> com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.pageBean(ViewHandlerImpl.java:666)
>        at 
> com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.pageBean(ViewHandlerImpl.java:641)
>        at 
> com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:249)
>        at 
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
>        at 
> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
>        at 
> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>        at 
> com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:198)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>        at 
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>        at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>        at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>        at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>        at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>        at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>        at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>        at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>        at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>        at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>        at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>        at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>        at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
> JDBC driver of class '' for connect URL 'null'
>        at 
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
>        at 
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>        at 
> com.sun.sql.rowset.internal.CachedRowSetXReader.connect(CachedRowSetXReader.java:344)
>        at 
> com.sun.sql.rowset.internal.CachedRowSetXReader.readData(CachedRowSetXReader.java:126)
>        at 
> com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:968)
>        at 
> com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:1428)
>        at 
> com.sun.rave.faces.data.CachedRowSetDataModel.executeIfNecessary(CachedRowSetDataModel.java:372)
>        ... 46 more
> Caused by: java.sql.SQLException: No suitable driver
>        at java.sql.DriverManager.getDriver(DriverManager.java:243)
>        at 
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)
>        ... 52 more
> Jun 5, 2007 7:12:31 PM org.apache.catalina.core.ApplicationContext log
> INFO: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC 
> driver of class '' for connect URL 'null'
> Jun 5, 2007 7:12:32 PM org.apache.catalina.core.StandardWrapperValve 
> invoke
> SEVERE: Servlet.service() for servlet Faces Servlet threw exception
> com.sun.rave.web.ui.appbase.ApplicationException: 
> org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver 
> of class '' for connect URL 'null'
>        at 
> com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:559)
>        at 
> com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:276)
>        at 
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
>        at 
> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
>        at 
> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>        at 
> com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:198)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>        at 
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>        at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>        at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>        at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>        at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>        at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>        at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>        at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>        at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>        at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>        at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>        at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>        at java.lang.Thread.run(Thread.java:595)
> Caused by: javax.faces.FacesException: 
> org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver 
> of class '' for connect URL 'null'
>        at 
> com.sun.rave.faces.data.CachedRowSetDataModel.executeIfNecessary(CachedRowSetDataModel.java:374)
>        at 
> com.sun.rave.faces.data.CachedRowSetDataModel.isRowAvailable(CachedRowSetDataModel.java:133)
>        at 
> com.sun.rave.faces.data.CachedRowSetDataModel.setRowIndex(CachedRowSetDataModel.java:286)
>        at 
> com.sun.rave.faces.data.CachedRowSetDataModel.setWrappedData(CachedRowSetDataModel.java:323)
>        at 
> com.sun.rave.faces.data.CachedRowSetDataModel.setCachedRowSet(CachedRowSetDataModel.java:348)
>        at acctapps.AdminAcct._init(AdminAcct.java:50)
>        at acctapps.AdminAcct.init(AdminAcct.java:464)
>        at 
> com.sun.rave.web.ui.appbase.servlet.LifecycleListener.fireInit(LifecycleListener.java:555)
>        at 
> com.sun.rave.web.ui.appbase.servlet.LifecycleListener.attributeAdded(LifecycleListener.java:405)
>        at 
> org.apache.catalina.connector.Request.setAttribute(Request.java:1398)
>        at 
> org.apache.catalina.connector.RequestFacade.setAttribute(RequestFacade.java:500)
>        at 
> javax.servlet.ServletRequestWrapper.setAttribute(ServletRequestWrapper.java:283)
>        at 
> javax.servlet.ServletRequestWrapper.setAttribute(ServletRequestWrapper.java:283)
>        at 
> com.sun.faces.context.RequestMap.put(ExternalContextImpl.java:622)
>        at 
> com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:279)
>        at 
> com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78)
>        at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125)
>        at 
> com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
>        at 
> com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
>        at 
> com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
>        at 
> com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.pageBean(ViewHandlerImpl.java:666)
>        at 
> com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.pageBean(ViewHandlerImpl.java:641)
>        at 
> com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:249)
>        ... 24 more
> Caused by: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create 
> JDBC driver of class '' for connect URL 'null'
>        at 
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
>        at 
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>        at 
> com.sun.sql.rowset.internal.CachedRowSetXReader.connect(CachedRowSetXReader.java:344)
>        at 
> com.sun.sql.rowset.internal.CachedRowSetXReader.readData(CachedRowSetXReader.java:126)
>        at 
> com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:968)
>        at 
> com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:1428)
>        at 
> com.sun.rave.faces.data.CachedRowSetDataModel.executeIfNecessary(CachedRowSetDataModel.java:372)
>        ... 46 more
> Caused by: java.sql.SQLException: No suitable driver
>        at java.sql.DriverManager.getDriver(DriverManager.java:243)
>        at 
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)
>        ... 52 more
>
> I would appreciate if any one could help me with this. I running the 
> application using Netbeans 5.5 and have setup the MySql and made the 
> connection on that. Further I have copied the mysqlxxx.jar in commons/lib 
> folder. Please help me to find the cause of the error.
>
> Thanks,
> Pranav Aggarwal
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message