jfinal-demo

今夜谁无眠 发布于 2015/10/15 10:20
阅读 865
收藏 0

@Dreampie 你好,想跟你请教个问题:下载了您的jfinal_demo,jetty:run也能正常启动,但是访问时,登录页面出不来,控制台输出了以下错误,这个是什么原因呢?麻烦您帮忙解答下,多谢  

2015-10-15 10:05:11.831:INFO:oejsh.ContextHandler:main: Started o.e.j.m.p.JettyWebAppContext@cddcc3{/,[file:/E:/workspace/jfinal-demo/jfinal-demo/src/main/webapp/, jar:file:/C:/Users/Ywjxb/.m2/repository/org/webjars/bootstrapvalidator/0.5.2/bootstrapvalidator-0.5.2.jar!/META-INF/resources/, jar:file:/C:/Users/Ywjxb/.m2/repository/org/webjars/jquery/2.1.1/jquery-2.1.1.jar!/META-INF/resources/, jar:file:/C:/Users/Ywjxb/.m2/repository/org/webjars/require-css/0.1.7/require-css-0.1.7.jar!/META-INF/resources/, jar:file:/C:/Users/Ywjxb/.m2/repository/org/webjars/bootstrap-multiselect/0.9.8/bootstrap-multiselect-0.9.8.jar!/META-INF/resources/, jar:file:/C:/Users/Ywjxb/.m2/repository/org/webjars/requirejs/2.1.14-1/requirejs-2.1.14-1.jar!/META-INF/resources/, jar:file:/C:/Users/Ywjxb/.m2/repository/org/webjars/bootstrap/3.3.0/bootstrap-3.3.0.jar!/META-INF/resources/, jar:file:/C:/Users/Ywjxb/.m2/repository/org/webjars/font-awesome/4.1.0/font-awesome-4.1.0.jar!/META-INF/resources/, jar:file:/C:/Users/Ywjxb/.m2/repository/org/webjars/nprogress/0.1.2/nprogress-0.1.2.jar!/META-INF/resources/, jar:file:/C:/Users/Ywjxb/.m2/repository/org/webjars/bootstrap-datetimepicker/2.3.1/bootstrap-datetimepicker-2.3.1.jar!/META-INF/resources/],AVAILABLE}{file:/E:/workspace/jfinal-demo/jfinal-demo/src/main/webapp/}
2015-10-15 10:05:11.831:WARN:oejsh.RequestLogHandler:main: !RequestLog
2015-10-15 10:05:11.879:INFO:oejs.ServerConnector:main: Started ServerConnector@10f6bf8{HTTP/1.1}{0.0.0.0:8080}
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 6 seconds.


JFinal action report -------- 2015-10-15 10:05:19 ------------------------------
Controller  : cn.dreampie.common.web.controller.Controller.(Controller.java:1)
Method      : index
Interceptor : cn.dreampie.shiro.core.ShiroInterceptor.(ShiroInterceptor.java:1)
              com.jfinal.ext.interceptor.SessionInViewInterceptor.(SessionInViewInterceptor.java:1)
              cn.dreampie.web.interceptor.UrlInterceptor.(UrlInterceptor.java:1)
--------------------------------------------------------------------------------
14706 [qtp15134979-14] DEBUG net.sf.ehcache.store.disk.Segment - put added 0 on heap
14708 [qtp15134979-14] DEBUG net.sf.ehcache.store.disk.Segment - put added 0 on heap
14708 [qtp15134979-14] DEBUG net.sf.ehcache.store.disk.Segment - put updated, deleted 0 on heap
14773 [shiro-active%0053ession%0043ache.data] DEBUG net.sf.ehcache.store.disk.Segment - fault removed 0 from heap
14773 [shiro-active%0053ession%0043ache.data] DEBUG net.sf.ehcache.store.disk.Segment - fault added 0 on disk
14774 [shiro-active%0053ession%0043ache.data] DEBUG net.sf.ehcache.store.disk.Segment - fault installation failed, deleted 0 from heap
14774 [shiro-active%0053ession%0043ache.data] DEBUG net.sf.ehcache.store.disk.Segment - fault installation failed deleted 0 from disk
14775 [shiro-active%0053ession%0043ache.data] DEBUG net.sf.ehcache.store.disk.Segment - fault removed 0 from heap
14775 [shiro-active%0053ession%0043ache.data] DEBUG net.sf.ehcache.store.disk.Segment - fault added 0 on disk
14901 [qtp15134979-21] DEBUG net.sf.ehcache.store.disk.Segment - put added 0 on heap
14903 [qtp15134979-21] DEBUG net.sf.ehcache.store.disk.Segment - put updated, deleted 0 on heap
14903 [qtp15134979-21] DEBUG net.sf.ehcache.store.disk.Segment - put updated, deleted 0 on disk
14904 [shiro-active%0053ession%0043ache.data] DEBUG net.sf.ehcache.store.disk.Segment - fault removed 0 from heap
14904 [shiro-active%0053ession%0043ache.data] DEBUG net.sf.ehcache.store.disk.Segment - fault added 0 on disk


JFinal action report -------- 2015-10-15 10:05:22 ------------------------------
Controller  : cn.dreampie.common.web.controller.Controller.(Controller.java:1)
Method      : captcha
Interceptor : cn.dreampie.shiro.core.ShiroInterceptor.(ShiroInterceptor.java:1)
              com.jfinal.ext.interceptor.SessionInViewInterceptor.(SessionInViewInterceptor.java:1)
              cn.dreampie.web.interceptor.UrlInterceptor.(UrlInterceptor.java:1)
Parameter   : time=10:05:66122  height=45  width=128  fontsize=30  

加载中
0
JFinal
JFinal
    这些不是错误,是 jetty 在启动时输出到控制台的提示信息,jfinal 整合了 jetty 启动的原之一就是对这些输出进行屏蔽,所以如果不喜欢这些输出,可以按照 jfinal 手册中的启动方式进行开发,详见 jfinal 手册第一章快速上手部分,在此下载:http://www.jfinal.com
0
littleant
littleant
看完jfinaldemo,可以接着学习下jfinaluib,专门为jfinal学习者打造的项目,地址:http://www.oschina.net/p/jfinaluib
0
袁小猴
袁小猴

是不是jetty启动就是无法加载webjars里面的资源文件?

返回顶部
顶部