opengrok: HTTP Status 404 - /source/s when trying to open .cpp file via an xref
<p>Suppose I'm looking at the .cpp file's source code in the web browser. Now, I want to review the .h file included with #include in this cpp. I'm clicking on the header's file name and instead of browsing its content I'm getting the following error:</p>

<pre><code>HTTP Status 404 - /source/s

type Status report

message /source/s

description The requested resource is not available.

Apache Tomcat/7.0.67
</code></pre>

<p>I suspect that this may be related with opengrok's -w command line switch. The help for this switch says:
"Context of webapp. Default is /source. If you specify a different name, make sure to rename source.war to that name. Also FULL reindex is needed if this is changed."</p>

<p>Cannot understand what exactly does this mean.</p>

<p>I installed opengrok manually: I unpacked source.war to c:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\myapp and my sources are on drive D:\myapp. My generated grok data file is in C:\opengrok.</p>

<p>What path must I pass with -w switch to make it work?</p>

<p>Thanks.</p>