<DIV id=RTEContent> </DIV>  <DIV>Hi,</DIV>  <DIV> </DIV>  <DIV>I need to have a scheduled task which collect some XML files and  use their contents. So I make a collector in launch method of a class which implements I_CmsScheduledJob.</DIV>  <DIV> </DIV>  <DIV>But when I try to run it, CmsVfsResourceNotFoundException happens. Although I can run this simple code in a jsp file and works fine, but I have problem to run it in a java class.</DIV>  <DIV> </DIV>  <DIV>error likes: </DIV>  <DIV>org.opencms.file.CmsVfsResourceNotFoundException: Error reading resource from path "/test/modules/news/".<BR> at org.opencms.file.CmsVfsResourceNotFoundException.createException(CmsVfsResourceNotFoundException.java:78)<BR> at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:213)<BR> at org.opencms.db.CmsDbContext.report(CmsDbContext.java:197)<BR> at org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:3838)<BR> at
 org.opencms.file.CmsObject.readResource(CmsObject.java:2658)<BR> at org.opencms.file.CmsObject.readResources(CmsObject.java:2694)<BR> at org.opencms.file.collectors.CmsDefaultResourceCollector.getAllInFolder(CmsDefaultResourceCollector.java:309)<BR> at org.opencms.file.collectors.CmsDefaultResourceCollector.getResults(CmsDefaultResourceCollector.java:177)<BR> at org.opencms.scheduler.jobs.CmsNewsletterJob.launch(CmsNewsletterJob.java:38)<BR> at org.opencms.scheduler.CmsScheduleManager.execute(CmsScheduleManager.java:171)<BR> at org.quartz.core.JobRunShell.run(JobRunShell.java:191)<BR> at org.opencms.scheduler.CmsSchedulerThread.run(CmsSchedulerThread.java:123)<BR>Caused by: org.opencms.file.CmsVfsResourceNotFoundException: Unable to read resource "/test/modules/news".<BR> at org.opencms.db.generic.CmsVfsDriver.readResource(CmsVfsDriver.java:1431)<BR> at org.opencms.db.CmsDriverManager.readResource(CmsDriverManager.java:5535)<BR> at
 org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:5589)<BR> at org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:3836)<BR> ... 8 more</DIV>  <DIV> </DIV>  <DIV> </DIV>  <DIV>my code is as simple as:</DIV>  <DIV>String param="/test/modules/news/"+"|xmlcontent|10";<BR>I_CmsResourceCollector collector = OpenCms.getResourceManager().getContentCollector("allInFolder");<BR>List m_collectorResult = collector.getResults(cms, "allInFolder",param);</DIV>  <DIV><BR>How should I have the 'param'?<BR>Would you please tell me what is wrong with me?</DIV>  <DIV><BR>How to use macro such as using it in contentload tag in my code? I mean how I can have something like 'news_${number}.html' in a java class?</DIV>  <DIV><BR>Regards,<BR>Farnaz Fotrousi.</DIV>  <DIV> </DIV><p>
                <hr size=1>Do you Yahoo!?<br> 
With a free 1 GB, there's more in store with <a href="http://us.rd.yahoo.com/mail_us/taglines/mailstorage/*http://mail.yahoo.com/">Yahoo! Mail.</a>