JFinal 报错 求求助

JacCoffee 发布于 2013/03/09 21:29
阅读 1K+
收藏 1
Starting JFinal 1.2
Starting scanner at interval of 5 seconds.
Starting web server on port: 80
2013-03-09 21:25:50.484:WARN:oejuc.AbstractLifeCycle:FAILED jfinal: java.lang.RuntimeException: You must load properties file by invoking loadPropertyFile(String) method in configConstant(Constants) method before.
java.lang.RuntimeException: You must load properties file by invoking loadPropertyFile(String) method in configConstant(Constants) method before.
	at com.jfinal.config.JFinalConfig.checkPropertyLoading(JFinalConfig.java:152)
	at com.jfinal.config.JFinalConfig.getPropertyToBoolean(JFinalConfig.java:133)
	at com.jfinal.config.JFinalConfig.getPropertyToBoolean(JFinalConfig.java:146)
	at common.DemoConfig.configConstant(DemoConfig.java:23)
	at com.jfinal.core.Config.configJFinal(Config.java:46)
	at com.jfinal.core.JFinal.init(JFinal.java:67)
	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:114)
	at com.jfinal.server.JettyServer.start(JettyServer.java:63)
	at com.jfinal.core.JFinal.main(JFinal.java:178)
2013-03-09 21:25:50.484:WARN:oejw.WebAppContext:Failed startup of context o.e.j.w.WebAppContext{/,file:/D:/CodeSpase/jfinal_test/WebContent/}
java.lang.RuntimeException: You must load properties file by invoking loadPropertyFile(String) method in configConstant(Constants) method before.
	at com.jfinal.config.JFinalConfig.checkPropertyLoading(JFinalConfig.java:152)
	at com.jfinal.config.JFinalConfig.getPropertyToBoolean(JFinalConfig.java:133)
	at com.jfinal.config.JFinalConfig.getPropertyToBoolean(JFinalConfig.java:146)
	at common.DemoConfig.configConstant(DemoConfig.java:23)
	at com.jfinal.core.Config.configJFinal(Config.java:46)
	at com.jfinal.core.JFinal.init(JFinal.java:67)
	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:114)
	at com.jfinal.server.JettyServer.start(JettyServer.java:63)
	at com.jfinal.core.JFinal.main(JFinal.java:178)
Starting Complete. Welcome To The JFinal World :)

@JFinal

加载中
1
JacCoffee
JacCoffee
好吧,我发现是什么问题了,我数据库不对劲,里面的 表 没有 项目里面 对应 的类,但是这 错误提示。。。。= =好蛋疼今天
0
如梦技术
如梦技术
目测那个WEB-INF下的配置文件没找到。
返回顶部
顶部