Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Microservices in Action this week in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

MySQL Error Cannot create JDBC driver of class '' for connect URL 'null'  RSS feed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All.

MySQL showing error on centos. MySQL version 5.7

16:42:22,985 ERROR ConnectionProvider:71 - Connection Pooling : java.sql.SQLException: Cannot create JDBC driver of class '' for connect URL 'null'
OnlineTE.org.common.en.exceptions.BIException

I have mention IP address or Localhost in connection string but still getting error. Unable to understand "null" value
 
Rancher
Posts: 3767
40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the code on line 71 of ConnectionProvider?
 
anup sadhu
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for reply..

My context.xml

<Resource name="jdbc/appname" auth="Container" type="javax.sql.DataSource"
     maxTotal="10" maxIdle="5" maxWaitMillis="10000" removeAbandonedOnBorrow="true"
     username="root" password="passsword" driverClassName="com.mysql.jdbc.Driver"
     url="jdbc:mysql://ipaddress(or localhost):3306/dbname?autoReconnect=true"
     connectionProperties="useUnicode=yes;characterEncoding=utf8;characterSetResults=UTF8;"
     validationQuery="select 1" removeAbandonedTimeout="60" testWhileIdle="true"
             timeBetweenEvictionRunsMillis="300000" />
             
 
Dave Tolls
Rancher
Posts: 3767
40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, so what is the full stack trace?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!