By: Michael Schwartz Account Admin 02 Apr 2015 at 3:07 p.m. CDT

4 Responses
Michael Schwartz gravatar
16:42:01 04/02/15 Runnning: /bin/su tomcat -c /usr/java/latest/bin/java -cp /home/tomcat/lib/bcprov-jdk16-1.46.jar:/home/tomcat/lib/commons-lang-2.6.jar:/home/tomcat/lib/log4j-1.2.14.jar:/home/tomcat/lib/commons-codec-1.5.jar:/home/tomcat/lib/jettison-1.3.jar:/home/tomcat/lib/oxauth-model.jar:/home/tomcat/lib/oxauth.jar org.xdi.oxauth.util.KeyGenerator 16:42:05 04/02/15 log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: /logs/oxauth_persistence_ldap_statistics.log (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:221) at java.io.FileOutputStream.<init>(FileOutputStream.java:142) at org.apache.log4j.FileAppender.setFile(FileAppender.java:289) at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163) at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:215) at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256) at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220) at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150) at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163) at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425) at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:345) at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:827) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:470) at org.apache.log4j.LogManager.<clinit>(LogManager.java:122) at org.apache.log4j.Logger.getLogger(Logger.java:117) at org.xdi.oxauth.model.util.JwtUtil.<clinit>(JwtUtil.java:84) at org.xdi.oxauth.model.crypto.signature.RSAPrivateKey.toJSONObject(RSAPrivateKey.java:57) at org.xdi.oxauth.model.crypto.Key.toJSONObject(Key.java:112) at org.xdi.oxauth.util.KeyGenerator.generateRS256Keys(KeyGenerator.java:66) at org.xdi.oxauth.util.KeyGenerator.main(KeyGenerator.java:31) log4j:ERROR Either File or DatePattern options are not set for appender [OX_PERSISTENCE_LDAP_STATISTICS_FILE]. log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: /logs/oxauth.log (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:221) at java.io.FileOutputStream.<init>(FileOutputStream.java:142) at org.apache.log4j.FileAppender.setFile(FileAppender.java:289) at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163) at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:215) at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256) at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220) at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150) at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163) at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425) at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394) at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:470) at org.apache.log4j.LogManager.<clinit>(LogManager.java:122) at org.apache.log4j.Logger.getLogger(Logger.java:117) at org.xdi.oxauth.model.util.JwtUtil.<clinit>(JwtUtil.java:84) at org.xdi.oxauth.model.crypto.signature.RSAPrivateKey.toJSONObject(RSAPrivateKey.java:57) at org.xdi.oxauth.model.crypto.Key.toJSONObject(Key.java:112) at org.xdi.oxauth.util.KeyGenerator.generateRS256Keys(KeyGenerator.java:66) at org.xdi.oxauth.util.KeyGenerator.main(KeyGenerator.java:31) log4j:ERROR Either File or DatePattern options are not set for appender [FILE].

By Michael Schwartz Account Admin 02 Apr 2015 at 5:01 p.m. CDT

Michael Schwartz gravatar
Note I saw this error on my local installation too, but certs seem to be generated ok in /etc/certs

By Yuriy Movchan staff 03 Apr 2015 at 2:48 a.m. CDT

Yuriy Movchan gravatar
https://github.com/GluuFederation/oxAuth/issues/28

By Mohib Zico Account Admin 04 Jun 2015 at 6:26 a.m. CDT

Mohib Zico gravatar
Hello Sensei / Yuriy, Do we need to keep this ticket open?

By Yuriy Movchan staff 05 Jun 2015 at 2:15 p.m. CDT

Yuriy Movchan gravatar
I've fixed it: https://github.com/GluuFederation/oxAuth/commit/f1606a20d3f5c3b21d53739b44ab17d06a62bd29 https://github.com/GluuFederation/community-edition-setup/commit/755adafc04b8e0cd73ad2363868d7c1a05cfc8f3