1 Reply Latest reply on May 4, 2012 6:06 PM by Joe Piotrowski

    log4j:ERROR Could not read configuration file [log4j.properties].

    Joe Piotrowski

      I'm trying to run the oel_downloader.sh and getting the following error in the error.log file:


      [root@patchserver patch]# cat error.log

      log4j:ERROR Could not read configuration file [log4j.properties].

      java.io.FileNotFoundException: log4j.properties (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 org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:316)

              at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:342)

              at com.bmc.sa.patchfeed.downloader.DownloaderMain.main(Unknown Source)

      log4j:ERROR Ignoring configuration file [log4j.properties].

      log4j:WARN No appenders could be found for logger (org.apache.commons.httpclient.HttpClient).

      log4j:WARN Please initialize the log4j system properly.


      This is an Oracle Enterprise Linux 5.5 server. I installed Java 1.6 via "yum install java" command. Initially I was getting java not found errors. So I moved the /jre and /libs folders that came with the download scripts into the same folder as my script. The java not found errors went away, but the script still isn't working.