Update: if you are using JBoss EAP 6 or AS 7.1.2+ and not getting much logging, it may help to specify the system property -Dorg.jboss.as.logging.per-deployment=false
: https://stackoverflow.com/a/14575830/14379
The problem is that "Error listenerStart" is a very generic error message. It is supposed to be preceded by other, more helpful error messages, but in some cases it isn't.
Other people have solved the logging problem by removing log4j.properties
from the war file or a jar inside it, so try leaving out log4j.properties
when deploying on JBoss AS 7.
In my case, there was no log4j.properties
to remove. The only workaround I have found is to set a breakpoint in org.apache.catalina.core.StandardContext.contextListenerStart()
where it calls getLogger().error()
, and then run JBoss in debug mode while deploying my war file. Then I can inspect the Throwable
to see what went wrong.
In Eclipse, I have configured a Debug Detail Formatter (in Preferences) for java.lang.Throwable
which returns the stack trace:
java.io.StringWriter sw = new java.io.StringWriter();
this.printStackTrace(new java.io.PrintWriter(sw));
return sw.toString();