测试了一下 HikariCP 连接池报错,无解
十一月 16, 2017 5:31:59 下午 org.apache.catalina.core.StandardContext loadOnStartup
严重: Servlet [InitTaskServlet] in web application [] threw load() exception
org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection: You need to run the CLI build and you need target/classes in your classpath to run.
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:84)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:598)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:655)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:686)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:698)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:749)
at net.paoding.rose.jade.provider.jdbctemplate.JdbcTemplateDataAccess.selectByJdbcTemplate(JdbcTemplateDataAccess.java:132)
at net.paoding.rose.jade.provider.jdbctemplate.JdbcTemplateDataAccess.selectC(JdbcTemplateDataAccess.java:365)
at net.paoding.rose.jade.core.DataAccessWrapper.selectC(DataAccessWrapper.java:76)
at net.paoding.rose.jade.core.SelectOperation.execute(SelectOperation.java:186)
at net.paoding.rose.jade.core.JadeDaoInvocationHandler.invoke(JadeDaoInvocationHandler.java:107)
at com.sun.proxy.$Proxy31.getAfterNowMail(Unknown Source)
at reyo.sdk.service.CronTriggerService.init(CronTriggerService.java:86)
at reyo.sdk.service.CronTriggerService$$FastClassBySpringCGLIB$$72d7b83d.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:747)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689)
at reyo.sdk.service.CronTriggerService$$EnhancerBySpringCGLIB$$1ac133af.init(<generated>)
at reyo.sdk.quartz.InitTaskServlet.init(InitTaskServlet.java:28)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1238)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1151)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1038)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5337)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)