简体   繁体   中英

Grails 3.0.1 Issue connecting to Oracle database

How should I configure in the application.yml file or anywhere else so my .m2\\repository\\com\\oracle\\ojdbc14\\11.1.0\\ojdbc14-11.1.0.jar is in the classpath. Below is my error:

:bootRun
ERROR org.apache.tomcat.jdbc.pool.ConnectionPool - Unable to create initial connections of pool.
java.sql.SQLException: oracle.jdbc.OracleDriver

I had a similar problem (Grails 3.0.2 + Oracle 12c). The guys in my post helped me fix it: How-to: Grails 3.0.2 + Oracle Database 12c? . Credits should of course go to them.

Just Paste your ojdbc14-11.1.0.jar to these 2 directory

  • C:\\Program Files\\Java\\jdk1.8.0_121\\jre\\lib\\ext
  • C:\\Program Files\\Java\\jre1.8.0_121\\lib\\ext

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM