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 :)
好吧,我发现是什么问题了,我数据库不对劲,里面的表没有项目里面对应的类,但是这错误提示。。。。==好蛋疼今天目测那个WEB-INF下的配置文件没找到。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。