开发者社区> 问答> 正文

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

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

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

<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

展开
收起
爱吃鱼的程序员 2020-06-14 15:37:04 516 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

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

    2020-06-14 15:37:22
    赞同 展开评论 打赏
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Java Spring Boot开发实战系列课程【第16讲】:Spring Boot 2.0 实战Apache Kafka百万级高并发消息中间件与原理解析 立即下载
Java Spring Boot开发实战系列课程【第15讲】:Spring Boot 2.0 API与Spring REST Docs实战 立即下载
Java Spring Boot开发实战系列课程【第7讲】:Spring Boot 2.0安全机制与MVC身份验证实战(Java面试题) 立即下载