On 1.10.2012 17:46, Jacobo de Vera wrote:
Hi,

I have been tasked with setting up an OpenGrok instance and have been
provided a dedicated box for it. Since the box will only run this
service, I am trying to make opengrok the root context application.

On the tomcat side, I have achieved this by renaming source.war to
ROOT.war (suggestions on nicer ways to accomplish this are also
welcomed)

However, OpenGrok itself, even when using -w / in all invocations to
ser the root as the application context, doesn't seem to work, I can
never go beyond the index page without an error:

org.apache.jasper.JasperException: An exception occurred processing JSP page 
/error.jsp at line 35

32:
33:     String context = request.getContextPath();
34:     String configError = "";
35:     if (cfg.getSourceRootPath().isEmpty()) {
36:         configError = "CONFIGURATION parameter has not been configured in "
37:             + "web.xml! Please configure your webapp.";
38:     } else if (!cfg.getEnv().getSourceRootFile().isDirectory()) {
The source root is set up correctly in the config file and just to
cover everything, I simlinked it to /var/opengrok/src. With no
success.

I think this is the root cause, don't symlink, rather reconfigure the source root properly ...
(or do a(n) (overlay) mount ? )

xing the fingers
L
(I just tried 0.12-dev trunk and was able to have it as root webapp, source root is configured using OpenGrok script, but data is in default location to wars web.xml )


So, how does one go about setting OpenGrok as the root context application?

Thanks and regards,


_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss

Reply via email to