Opengrok is installed in C:\Program Files\MyInstallations\OpenGrok\bin
I could run Opengrok with the following 
java -Xmx1524m -jar opengrok.jar -W "..\data\configuration.xml" -P -S -v -s 
"..\source" -d "..\data"
I now tried to configure the Opengrok with TomCat
1. Copied OpenGrok in the directory: Tomcat\Webapps 
2. Copied the web.xml in the directory Tomcat 5.5\webapps\Opengrok\WEB-INF
Following is the content of the web.xml
<context-param>
    <param-name>CONFIGURATION</param-name>
    <param-value>C:\Program 
Files\MyInstallations\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</description>
  </context-param>
  
  <!-- context-param>
    <param-name>DATA_ROOT</param-name>
    <param-value>C:\Program Files\MyInstallations\OpenGrok\data</param-value>
    <description>REQUIRED: Full path of the directory where data files 
generated by OpenGrok are stored</description>
  </context-param>

  <context-param>
    <param-name>SRC_ROOT</param-name>
    <param-value>C:\Program Files\MyInstallations\OpenGrok\source</param-value>
    <description>REQUIRED: Full path to source tree</description>
  </context-param>

3. When I open the browser with http://localhost:8080/Opengrok/ the page opens 
with the project displayed correctly

4. When I enter a string and click "Search" button, it shows the following error
Error: DATA_ROOT parameter in web.xml does not exist or is not a directory!

How to rectify this?
 
 
This message posted from opensolaris.org

Reply via email to