启动jfinal的时候调度报错,jfinal-ext作者请指点一下

luhf 发布于 2015/06/05 10:55
阅读 1K+
收藏 0

@绝望的八皮  ,想跟你请教个问题:

我已经按照给出文档里的配置好了,怎么报错了,请看配置截图。

启动是错误日志,如下:

[ERROR]-[Thread: main]-[com.jfinal.core.Config.startPlugins()]: Plugin start error: com.jfinal.ext.plugin.quartz.QuartzPlugin. 
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

加载中
0
suchfool
suchfool

这个有方案吗?遇到了同样的问题。

返回顶部
顶部