% uname -a
SunOS mercury 5.10 Generic_127128-11 i86pc i386 i86pc
That's Solaris 10u5.
Installed Tomcat from Coolstack. That's Tomcat 5.5.23. Tomcat works.
% java -version
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode, sharing)
Indexer service for OpenGrok is configured to use SMF. It works, because the
Standalone Swing Application works, and I have full index functionality as far
as I can tell.
*If* web.xml configuration points at a non-existant configuration.xml, the
web-app starts but obviously doesn't work (SRC_ROOT parameter in web.xml does
not point to a valid directory! Please configure your webapp.).
*If* web.xml points to a *valid* configuration.xml (made by java -jar
/opengrok/bin/opengrok.jar -W /opengrok/stage1/configuration.xml -c
/path/to/ctags -P -S -v -s /opengrok/stage1/source -d /opengrok/stage1/data)
the Web-App doesn't start. Error in Tomcat log is:
Apr 24, 2008 8:35:50 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of
class org.opensolaris.opengrok.web.WebappListener
java.lang.NoClassDefFoundError: org/tigris/subversion/javahl/ClientException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
at java.lang.Class.getMethod0(Class.java:2642)
at java.lang.Class.getMethod(Class.java:1579)
at sun.reflect.misc.MethodUtil.getMethod(MethodUtil.java:55)
at java.beans.ReflectionUtils.findPublicMethod(ReflectionUtils.java:127)
at java.beans.ReflectionUtils.findMethod(ReflectionUtils.java:230)
at java.beans.ReflectionUtils.getMethod(ReflectionUtils.java:360)
at java.beans.Statement.invoke(Statement.java:184)
at java.beans.Expression.getValue(Expression.java:98)
at com.sun.beans.MutableExpression.getValue(ObjectHandler.java:400)
at com.sun.beans.ObjectHandler.getValue(ObjectHandler.java:106)
at com.sun.beans.ObjectHandler.eval(ObjectHandler.java:128)
at com.sun.beans.ObjectHandler.startElement(ObjectHandler.java:230)
at ...
I think it is because OpenGrok (actually Java) can't find subversion java
bindings (that are installed in /opt/csw/lib/svn).
In smf's manifest I have:
< envvar name="LD_LIBRARY_PATH" value="/opt/csw/lib/svn/"/ > (spaces added to
render correctly)
for it to work correctly. Actually, if I run on the command line java -jar
/opengrok/bin/opengrok.jar -W /opengrok/stage1/configuration.xml -c
/path/to/ctags -P -S -v -s /opengrok/stage1/source -d /opengrok/stage1/data I
have to set the LD_LIBRARY_PATH to a propper value so that OpenGrok can
understand .svn .
So my question is where can I set something related to svn Java bindings so
that the Web-App can work correctly?
Thanks in advance.
This message posted from opensolaris.org