[jsword-devel] jsword-devel Digest, Vol 46, Issue 12

peter refdoc at gmx.net
Fri Mar 28 01:47:00 MST 2008


Bible modules in Linux are in one of two p;laces normally

/home/$USER/.sword

or

/usr/share/sword


You can simply unzip a module in place and the next time jsword or
libsword is called it will "know" that there is a new module.

Peter

DM Smith wrote:
> Yiguang,
> I'm on holiday this week and have limited internet connectivity. When I 
> get home, I'll take a look at your problem.
> In Him,
>     DM
> 
> Yiguang Hu wrote:
>> I would really appreciate if some one could help me
>> out here. My intention is to build a web front based
>> on jsword (similar to sword web, I may try to modify
>> sword web to make it work with jsword if that would be
>> easier). My question is how to install Bible on linux
>> without using the Bibledesktop since I don't have a
>> xwindow on the linux (the machie is remote) and I
>> don't have a xemulator on my desktop either. So that
>> the web application based on jsword could access the
>> bible/book modules.
>> Thanks
>> Yiguang
>>
>>   
>>> I looked the tomcat log file and found the
>>> following.
>>> I check the folders /root/.jsword/lucene/Sword/*
>>> and found all of them are empty.
>>>
>>> Is there any configuration file I should look at?
>>>  Do I need to download the bible module files and
>>> put
>>> it somewhere like the sword web?
>>>
>>> Thanks
>>> Yiguang
>>>
>>> Mar 22, 2008 3:54:10 PM
>>> org.apache.catalina.startup.Catalina start
>>> INFO: Server startup in 2814 ms
>>> Mar 22, 2008 3:54:32 PM
>>> org.crosswire.jsword.index.lucene.LuceneIndex
>>> activate
>>> INFO: second load failure
>>> java.io.FileNotFoundException: no segments* file
>>> found
>>> in
>>>
>>>     
>> org.apache.lucene.store.FSDirectory@/root/.jsword/lucene/Sword/KJV:
>>   
>>> files:
>>>         at
>>>
>>>     
>> org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:516)
>>   
>>>         at
>>>
>>>     
>> org.apache.lucene.index.IndexReader.open(IndexReader.java:185)
>>   
>>>         at
>>>
>>>     
>> org.apache.lucene.index.IndexReader.open(IndexReader.java:148)
>>   
>>>         at
>>>
>>>     
>> org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:48)
>>   
>>>         at
>>>
>>>     
>> org.crosswire.jsword.index.lucene.LuceneIndex.activate(LuceneIndex.java:303)
>>   
>>>         at
>>>
>>>     
>> org.crosswire.common.activate.Activator.activate(Activator.java:57)
>>   
>>>         at
>>>
>>>     
>> org.crosswire.jsword.index.lucene.LuceneIndex.checkActive(LuceneIndex.java:338)
>>   
>>>         at
>>>
>>>     
>> org.crosswire.jsword.index.lucene.LuceneIndex.find(LuceneIndex.java:200)
>>   
>>>         at
>>>
>>>     
>> org.crosswire.jsword.index.query.BaseQuery.find(BaseQuery.java:53)
>>   
>>>         at
>>>
>>>     
>> org.crosswire.jsword.index.lucene.LuceneSearcher.search(LuceneSearcher.java:86)
>>   
>>>         at
>>>
>>>     
>> org.crosswire.jsword.index.lucene.LuceneSearcher.search(LuceneSearcher.java:76)
>>   
>>>         at
>>>
>>>     
>> org.crosswire.jsword.book.basic.AbstractBook.find(AbstractBook.java:116)
>>   
>>>         at
>>>
>>>     
>> org.crosswire.jsword.book.basic.AbstractBook.find(AbstractBook.java:96)
>>   
>>>         at
>>>
>>>     
>> org.crosswire.client.webjsword.SearchController.searchandshow(SearchController.java:242)
>>   
>>>         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:597)
>>>         at
>>>
>>>     
>> org.apache.el.parser.AstValue.invoke(AstValue.java:152)
>>   
>>>         at
>>>
>>>     
>> org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
>>   
>>>         at
>>>
>>>     
>> org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)
>>   
>>>         at
>>>
>>>     
>> javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
>>   
>>>         at
>>>
>>>     
>> com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
>>   
>>>         at
>>>
>>>     
>> com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
>>   
>>>         at
>>>
>>>     
>> javax.faces.component.UICommand.broadcast(UICommand.java:383)
>>   
>>>         at
>>>
>>>     
>> javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
>>   
>>>         at
>>>
>>>     
>> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
>>   
>>>         at
>>>
>>>     
>> com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
>>   
>>>         at
>>>
>>>     
>> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
>>   
>>>         at
>>>
>>>     
>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
>>   
>>>         at
>>>
>>>     
>> com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:94)
>>   
>>>         at
>>>
>>>     
>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
>>   
>>>         at
>>>
>>>     
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>   
>>>         at
>>>
>>>     
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>   
>>>         at
>>>
>>>     
>> com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
>>   
>>> In the other log file:
>>> SEVERE: #{searchcontroller.searchandshow}:
>>> java.lang.NullPointerException
>>> javax.faces.FacesException:
>>> #{searchcontroller.searchandshow}:
>>> java.lang.NullPointerException
>>>         at
>>>
>>>     
>> com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107)
>>   
>>>         at
>>>
>>>     
>> com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
>>   
>>>         at
>>>
>>>     
>> javax.faces.component.UICommand.broadcast(UICommand.java:383)
>>   
>>>         at
>>>
>>>     
>> javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
>>   
>>>         at
>>>
>>>     
>> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
>>   
>>>         at
>>>
>>>     
>> com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
>>   
>>>         at
>>>
>>>     
>> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
>>   
>>>         at
>>>
>>>     
>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
>>   
>>>         at
>>>
>>>     
>> com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:94)
>>   
>>>         at
>>>
>>>     
>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
>>   
>>>         at
>>>
>>>     
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>   
>>>         at
>>>
>>>     
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>   
>>>         at
>>>
>>>     
>> com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
>>   
>>>         at
>>>
>>>     
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>   
>>>         at
>>>
>>>     
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>   
>>>         at
>>>
>>>     
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>   
>>>         at
>>>
>>>     
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>   
>>>         at
>>>
>>>     
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>   
>>>         at
>>>
>>>     
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>   
>>>         at
>>>
>>>     
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>   
>>>         at
>>>
>>>     
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>   
>>>         at
>>>
>>>     
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>   
>>>         at
>>>
>>>     
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>   
>>>         at
>>>
>>>     
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>   
>>>         at java.lang.Thread.run(Thread.java:619)
>>> Caused by: javax.faces.el.EvaluationException:
>>> java.lang.NullPointerException
>>>         at
>>>
>>>     
>> javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
>>   
>>>         at
>>>
>>>     
>> com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
>>   
>>>         ... 24 more
>>> Caused by: java.lang.NullPointerException
>>>         at
>>>
>>>     
>> org.crosswire.jsword.index.lucene.LuceneIndex.deactivate(LuceneIndex.java:320)
>>   
>>>         at
>>>
>>>     
> 
> 
> 
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel
B



More information about the jsword-devel mailing list