I am using JBoss 7. It is spring hibernate application. I am getting
ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Error listenerStart
when I restart my JBoss. Earlier I have this issue in tomcat but it is resolved by adding logging.porpeties in classes folder. I am able to see which listener is causing issue in tomcat. But in JBoss I don’t have any clue how to fix it.
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/14379The 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.propertiesfrom the war file or a jar inside it, so try leaving outlog4j.propertieswhen deploying on JBoss AS 7.In my case, there was no
log4j.propertiesto remove. The only workaround I have found is to set a breakpoint inorg.apache.catalina.core.StandardContext.contextListenerStart()where it callsgetLogger().error(), and then run JBoss in debug mode while deploying my war file. Then I can inspect theThrowableto see what went wrong.In Eclipse, I have configured a Debug Detail Formatter (in Preferences) for
java.lang.Throwablewhich returns the stack trace: