[opencms-dev] Can´t schedule customized Job

Florian Hopf hopf at synyx.de
Sat Jan 12 22:06:16 CET 2008


Hi,

two things you might want to try:

Celio Faria Jr schrieb:
> 2 - Package it in a jar and put this jar on the "common/lib" Tomcat
> folder;
The common/lib folder is for classes that are shared across all webapps.
Normally you would want to put your classes in the WEB-INF/lib folder of
your opencms webapp. This shouldn't really cause an error but it might
be better to be sure.
>
> CmsScheduledJobInfo csji = new CmsScheduledJobInfo();
>         CmsScheduleManager csm = new CmsScheduleManager();
>         csm.initialize(cmsObject);
>
Try to use OpenCms.getScheduleManager() which returns an already
configured manager for the current context.

HTH
Flo



More information about the opencms-dev mailing list