[opengrok] Difficulties with setting up multiple OpenGrok projects

Jon Wolf og at lytfyre.net
Fri Feb 20 09:26:07 PST 2009


Hello, running into a problem and was hoping someone might have an
idea what I'm doing wrong.

We currently have a single project-less opengrok configuration,
running without a configuration file (just specifying SRC and DATA
root in web.xml)

view sources has: <meta name="generator" content="OpenGrok v0.6.1
(1ef54322547a)"/>

I am now trying to convert it to multi-project.
I added the new directory below source root, and altered run.sh and
web.xml. I deleted the index, re-indexed, deployed the new version of
source.war.

xref browsing works correctly, however attempting to run any search
just produces "Error: Index database not found"

I greatly appreciate any suggestions as to what I've misconfigured.

Jon Wolf

the command lines of run.sh are now:

java -Xmx1024m -jar /home/t_griej/opengrok/bin/opengrok.jar -c
/home/t_griej/bin/ctags -s /build/grok -d /home/t_griej/opengrok/data
-P -p /mayasrc -W /home/t_griej/opengrok/data/configuration.xml

java -Xmx1024m -jar /home/t_griej/opengrok/bin/opengrok.jar -U
localhost:2424 -R /home/t_griej/opengrok/data/configuration.xml -n

the top portion of web.xml is:

  <context-param>
    <param-name>CONFIGURATION</param-name>
    <param-value>/home/t_griej/opengrok/data/configuration.xml</param-value>
    <description>Full path to the configuration file where OpenGrok can read it\
's configuration</description>
  </context-param>

  <context-param>
    <param-name>ConfigAddress</param-name>
    <param-value>localhost:2424</param-value>
    <description>An address where OpenGrok can receive new configuration</descr\
iption>
  </context-param>

  <context-param>
    <param-name>DATA_ROOT</param-name>
    <param-value>/home/t_griej/opengrok/data</param-value>
    <description>REQUIRED: Full path of the directory where data files generate\
d by OpenGrok are stored</description>
  </context-param>

  <context-param>
    <param-name>SRC_ROOT</param-name>
    <param-value>/build/grok</param-value>
    <description>REQUIRED: Full path to source tree</description>
  </context-param>

  <context-param>
    <param-name>SCAN_REPOS</param-name>
    <param-value>false</param-value>
    <description>Set this variable to true if you would like the web applicatio\
n to scan for external repositories (Mercurial)</description>
  </context-param>

  <listener>
   <listener-class>org.opensolaris.opengrok.web.WebappListener</listener-class>
  </listener>


And finally, configuration.xml's contents are:


<?xml version="1.0" encoding="UTF-8"?>
<java version="1.6.0_07" class="java.beans.XMLDecoder">
 <object class="org.opensolaris.opengrok.configuration.Configuration">
  <void property="ctags">
   <string>/home/t_griej/bin/ctags</string>
  </void>
  <void property="dataRoot">
   <string>/home/t_griej/opengrok/data</string>
  </void>
  <void property="defaultProject">
   <object id="Project0" class="org.opensolaris.opengrok.configuration.Project"\
>
    <void property="description">
     <string>mayasrc</string>
    </void>
    <void property="path">
     <string>/mayasrc</string>
    </void>
   </object>
  </void>
  <void property="projects">
   <void method="add">
    <object idref="Project0"/>
   </void>
   <void method="add">
    <object class="org.opensolaris.opengrok.configuration.Project">
     <void property="description">
      <string>mudboxsrc</string>
     </void>
     <void property="path">
      <string>/mudboxsrc</string>
     </void>
    </object>
   </void>
  </void>
  <void property="sourceRoot">
   <string>/build/grok</string>
  </void>
 </object>
</java>



More information about the opengrok-discuss mailing list