启动jfinal数据库报错,如何解决

maven项目,用eclipse启动,报错如下:

12-13 14:08:32[WARN]FAILED jfinal: java.lang.RuntimeException: java.sql.SQLException: unkow jdbc driver : 

java.lang.RuntimeException: java.sql.SQLException: unkow jdbc driver : 

at com.eova.config.EovaConfig.initDruidPlugin(EovaConfig.java:416)

at com.eova.config.EovaConfig.regDataSource(EovaConfig.java:323)

at com.eova.config.EovaConfig.configPlugin(EovaConfig.java:281)

at com.jfinal.core.Config.configJFinal(Config.java:53)

at com.jfinal.core.JFinal.init(JFinal.java:63)

at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49)

at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:119)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:724)

at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)

at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)

at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)

at org.eclipse.jetty.server.Server.doStart(Server.java:277)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)

at com.jfinal.server.JettyServer.doStart(JettyServer.java:131)

at com.jfinal.server.JettyServer.start(JettyServer.java:70)

at com.jfinal.core.JFinal.start(JFinal.java:157)

at com.RunEovaOSS.main(RunEovaOSS.java:11)

Caused by: java.sql.SQLException: unkow jdbc driver : 

at com.alibaba.druid.util.JdbcUtils.getDriverClassName(JdbcUtils.java:432)

at com.eova.config.EovaConfig.initDruidPlugin(EovaConfig.java:414)

... 20 more


评论区

JFinal

2017-12-13 14:23

异常提示 jdbc driver 不对,换一个试试,在本站首页里头可以下载 jfinal-3.3-all.zip,里头就有这个 jar 包

热门反馈

扫码入社