aspose file tools*
The moose likes JBoss/WildFly and the fly likes invalid console appender config detected, console stream is looping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "invalid console appender config detected, console stream is looping" Watch "invalid console appender config detected, console stream is looping" New topic
Author

invalid console appender config detected, console stream is looping

VijayKumar Tatikonda
Greenhorn

Joined: Jan 23, 2004
Posts: 1
Hi,
I am deploying an WebObjects Application on JBoss, I am getting an Error
invalid console appender config detected, console stream is looping on the console
could any one help me in this issue.
Thanks in advance..
Regards
Vijay


Vijay
Marco van Weverwijk
Greenhorn

Joined: Oct 02, 2003
Posts: 5
We solved this problem by checking if Log4J is already configured before we configure it. In Jboss Log4J is already configured on startup. In Weblogic it's not...
// We check the system property:
String log4jConfig = System.getProperty("log4j.configuration");
// And our own properties file
String log4jFile = getInitParameter("log4j-init-file");
if (log4jConfig != null && log4jConfig.length() > 0) {
//Use Systems configuration( .... -Dlogj4.configuration=/path/to/log4j.*)
System.out.println("Log4J ConfigFile: " + log4jConfig);
configureLog4j(log4jConfig);
}
else if (log4jFile != null && log4jFile.length() > 0) {
//logj4.* from web.xml
System.out.println("Log4j file (from web.xml): " + configDirectory + log4jFile);
configureLog4j(configDirectory + log4jFile);
}
else {
//no log4j.configuration found
System.out.println("Using BaseConfigurator. Please specify the log4j.configuration in the System Properties");
BasicConfigurator.configure();
}
I think this will help...
Greatz,
Marco
 
Don't get me started about those stupid light bulbs.
 
subject: invalid console appender config detected, console stream is looping