Wednesday, January 24, 2007

Jboss: "console stream is looping" error

This is incredibly aggrevating. I downloaded JBoss 4.0.4 and JBoss 4.0.5. Both versions fail to startup due to the following error:

ERROR: invalid console appender config detected, console stream is looping

I see postings all over the internet about this. I see postings all over the JBoss forums specifically about this, all with zero replies. It is just ridiculous that a straight off the website download doesn't even startup correctly. It is very sad that the community over at cannot help eachother out with this.

I am attempting to run these versions on my windows laptop for an experiment during my 40 minute train ride. I am betting this has something to do with it, as I haven't seen this problem before on my Linux machines. (Don't even think about blaming windows for this, it is a jboss problem).

Well, anyway, after digging around for 30 minutes I stumbled on a post that claims you shouldn't need the following hack post-jboss-3.2.1. Well, guess what, you need it in 4.0.5 as well apparently.

set JAVA_OPTS=-Dorg.jboss.logging.Log4jService.catchSystemOut=false

Or, do as I did and put it right in your run.bat file:
set JAVA_OPTS=%JAVA_OPTS% -Dorg.jboss.logging.Log4jService.catchSystemOut=false

What a pain.


funkateer said...

Thanks a lot. You saved me a lot of time and frustration. Peace.

Bram said...

This post also saved me like at least one hour of work. Thanks a lot buddy!

Devender said...

Thank you so much for posting this.

Ray Krueger said...

I'm glad Google finds my post for this quickly, it took me forever to find the answer.
I blogged it here originally so I wouldn't have to look for it again :P

Yazeed said...

Thanks for saving me time researching this issue.

Yazeed Alfawadleh

Anonymous said...

I've used JBos 4.0.3, 4.0.4, 4.0.5 and never had this problem. maybe it's an issue with the installer versus using the zip file version - I use the zip file version - I hate the installer!

Sam Brodkin said...

Thanks you saved my day

Jus said...

Thanks this worked for me as well in windows using Jboss 4.2.2.GA, this is new project hence haven't moved it to linux environment yet..
Also the install i am using is Zip version.

Ashish said...

Thanks a Lot Ray !!
I was really struggling with this one. I have configured JBoss with my Eclipse and was facing this issue.

Sylvain said...

thank you very much, it solved my problem !

maverick said...

Great help....Thanks

J.D. said...


That's funny because another problem:

ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.

actually... fixes it!

It seems that failed attempt to load it's own config with doubled Log4j Jars forces JBOSS to load safe (project config + project Jar) configuration skipping it's own Jar and log4j config.

Anonymous said...

Dude, you're a God to me. Thanks for taking the time.

SabreGuy said...

I had this error, but it was MY FAULT.
I configured my application with its own XML configuration, per the JBoss O'Reilly book, but -

I screwed up the build.xml files and was failing to actually deploy my log4j configuration files.

FWIW - the O'Reilly examples completely fail to log any error conditions when initializing log4j - the exception catch blocks are empty, and there are no else clauses to the positive cases.

Once I fixed up the O'Reilly source code to actually tell me what was happening, it was obvious where the problem was.

Very odd however that JBoss issues this "console looping" error for the simple case where a call to the DOMConfigurator was failing due to missing files.

Madhu said...

Thanks a lot.. You saved lots of my time :)

Anonymous said...

Thank you so much.

AKPillai said...

Thanks a lot. This error was causing us to not see the logs in eclipse but externally.

Suranga said...

You Saved my time a lot, thanks you very very much.
Suranga Kasthuriarachchi

Anonymous said...

You saved me!

Alcorus said...

Thank you this was usefull.

Ray Krueger said...

I absolutely cannot believe that people are still dealing with this. The post was from 2007 for shit's sake.

I'm glad folks are finding it useful at least :)

RbksNdr said...

I use it key even at 2013 year, we still have an app under JBOSS4, Thank You Ray,

but I couldn't find what catchSystemOut means? ^:)