OK, the example config files are here:
http://tinyurl.com/s6tok

And here is the README.txt

README for rollertask

rollertask.sh is a script that can be used to run the Roller tasks. Because
rollertask.sh runs outside of the Roller application, you have to put some
files into place before you can run it.

Here are the steps I used to setup rollertask.sh to run on my UNIX based system.

1) Create a rollertask directory from which you'll run rollertask.sh
  For example, /usr/local/rollertask

2) Copy the example config files in this directory into the rollertask directory
     hibernate.cfg.xml
     jspwiki.properties
     log4j.properties
     rollerRuntimeConfigDefs.xml
     rollertask.sh
     technorati.license

3) Set the correct paths in rollertask.sh
  Set these environment variables to point to the right places:
     JAVA_HOME=/usr/local/jdk1.5
     CATALINA_HOME=/usr/local/tomcat
     ROLLER_HOME=/usr/local/apache-roller-3.0-incubating/webapp/roller
     ROLLER_CONFIG=${CATALINA_HOME}/common/classes/roller-custom.properties

4) Configure the database connection
  Edit the hibernate.cfg.xml file to set your database connection info

5) For the (optional) Planet RefreshEntriesTask
  If you use the JSPWiki plugin (from roller.dev.java.net), then edit the
  jspwiki.properties task to set the URL of your wiki.

6) For the (optional) Planet TechnoratiRankingsTask
  You'll need to enter your Technorati API license key in the file
  technorati.license.

7) Create a cron entry for each task you run.
  For example here are cron entries for running the RefreshEntriesTask
  every 30 minutes and the Technorati rankings task every night.

     30 * * * * (cd /usr/local/rollertask.sh; ./rollertask.sh
org.apache.roller.ui.core.tasks.RefreshEntriesTask >>
~/logs/planet.log)

     0 0 * * * (cd /usr/local/rollertask.sh; ./rollertask.sh
org.apache.roller.ui.core.tasks.TechnoratiRankings >>
~/logs/rankings.log)


Hope that helps...

-Dave





