Remove the log4j configuration from webwork.properties
# override default log4j config
# you can use .properties or .xml
# if you want to use default set property to null by an empty =
Otherwise it will try to reconfigure log4j which
leads to an infinite loop as log4j tries to print to
System.out which is trapped by JBoss's config
and re-routed to log4j.
Use server/default/conf/log4j.xml to configure
webwork's logging as required.
I have changed the property files of both webwork.jar and webwork-examples.jar and have the webwork.war in the deploy directory. The war file itself doesn't refer to log4j.xml. I am still however getting the error, I don't know if it will help but have included the information from jboss:
15:55:30,536 INFO [MainDeployer] Starting deployment of package: file:/usr/local/jboss/server/default/deploy/webwork.war
15:55:34,152 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=2,context=/webwork
15:55:34,751 INFO [jbossweb] Extract jar:file:/usr/local/jboss/server/default/tmp/deploy/server/default/deploy/webwork.war/59.webwork.war!/ to /tmp/Jetty__8080___webwork/webapp
15:55:36,545 INFO [jbossweb] Started WebApplicationContext[/webwork,jar:file:/usr/local/jboss/server/default/tmp/deploy/server/default/deploy/webwork.war/59.webwork.war!/]
ERROR: invalid console appender config detected, console stream is looping
As a note I did not install log4j as I assumed (wrongly?) that I wouldn't need that package as jboss already seemingly has it. Is this a problem? Any other ideas of what could be causing this problem or what I am missing?
I still had jar files with in the WEB-INF/lib/ folder of the war. I cleared those out because I put them in my lib directory and now everything works great. Which leads to my next question, why does it seem that a problem can not be solved until two minutes after posting a dumb question about it on a forum? :P