speedhao opened a new issue, #25401:
URL: https://github.com/apache/shardingsphere/issues/25401

   ## Bug Report
   
   Why ModeConfiguration not support config 'driverClassName'?
   When I Use default Mode(it's Standalone and H2 database), and run my 
applicatin in Tomcat
   It will throws 'No suitable driver' Exception
   
   ### Which version of ShardingSphere did you use?
   5.3.2
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC
   
   ### Expected behavior
   no Exception
   
   ### Actual behavior
   has a Exception
   
   ### Reason analyze (If you can)
   'HikariDataSource' will get driver by 'DriverManager',although DriverManager 
has 'org.h2.Driver',but it's ClassLoader is 'java.net.URLClassLoader'
   and current ClassLoader is 'ParallelWebappClassLoader',so it can't get the 
driver
   I see the 'JDBCRepositoryPropertyKey' don't has 'driverClassName' key, and 
JDBCRepository.init() are no settings either.
   I think this is a BUG.
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to