core icon indicating copy to clipboard operation
core copied to clipboard

SchedulerJobLocator points a bad LinkCheckerJob Class

Open graz1an0 opened this issue 14 years ago • 8 comments

The static getJobClassess() of the SchedulerJobLocator contains a bad LinkCheckerJob class. This cause the ClassNotFoundException if I want to schedule my own LinkCheckerJob from Scheduled Job portlet

graz1an0 avatar Nov 29 '12 10:11 graz1an0

Same as yesterday. The way to control the scheduling of the class is to do it in our config. If you need to change its logic you would need to override the class.

jtesser avatar Nov 29 '12 11:11 jtesser

Sounds good...so, if I understand, we need to extend the LinkCheckerJob class and make this class available into the Job list given me by this method (getJobClassess).

In this way I can, for example, disable the LinkCheckerJob by properties and use only this new extension.

Right?

graz1an0 avatar Nov 29 '12 11:11 graz1an0

By the way in this method there is this line

"jobsList.add("com.dotmarketing.portlets.linkchecker.quartz.LinkCheckerJob");"

that doesn't make sense because this class there isn't.

graz1an0 avatar Nov 29 '12 11:11 graz1an0

not really just create and schedule a new quartz job which can be done via a plugin. And then disable the default one.

jtesser avatar Nov 29 '12 11:11 jtesser

Jorge remove the class that doesn't exist. I think this is because the class was moved to EE Jar

jtesser avatar Nov 29 '12 11:11 jtesser

Ok, and in this way have I the possibility to schedule this new job using the portlet interface?

graz1an0 avatar Nov 29 '12 11:11 graz1an0

Yes @graz1an0 after this fix you will be able to schedule the linkcheckerjob from that portlet

dotjorgeu avatar Dec 03 '12 17:12 dotjorgeu

Saw error on job scheduler portlet when running link checker... reported here: https://github.com/dotCMS/dotCMS/issues/1703

DeanGonzalez avatar Dec 11 '12 22:12 DeanGonzalez