HikariCP 脑火Failed to obtain JDBC Connection: You need to run the CLI build and you need target/classes in your classpath to run.
2017-11-16 17:35
831 查看
测试了一下 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)
十一月 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)
相关文章推荐
- You need to run build with JDK or have tools.jar on the classpath.
- failed to sync branch You might need to open a shell and debug the state of this repo
- failed to sync branch You might need to open a shell and debug the state of this repo
- Failed to load the sqljdbc_auth.dll cause :- no sqljdbc_auth in java.library.path
- failed to sync branch You might need to open a shell and debug the state of this repo
- failed to sync branch You might need to open a shell and debug the state of this repo
- You need tcl 8.5 or newer in order to run the Redis test
- 【Redis test】You need tcl 8.5 or newer in order to run the Redis test
- failed to sync branch You might need to open a shell and debug the state of this repo
- Centos安装redis时遇到You need tcl 8.5 or newer in order to run the Redis test
- You need tcl 8.5 or newer in order to run the Redis test
- failed to sync branch You might need to open a shell and debug the state of this repo
- failed to sync branch You might need to open a shell and debug the state of this repo.
- Github出现failed to sync branch You might need to open a shell and debug the state of this repo的解决方法
- failed to sync branch You might need to open a shell and debug the state of this repo
- JAVA错误:AXIS Web Service Problem: No compiler found in your classpath! (you may need to add ‘tools.jar’)
- Ubuntu 14.04下Redis安装报错:“You need tcl 8.5 or newer in order to run the Redis test”问题解决
- failed to sync branch You might need to open a shell and debug the state of this repo
- You need tcl 8.5 or newer in order to run the Redis test
- 很恶心的一个问题,百度没找到You appear to have guava-jdk5 on your project buildScript or buildSrc classpath