You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "speedhao (via GitHub)" <gi...@apache.org> on 2023/04/28 08:22:14 UTC

[GitHub] [shardingsphere] speedhao opened a new issue, #25401: When run in Tomcat and use default Mode,has No suitable driver Excepeion

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: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] RaigorJiang closed issue #25401: When run in Tomcat and use default Mode,has No suitable driver Excepeion

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang closed issue #25401: When run in Tomcat and use default Mode,has No suitable driver Excepeion
URL: https://github.com/apache/shardingsphere/issues/25401


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] RaigorJiang commented on issue #25401: When run in Tomcat and use default Mode,has No suitable driver Excepeion

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #25401:
URL: https://github.com/apache/shardingsphere/issues/25401#issuecomment-1527266716

   Duplicated with #https://github.com/apache/shardingsphere/issues/23768#issuecomment-1426919566


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org