LS FAQ
From GEANT2-JRA1 Wiki
Contents |
[edit]
Installation
[edit]
Not configured
- Q: I tried to compile the latest LS snapshot (perfSONAR-LS-src-snapshot-20060720.tar.gz), but I got the following error:
$ ant -f build-xmlls.xml build-xmlls
Buildfile: build-xmlls.xml
build-xmlls:
clean-all:
BUILD FAILED
/home/perfsonar/ant/xmlls/xmlls-java-compile-targets.xml:77: The
following error occurred while executing this line:
/home/perfsonar/ant/java-compile-targets.xml:27:
/home/perfsonar/${build} not found.
Total time: 8 seconds
- A: "ant configure-xmlls" command must be used first of all. So:
$ cd $PERFSONAR/ant $ cp build-xmlls.xml build.xml $ ant configure-xmlls $ ant build-xmlls
$ ant deploy-xmlls
[edit]
Problems
[edit]
Invocation Target Exception
- Q: I get InvocationTargetException while running SOAP client and requesting LS action.
- A: Not all required jars were copied to Axis lib directory (
$TOMCAT/webapps/axis/WEB-INF/lib). Fix this and the problem shouldn't be encountered.
[edit]
NullPointerException
- Q: While running client application (i.e.
ant ls-run-client), I get NullPointerException; why? - A: Did you follow the LS instalation guide? NullPointerException may be caused by various reasons. The most common one is that you haven't defined the path to
components.propertiesandservice.propertiesfiles in your$TOMCAT/conf/catalina.properties. Check #Step 11 - catalina.properties.
[edit]
Exist DB XML: "No such namespace for ..." problem
- Q: I get "No such namespace for [a_namespace]" exception while sending XPath requests to eXist DB XML. My Lookup Service doesn't work well because of that.
- A: Exist query language is XQuery, not XPath. XPath relies on namespace definitions from outside, but you must define namespaces if using XQuery langiage. So that you should use
declare namespace a_namespace="http://a_namespace.declaration/...";
before your XQuery/XPath expression. You may also use "*" instead of full namespace name (i.e.,
/*:element
instead of /namespace:element ), but the meaning is not always the same.