On 8/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Thanks - it also appeared that the set of .jars listed in the example script 
had some that may been from a the pre-Apache release and/or otherwise no longer 
a part of the project? (there were a couple .jars in the example script 
classpath list that weren't in the Roller WEB-INF/lib directory)
-- Steve

>-----Original Message-----
>From: Dave Johnson [mailto:[EMAIL PROTECTED]
>Sent: Thursday, August 31, 2006 12:54 PM
>To: [email protected]
>Subject: Re: SyncWebsitesTask cron job
>
>We need some more docs for running those tasks. I'll document my setup
>in the examples directory before the 3.0 release -- they should be
>helpful to you even if you're using an earlier rev.
>
>- Dave
>
>
>
>On 8/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> Hi,
>> I'm working on getting the planet task to run & get the following; 
sugggestions welcome (do I need to provide a param to tell it which hibernate 
configuration file to use?). Thanks! -- Steve
>> org.apache.roller.presentation.planet.SyncWebsitesTask
>> [INFO] Environment - Hibernate 3.1.3
>> [INFO] Environment - hibernate.properties not found
>> [INFO] Environment - using CGLIB reflection optimizer
>> [INFO] Environment - using JDK 1.4 java.sql.Timestamp handling
>> [INFO] Configuration - configuring from resource: /hibernate.cfg.xml
>> [INFO] Configuration - Configuration resource: /hibernate.cfg.xml
>> [ERROR] RollerFactory - Error instantiating 
org.apache.roller.business.hibernate.HibernateRollerImpl 
<java.lang.reflect.InvocationTargetException>java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at org.apache.roller.model.RollerFactory.setRoller(RollerFactory.java:103)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.main(SyncWebsitesTask.java:59)
>> Caused by: org.apache.roller.RollerException
>> at 
org.apache.roller.business.hibernate.HibernateRollerImpl.<init>(HibernateRollerImpl.java:73)
>> at 
org.apache.roller.business.hibernate.HibernateRollerImpl.instantiate(HibernateRollerImpl.java:84)
>> ... 6 more
>> [FATAL] RollerFactory - Failed to instantiate fallback roller impl 
<java.lang.Exception: Doh! Couldn't instantiate a roller class>java.lang.Exception: 
Doh! Couldn't instantiate a roller class
>> at org.apache.roller.model.RollerFactory.setRoller(RollerFactory.java:130)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.main(SyncWebsitesTask.java:59)
>> java.lang.NullPointerException
>> at java.util.Properties$LineReader.readLine(Properties.java:365)
>> at java.util.Properties.load(Properties.java:293)
>> at org.apache.roller.config.RollerConfig.<clinit>(RollerConfig.java:64)
>> at org.apache.roller.model.RollerFactory.getRoller(RollerFactory.java:68)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.main(SyncWebsitesTask.java:62)
>> [INFO] Configuration - configuring from resource: /hibernate.cfg.xml
>> [INFO] Configuration - Configuration resource: /hibernate.cfg.xml
>> [ERROR] RollerFactory - Error instantiating 
org.apache.roller.business.hibernate.HibernateRollerImpl 
<java.lang.reflect.InvocationTargetException>java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at org.apache.roller.model.RollerFactory.setRoller(RollerFactory.java:103)
>> at org.apache.roller.model.RollerFactory.getRoller(RollerFactory.java:72)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.main(SyncWebsitesTask.java:62)
>> Caused by: org.apache.roller.RollerException
>> at 
org.apache.roller.business.hibernate.HibernateRollerImpl.<init>(HibernateRollerImpl.java:73)
>> at 
org.apache.roller.business.hibernate.HibernateRollerImpl.instantiate(HibernateRollerImpl.java:84)
>> ... 7 more
>> [FATAL] RollerFactory - Failed to instantiate fallback roller impl 
<java.lang.Exception: Doh! Couldn't instantiate a roller class>java.lang.Exception: 
Doh! Couldn't instantiate a roller class
>> at org.apache.roller.model.RollerFactory.setRoller(RollerFactory.java:130)
>> at org.apache.roller.model.RollerFactory.getRoller(RollerFactory.java:72)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.main(SyncWebsitesTask.java:62)
>> [INFO] Configuration - configuring from resource: /hibernate.cfg.xml
>> [INFO] Configuration - Configuration resource: /hibernate.cfg.xml
>> [ERROR] RollerFactory - Error instantiating 
org.apache.roller.business.hibernate.HibernateRollerImpl 
<java.lang.reflect.InvocationTargetException>java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at org.apache.roller.model.RollerFactory.setRoller(RollerFactory.java:103)
>> at org.apache.roller.model.RollerFactory.getRoller(RollerFactory.java:72)
>> at 
org.apache.roller.config.RollerRuntimeConfig.getProperty(RollerRuntimeConfig.java:67)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.syncWebsites(SyncWebsitesTask.java:83)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.run(SyncWebsitesTask.java:74)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.main(SyncWebsitesTask.java:63)
>> Caused by: org.apache.roller.RollerException
>> at 
org.apache.roller.business.hibernate.HibernateRollerImpl.<init>(HibernateRollerImpl.java:73)
>> at 
org.apache.roller.business.hibernate.HibernateRollerImpl.instantiate(HibernateRollerImpl.java:84)
>> ... 10 more
>> [FATAL] RollerFactory - Failed to instantiate fallback roller impl 
<java.lang.Exception: Doh! Couldn't instantiate a roller class>java.lang.Exception: 
Doh! Couldn't instantiate a roller class
>> at org.apache.roller.model.RollerFactory.setRoller(RollerFactory.java:130)
>> at org.apache.roller.model.RollerFactory.getRoller(RollerFactory.java:72)
>> at 
org.apache.roller.config.RollerRuntimeConfig.getProperty(RollerRuntimeConfig.java:67)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.syncWebsites(SyncWebsitesTask.java:83)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.run(SyncWebsitesTask.java:74)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.main(SyncWebsitesTask.java:63)
>> [WARN] RollerRuntimeConfig - Trouble accessing property: site.absoluteurl 
<java.lang.NullPointerException>java.lang.NullPointerException
>> at 
org.apache.roller.config.RollerRuntimeConfig.getProperty(RollerRuntimeConfig.java:67)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.syncWebsites(SyncWebsitesTask.java:83)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.run(SyncWebsitesTask.java:74)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.main(SyncWebsitesTask.java:63)
>> [ERROR] SyncWebsitesTask - ERROR: cannot sync websites with Planet Roller - 
absolute URL not specified in Roller Config
>> [ERROR] SyncWebsitesTask - ERROR ranking subscriptions 
<java.lang.NullPointerException>java.lang.NullPointerException
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.rankSubscriptions(SyncWebsitesTask.java:168)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.run(SyncWebsitesTask.java:75)
>> at 
org.apache.roller.presentation.planet.SyncWebsitesTask.main(SyncWebsitesTask.java:63)
>>
>>
>>
>>
>



Reply via email to