在myeclipse中合适 但是到eclipse中会报错

不知道为啥会找_user.sql这个文件,求大神解决下


2018-08-21 18:39:38

[ERROR]-[Thread: main]-[com.jfinal.core.Config.startPlugins()]: Plugin start error: com.jfinal.plugin.activerecord.ActiveRecordPlugin. 

File not found : D:\workplace\waiter\file:\D:\workplace\waiter\src\main\webapp\WEB-INF\lib\alipay-sdk-java20180309170622.jar!/_user.sql

java.lang.RuntimeException: File not found : D:\workplace\waiter\file:\D:\workplace\waiter\src\main\webapp\WEB-INF\lib\alipay-sdk-java20180309170622.jar!/_user.sql

at com.jfinal.template.source.FileSource.getContent(FileSource.java:70)

at com.jfinal.template.Engine.buildTemplateBySourceFactory(Engine.java:153)

at com.jfinal.template.Engine.getTemplate(Engine.java:138)

at com.jfinal.plugin.activerecord.sql.SqlKit.parseSqlTemplate(SqlKit.java:92)

at com.jfinal.plugin.activerecord.ActiveRecordPlugin.start(ActiveRecordPlugin.java:224)

at com.jfinal.core.Config.startPlugins(Config.java:107)

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

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.JettyServerForIDEA.doStart(JettyServerForIDEA.java:133)

at com.jfinal.server.JettyServerForIDEA.start(JettyServerForIDEA.java:72)

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

at com.dlhz.common.Start.main(Start.java:14)


2018-08-21 18:39:38

[ERROR]-[Thread: main]-[com.jfinal.kit.LogKit.error()]: Plugin start error: com.jfinal.plugin.activerecord.ActiveRecordPlugin. 

File not found : D:\workplace\waiter\file:\D:\workplace\waiter\src\main\webapp\WEB-INF\lib\alipay-sdk-java20180309170622.jar!/_user.sql

java.lang.RuntimeException: Plugin start error: com.jfinal.plugin.activerecord.ActiveRecordPlugin. 

File not found : D:\workplace\waiter\file:\D:\workplace\waiter\src\main\webapp\WEB-INF\lib\alipay-sdk-java20180309170622.jar!/_user.sql

at com.jfinal.core.Config.startPlugins(Config.java:116)

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

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.JettyServerForIDEA.doStart(JettyServerForIDEA.java:133)

at com.jfinal.server.JettyServerForIDEA.start(JettyServerForIDEA.java:72)

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

at com.dlhz.common.Start.main(Start.java:14)

Caused by: java.lang.RuntimeException: File not found : D:\workplace\waiter\file:\D:\workplace\waiter\src\main\webapp\WEB-INF\lib\alipay-sdk-java20180309170622.jar!/_user.sql

at com.jfinal.template.source.FileSource.getContent(FileSource.java:70)

at com.jfinal.template.Engine.buildTemplateBySourceFactory(Engine.java:153)

at com.jfinal.template.Engine.getTemplate(Engine.java:138)

at com.jfinal.plugin.activerecord.sql.SqlKit.parseSqlTemplate(SqlKit.java:92)

at com.jfinal.plugin.activerecord.ActiveRecordPlugin.start(ActiveRecordPlugin.java:224)

at com.jfinal.core.Config.startPlugins(Config.java:107)

... 18 more


评论区

CrazyZH

2018-08-21 18:45

之前在myeclipse里做的 导入eclipse中就启动不了了 求解

黄天霸

2018-08-21 19:34

把你项目的结构 截图看下

CrazyZH

2018-08-22 09:36

@黄天霸 截图放不进去

热门反馈

扫码入社