[opencms-dev] Problem with Lucene 1.5 ..........

M Butcher mbutcher at grcomputing.net
Tue May 25 17:59:01 CEST 2004


Sounds like either a problem with the path or a problem with 
permissions. Your cron config looks correct (assuming the path to 
lucene.xml is right).

Perhaps you should try including the lucene information in the 
registry.xml file.

Matt

Mithun P R wrote:
> 
> Hi,
>         I have imported the module Lucene 1.5. But I am not able to run 
> it. Please can anyone tell me what the problem is ???
> 
> 
> The new xml file I created is *lucene.xml ( 
> $TOMCAT_HOME/webapps/opencms/WEB-INF/config/lucene.xml )*
> __________________________________________________________________________________________________________________ 
> 
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <registry>
>     <system>
> 
>         <luceneSearch>
>                
>            <mergeFactor>100000</mergeFactor>
>            <permCheck>true</permCheck>
>        
>                
>            <indexDir>D:\lucene\TBOKCMS</indexDir>
>                
>           
>  <analyzer>org.apache.lucene.analysis.standard.StandardAnalyzer</analyzer>
>          
>                
>            <subsearch>true</subsearch>        
>        
>            <project>online</project>
>        
>            <docFactories>
>        
>                <docFactory enabled="true" type="page">
>                 
>  <class>net.grcomputing.opencms.search.lucene.PageDocument</class>
>                </docFactory>
>        
>                <docFactory enabled="true" type="plain">
>                   <fileType name="plaintext">
>                     <extension>.txt</extension>
>                     
> <class>net.grcomputing.opencms.search.lucene.PlainDocument</class>
>                   </fileType>
>                   <fileType name="taggedtext">
>                     <extension>.html</extension>
>                     <extension>.htm</extension>
>                     <extension>.xml</extension>
>                    
>                     
> <class>net.grcomputing.opencms.search.lucene.TaggedPlainDocument</class>
>                   </fileType>
>                </docFactory>
>                
>                <docFactory enabled="true" type="binary">
>                          <fileType name="Word">
>                     <extension>.doc</extension>
>                     
> <class>net.grcomputing.opencms.search.lucene.WordDocument</class>
>                   </fileType>
>                   <fileType name="PDF">
>                     <extension>.pdf</extension>
>                     
> <class>net.grcomputing.opencms.search.lucene.PDFDocument</class>
>                   </fileType>
>                 </docFactory>                                        
>        
>        
>                <docFactory enabled="false" type="jsp">
>                 
>  <class>net.grcomputing.opencms.search.lucene.JspDocument</class>
>                </docFactory>
>        
>                    <!-- For the news module. Enable if you use news -->
>                <docFactory enabled="false" type="news">
>                 
>  <class>net.grcomputing.opencms.search.lucene.NewsDocument</class>
>                </docFactory>
>        
>                    <!-- For the forum module. Enable if you use forums. -->
>                <docFactory enabled="false" type="forum">
>                 
>  <class>de.wfnetz.opencms.modules.forum.ContributionDocument</class>
>                </docFactory>
>                            
>                <docFactory enabled="false" type="XML Template"/>
>            </docFactories>
>            
>                
>            <directories>
>                <directory location="/">
>                  <section>Root</section>
>                  <subsearch>true</subsearch>
>                </directory>
>            </directories>
>        
>            
>            <contentDefinitions>
>                <contentDefinition type="news">
>                 
>  <class>com.opencms.modules.homepage.news.NewsContentDefinition</class>
>                 
>  <initClass>net.grcomputing.opencms.search.lucene.NewsInitialization</initClass> 
> 
>                  <listMethod name="getNewsList">
>                    <param type="java.lang.Integer">1</param>
>                    <param type="java.lang.String">-1</param>
>                  </listMethod>
>                  <page uri="/news.html?__element=entry">
>                    <param method="getIntId" name="newsid"/>
>                  </page>
>                </contentDefinition>
>                <contentDefinition type="forum">
>                 
>  <class>de.wfnetz.opencms.modules.forum.ContributionContentDefinition</class> 
> 
>                  <listMethod name="getSortedList">
>                    <param type="java.lang.String"/>
>                  </listMethod>
>                  <page 
> uri="/forum.html?forumtemplate=viewcontributionentry">
>                    <param method="getId" name="conid"/>
>                  </page>
>                </contentDefinition>
>            </contentDefinitions>
>         </luceneSearch>
> 
>     </system>
> </registry>
>        
> __________________________________________________________________________________________________________________ 
> 
> 
> Then i make a task in *Scheduled Tasks*
> 
> 26 9 * * * mithun Administrators 
> net.grcomputing.opencms.search.lucene.CronIndexManager 
> "createIndex=true,registry=D:\Tomcat-4.0.4\webapps\opencms\WEB-INF\config\lucene.xml" 
> 
> 
> I also tried
> 26 9 * * * mithun Administrators 
> net.grcomputing.opencms.search.lucene.CronIndexManager 
> "createIndex=true,registry=config/lucene.xml"
> 26 9 * * * mithun Administrators 
> net.grcomputing.opencms.search.lucene.CronIndexManager 
> "createIndex=true,registry=WEB-INF/config/lucene.xml"
> 
> __________________________________________________________________________________________________________________ 
> 
> 
> *The error I get is given below :*
> 
> [25.05.2004 09:26:09] <opencms_cronscheduler> Starting job for 
> com.opencms.core.CmsCronEntry{26 9 * * * mithun Administrators 
> net.grcomputing.opencms.search.lucene.CronIndexManager 
> "createIndex=true,registry=D:\Tomcat-4.0.4\webapps\opencms\WEB-INF\config\lucene.xml"} 
> 
> 
> [25.05.2004 09:26:10] <opencms_cronscheduler> Error running job for 
> com.opencms.core.CmsCronEntry{26 9 * * * mithun Administrators 
> net.grcomputing.opencms.search.lucene.CronIndexManager 
> "createIndex=true,registry=D:\Tomcat-4.0.4\webapps\opencms\WEB-INF\config\lucene.xml"} 
> 
> Error: com.opencms.core.CmsException: 34 Registry error. Detailed error: 
> couldn't init registry.
> 
> root cause was java.io.FileNotFoundException: 
> D:\Tomcat-4.0.4\webapps\opencms\WEB-INF\config\lucene.xml" (The 
> filename, directory name, or volume label syntax is incorrect)
>         at com.opencms.file.CmsRegistry.<init>(CmsRegistry.java:184)
>         at 
> net.grcomputing.opencms.search.lucene.SearchParameters.<init>(Unknown 
> Source)
>         at 
> net.grcomputing.opencms.search.lucene.IndexManager.<init>(Unknown Source)
>         at 
> net.grcomputing.opencms.search.lucene.CronIndexManager.launch(Unknown 
> Source)
>         at 
> com.opencms.core.CmsCronScheduleJob.run(CmsCronScheduleJob.java:68)
>  >-----------
>  >Root cause:
>  >java.io.FileNotFoundException: 
> D:\Tomcat-4.0.4\webapps\opencms\WEB-INF\config\lucene.xml" (The 
> filename, directory name, or volume label syntax is incorrect)
>  >        at java.io.FileInputStream.open(Native Method)
>  >        at java.io.FileInputStream.<init>(FileInputStream.java:103)
>  >        at com.opencms.file.CmsRegistry.<init>(CmsRegistry.java:180)
>  >        at 
> net.grcomputing.opencms.search.lucene.SearchParameters.<init>(Unknown 
> Source)
>  >        at 
> net.grcomputing.opencms.search.lucene.IndexManager.<init>(Unknown Source)
>  >        at 
> net.grcomputing.opencms.search.lucene.CronIndexManager.launch(Unknown 
> Source)
>  >        at 
> com.opencms.core.CmsCronScheduleJob.run(CmsCronScheduleJob.java:68)
> 
> java.io.FileNotFoundException: 
> D:\Tomcat-4.0.4\webapps\opencms\WEB-INF\config\lucene.xml" (The 
> filename, directory name, or volume label syntax is incorrect)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:103)
>         at com.opencms.file.CmsRegistry.<init>(CmsRegistry.java:180)
>         at 
> net.grcomputing.opencms.search.lucene.SearchParameters.<init>(Unknown 
> Source)
>         at 
> net.grcomputing.opencms.search.lucene.IndexManager.<init>(Unknown Source)
>         at 
> net.grcomputing.opencms.search.lucene.CronIndexManager.launch(Unknown 
> Source)
>         at 
> com.opencms.core.CmsCronScheduleJob.run(CmsCronScheduleJob.java:68)
> 
> __________________________________________________________________________________________________________________ 
> 
> 
> Warm regards
> Mithun




More information about the opencms-dev mailing list