runSamples script uses incorrect log4j.xml file location
--------------------------------------------------------

                 Key: QPID-968
                 URL: https://issues.apache.org/jira/browse/QPID-968
             Project: Qpid
          Issue Type: Bug
          Components: Java Client
         Environment: Ubuntu 7.10, JDK 1.5.0_09
            Reporter: Suran Jayathilaka
            Priority: Minor


The runSamples.sh script in the         
$QPID_SRC_HOME/java/client/example/src/main/java             folder uses a 
default value of 
"/usr/share/doc/rhm-0.2"  
for the QPID_SAMPLE variable. Also, VM parameter for log4j config file is set 
as 

QPID_PARAM="$QPID_PARAM 
-Dlog4j.configuration=file://$QPID_SAMPLE/java/log4j.xml". (line 46)

This causes the sample classes to throw an exception

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...........

This log4j config file should be set to be read from the same folder as 
runSample.sh or $QPID_HOME/etc IMHO.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to