Hi,
I'm in the middle of running the sample classes and came across this.
e.g. When invoking (or other classes)
$QPID_SRC_HOME/java/client/example/target/classes$ sh runSample.sh
org.apache.qpid.example.amqpexample.direct.Listener
throws
log4j:ERROR Could not parse url
[file:/usr/share/doc/rhm-0.2/java/log4j.xml].
java.io.FileNotFoundException: /usr/share/doc/rhm-0.2/java/log4j.xml (No
such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at...........
I see line 26 of runSample.sh sets the default value of QPID_SAMPLE to
"/usr/share/doc/rhm-0.2", and line 46
sets
QPID_PARAM="$QPID_PARAM
-Dlog4j.configuration=file://$QPID_SAMPLE/java/log4j.xml",
which causes the above.
Why is this so? Why not set the default location of the log4j config
file to $QPID_HOME/etc/log4j.xml which does have such a file?
Also, should the availability of rhm be pre-assumed?
Thanks.
Suran