@绝望的八皮 ,想跟你请教个问题:
我已经按照给出文档里的配置好了,怎么报错了,请看配置截图。
<p>
<img src="http://static.oschina.net/uploads/space/2015/0605/105254_wNWC_872246.png" alt=""><img src="http://static.oschina.net/uploads/space/2015/0605/105303_dB0v_872246.png" alt=""><img src="http://static.oschina.net/uploads/space/2015/0605/105308_hPGf_872246.png" alt=""><img src="http://static.oschina.net/uploads/space/2015/0605/105312_uQVe_872246.png" alt=""><img src="http://static.oschina.net/uploads/space/2015/0605/105319_yOIJ_872246.png" alt="">
</p>
<p>
启动是错误日志,如下:
</p>
<p>
[ERROR]-[Thread: main]-[com.jfinal.core.Config.startPlugins()]: Plugin start error: com.jfinal.ext.plugin.quartz.QuartzPlugin. <br>
org.quartz.SchedulerConfigException: Thread count must be > 0
java.lang.RuntimeException: org.quartz.SchedulerConfigException: Thread count must be > 0
at com.google.common.base.Throwables.propagate(Throwables.java:160)
at com.jfinal.ext.plugin.quartz.QuartzPlugin.startJobs(QuartzPlugin.java:77)
at com.jfinal.ext.plugin.quartz.QuartzPlugin.start(QuartzPlugin.java:64)
at com.jfinal.core.Config.startPlugins(Config.java:87)
at com.jfinal.core.Config.configJFinal(Config.java:48)
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:120)
at com.jfinal.server.JettyServer.start(JettyServer.java:64)
at com.jfinal.core.JFinal.start(JFinal.java:159)
at com.aqiaba.core.Config.main(Config.java:196)
Caused by: org.quartz.SchedulerConfigException: Thread count must be > 0
at org.quartz.simpl.SimpleThreadPool.initialize(SimpleThreadPool.java:242)
at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1288)
at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1519)
at com.jfinal.ext.plugin.quartz.QuartzPlugin.startJobs(QuartzPlugin.java:75)
... 20 more
2015-06-05 10:54:02
[WARN]-[Thread: main]-[org.eclipse.jetty.util.component.AbstractLifeCycle.setFailed()]: FAILED jfinal: java.lang.RuntimeException: Plugin start error: com.jfinal.ext.plugin.quartz.QuartzPlugin.
org.quartz.SchedulerConfigException: Thread count must be > 0
java.lang.RuntimeException: Plugin start error: com.jfinal.ext.plugin.quartz.QuartzPlugin.
org.quartz.SchedulerConfigException: Thread count must be > 0
at com.jfinal.core.Config.startPlugins(Config.java:96)
at com.jfinal.core.Config.configJFinal(Config.java:48)
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:120)
at com.jfinal.server.JettyServer.start(JettyServer.java:64)
at com.jfinal.core.JFinal.start(JFinal.java:159)
at com.aqiaba.core.Config.main(Config.java:196)
Caused by: java.lang.RuntimeException: org.quartz.SchedulerConfigException: Thread count must be > 0
at com.google.common.base.Throwables.propagate(Throwables.java:160)
at com.jfinal.ext.plugin.quartz.QuartzPlugin.startJobs(QuartzPlugin.java:77)
at com.jfinal.ext.plugin.quartz.QuartzPlugin.start(QuartzPlugin.java:64)
at com.jfinal.core.Config.startPlugins(Config.java:87)
... 18 more
Caused by: org.quartz.SchedulerConfigException: Thread count must be > 0
at org.quartz.simpl.SimpleThreadPool.initialize(SimpleThreadPool.java:242)
at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1288)
at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1519)
at com.jfinal.ext.plugin.quartz.QuartzPlugin.startJobs(QuartzPlugin.java:75)
... 20 more
2015-06-05 10:54:02
[WARN]-[Thread: main]-[org.eclipse.jetty.webapp.WebAppContext.doStart()]: Failed startup of context o.e.j.w.WebAppContext{/,file:/D:/git/aqiaba/WebContent/}
java.lang.RuntimeException: Plugin start error: com.jfinal.ext.plugin.quartz.QuartzPlugin.
org.quartz.SchedulerConfigException: Thread count must be > 0
at com.jfinal.core.Config.startPlugins(Config.java:96)
at com.jfinal.core.Config.configJFinal(Config.java:48)
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:120)
at com.jfinal.server.JettyServer.start(JettyServer.java:64)
at com.jfinal.core.JFinal.start(JFinal.java:159)
at com.aqiaba.core.Config.main(Config.java:196)
Caused by: java.lang.RuntimeException: org.quartz.SchedulerConfigException: Thread count must be > 0
at com.google.common.base.Throwables.propagate(Throwables.java:160)
at com.jfinal.ext.plugin.quartz.QuartzPlugin.startJobs(QuartzPlugin.java:77)
at com.jfinal.ext.plugin.quartz.QuartzPlugin.start(QuartzPlugin.java:64)
at com.jfinal.core.Config.startPlugins(Config.java:87)
... 18 more
Caused by: org.quartz.SchedulerConfigException: Thread count must be > 0
at org.quartz.simpl.SimpleThreadPool.initialize(SimpleThreadPool.java:242)
at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1288)
at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1519)
at com.jfinal.ext.plugin.quartz.QuartzPlugin.startJobs(QuartzPlugin.java:75)
... 20 more
这个有方案吗?遇到了同样的问题。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。