Richard Graham wrote:
> On Mon, Aug 25, 2008 at 9:14 AM, Knut Anders Hatlen <Knut.Hatlen at sun.com> 
> wrote:
>   
>> Richard Graham <rickhg12hs at gmail.com> writes:
>>
>>     
>>>>> Now Opengrok runs, but not without error.  With this URL:
>>>>>
>>>>> http://localhost:8080/source/search?q=printk&defs=&refs=&path=&hist=
>>>>>
>>>>> The webpage shows:
>>>>>
>>>>> Error: Unknown format version: -4
>>>>>
>>>>>           
>>>> Well, not sure where this is coming from (you might grok opengrok
>>>> sources to figure it out)
>>>>
>>>> a wild guess is that lucene libraries are not the same that you used to
>>>> create the index with, so I still think your source.war is not OK
>>>>
>>>> Try to check for some help in  /usr/share/doc/opengrok-0.6/README.Fedora
>>>>
>>>> I am ccing  lkundrak at redhat.com , since he is the packager & he should
>>>> obviously fix his package ;)
>>>>
>>>> Lubomir, can you give more guidance ?
>>>>
>>>> Thanks much
>>>> L
>>>>
>>>>         
>>> FYI, I also tried the source.war from:
>>>
>>> http://www.opensolaris.org/os/project/opengrok/files/opengrok-0.6.tar.gz
>>>
>>> ... with the same results.  8-(
>>>
>>> I did have a look at  /usr/share/doc/opengrok-0.6/README.Fedora and it
>>> directs you to use the opengrok-tomcat5 package and configure it, etc.
>>>  opengrok-tomcat5 doesn't seem to exist (at least yum can't find it in
>>> the standard repos).
>>>
>>> When somebody tells you that kernel programming is hard - they're right!  
>>> 8-)
>>>
>>> I'm not a Java programmer so I'll not try to debug
>>> opengrok/glassfish/tomcat, but I am looking forward to xref clicking
>>> my way through the Linux kernel source on Fedora 9.  Additional
>>> guidance is welcome.
>>>       
>> I think Lubos is right that the error means that the indexer must have
>> used another version of Lucene than the one GlassFish uses. You should
>> try to find out where the indexer picks the Lucene jars from and make
>> sure that they have the same version as the ones in source.war. Also
>> make sure that you don't have any Lucene jars with a different version
>> in any of GlashFish's shared directories (lib/ext, or something).
>>
>> HTH,
>> --
>> Knut Anders
>>
>>     
>
> I believe you both are right. It looks like it is working now - I'll
> continue to play with it to make sure.
>
> It seems that the Fedora 9 opengrok package isn't compatible with
> glassfish or maybe the source.war's I tried.  When I performed the
> indexing with the opengrok.jar bundled in the same binary package as
> the source.war ... everything seems to work.
>
> It really would be nice if this wasn't so involved.  Or maybe I did
> this to myself - I don't know.
>   

Well, I guess this is because of packaging and fedora ... and then
because of webapps (.wars ,  lkundrak at redhat.com knew, why he didn't
package it ;) )
opengrok is not properly packaged (if you don't count the opensolaris
pkg, which only delivers correct binaries) ... I am working on debian
package, but it's not trivial.
I hope after cli enhancements to opengrok + figuring out the building of
source.war at least the debian package will be working ...

on the "kernel programming is hard" topic ... if you don't like Linux
kernel , come to Solaris, maybe you'll like it more ;)

--
L

> Thanks for your guidance!
> Rick
>   


Reply via email to