powered by Jive Software

Log4j could not find the log file to append

This occurs when I run the openfire with ./openfire start.

And in the script,the openfireHome is correctly set.And just log4j cannot reconigze the openfireHome system property.

The openfire itself works fine.

If I run the openfire with sh openfire.sh,then both openfire and log4j reconigze the openfireHome correctly.

The error:

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /logs/debug.log (No such file or directory (errno:2))

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(FileOutputStream.java:177)

at java.io.FileOutputStream.(FileOutputStream.java:102)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:17 6)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:191)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:523)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1001)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:867)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:773)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:483)

at org.apache.log4j.LogManager.(LogManager.java:127)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:148)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at java.lang.Class.newInstance0(Class.java:359)

at java.lang.Class.newInstance(Class.java:312)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)

at com.install4j.runtime.Launcher.main(Unknown Source)

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /logs/info.log (No such file or directory (errno:2))

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(FileOutputStream.java:177)

at java.io.FileOutputStream.(FileOutputStream.java:102)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:17 6)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:191)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:523)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1001)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:867)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:773)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:483)

at org.apache.log4j.LogManager.(LogManager.java:127)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:148)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at java.lang.Class.newInstance0(Class.java:359)

at java.lang.Class.newInstance(Class.java:312)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)

at com.install4j.runtime.Launcher.main(Unknown Source)

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /logs/warn.log (No such file or directory (errno:2))

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(FileOutputStream.java:177)

at java.io.FileOutputStream.(FileOutputStream.java:102)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:17 6)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:191)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:523)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1001)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:867)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:773)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:483)

at org.apache.log4j.LogManager.(LogManager.java:127)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:148)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at java.lang.Class.newInstance0(Class.java:359)

at java.lang.Class.newInstance(Class.java:312)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)

at com.install4j.runtime.Launcher.main(Unknown Source)

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /logs/error.log (No such file or directory (errno:2))

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(FileOutputStream.java:177)

at java.io.FileOutputStream.(FileOutputStream.java:102)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:17 6)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:191)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:523)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1001)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:867)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:773)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:483)

at org.apache.log4j.LogManager.(LogManager.java:127)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:148)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at java.lang.Class.newInstance0(Class.java:359)

at java.lang.Class.newInstance(Class.java:312)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)

at com.install4j.runtime.Launcher.main(Unknown Source)

Aug 2, 2011 5:49:27 PM com.ifsoft.redfire.PacketHandler startPacketHandler

INFO: Starting PacketHandler

OF-640 , will be fixed in 3.9.2 release.