JFinal ext cron4j

chenhai_bj 发布于 2013/11/28 17:29
阅读 1K+
收藏 0

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

你好,使用定时任务,报以下错误:

Exception in thread "cron4j::scheduler[90cd6ff363e708b2102f729e0000014293cd4b340e6a87e0]::launcher[90cd6ff363e708b239ea2de1000001429a54d4806d1fa2d5]" java.lang.NoClassDefFoundError: it/sauronsoftware/cron4j/TaskTable

cron4j的jar包也加了,不知到是什么情况?

定时任务执行也没问题,就是执行完成最后抛这个异常。


加载中
0
绝望的八皮
绝望的八皮
java.lang.NoClassDefFoundError: it/sauronsoftware/cron4j/TaskTable  意思就是没有这个Class,jar包问题么。你看你Jar包里面有这个类吗?
0
chenhai_bj
chenhai_bj

看了,确实有it/sauronsoftware/cron4j/TaskTable这个类,这个jar是放在lib中的,定时任务执行也没有问题,就是输出异常日志。

我们的系统中使用了cronlog来切割tomat的catalina.out日志,以防止过大。

这个异常是产生新的catalina.out日志时,在catalina.out中打印出来的:

Exception in thread "cron4j::scheduler[90cd6ff363e708b2102f729e0000014293cd4b340e6a87e0]::launcher[90cd6ff363e708b239ea2de100000142c37cb8007eb93bda]" Exception in thread "cron4j::scheduler[90cd6ff335e09eab102f729e00000142b80119de3cf4694c]::launcher[90cd6ff335e09eab500c05c200000142c37cb80074df9cfd]" java.lang.NoClassDefFoundError: it/sauronsoftware/cron4j/TaskTable
        at it.sauronsoftware.cron4j.MemoryTaskCollector.getTasks(Unknown Source)
java.lang.NoClassDefFoundError: it/sauronsoftware/cron4j/TaskTable
        at it.sauronsoftware.cron4j.MemoryTaskCollector.getTasks(MemoryTaskCollector.java:145)  at it.sauronsoftware.cron4j.LauncherThread.run(Unknown Source)


        at it.sauronsoftware.cron4j.LauncherThread.run(LauncherThread.java:87)
Exception in thread "cron4j::scheduler[90cd6ff35059cbda102f729e0000014293682c093bc2dd05]::launcher[90cd6ff35059cbda3238c40300000142c37cb8000e17d30c]" java.lang.NoClassDefFoundError: it/sauronsoftware/cron4j/TaskTable
        at it.sauronsoftware.cron4j.MemoryTaskCollector.getTasks(Unknown Source)
        at it.sauronsoftware.cron4j.LauncherThread.run(Unknown Source)
Exception in thread "cron4j::scheduler[90cd6ff335e09eab102f729e00000142c22e0ccc683bddd0]::launcher[90cd6ff335e09eab5270cdd200000142c37cb80037cf9c5a]" java.lang.NoClassDefFoundError: it/sauronsoftware/cron4j/TaskTable
        at it.sauronsoftware.cron4j.MemoryTaskCollector.getTasks(MemoryTaskCollector.java:145)
        at it.sauronsoftware.cron4j.LauncherThread.run(LauncherThread.java:87)
Exception in thread "cron4j::scheduler[90cd6ff335e09eab5f90a0d600000142b7ddc7220e03a73a]::launcher[90cd6ff335e09eab52b4154100000142c37cb8007d05234f]" java.lang.NoClassDefFoundError: it/sauronsoftware/cron4j/TaskTable
        at it.sauronsoftware.cron4j.MemoryTaskCollector.getTasks(MemoryTaskCollector.java:145)
        at it.sauronsoftware.cron4j.LauncherThread.run(LauncherThread.java:87)

2013-12-06 00:00:00

不清楚是否和cronlog有关系,我看了一下cronlog好像不是java写的,应该不会用到it/sauronsoftware/cron4j/TaskTable这个类


Mr.CT
Mr.CT
回复 @绝望的八皮 : 我也报这个错误,开始还好好的/
绝望的八皮
绝望的八皮
难道这2个有冲突。。你分别单独用看是否ok呢。
返回顶部
顶部