AnsweredAssumed Answered

SEVERE: Error listenerStart how to get a stack trace

Question asked by taiko on Aug 26, 2013
Latest reply on Sep 4, 2013 by abarisone
Hello, I am configuring custom types, and every time there's a mistake in one of my files, the only error I get is :
SEVERE: Error listenerStart


With no visible stack trace.

I know the problem is that Catalina log is not configured properly, but I didn't managed to get it working.

(I am currently trying to make the log more explicit, not to fix the error that caused the initial error)

I have tried editing some files to lower the log level, but to no avail :
/opt/alfresco-4.2.c/java/jre/lib/logging.properties
/opt/alfresco-4.2.c/tomcat/conf/logging.properties
/opt/alfresco-4.2.c/tomcat/webapps/alfresco/WEB-INF/classes/logging.properties
/opt/alfresco-4.2.c/tomcat/webapps/share/WEB-INF/classes/logging.properties (which I created)



Do you know how I can get my log to display the entire stack trace instead of just an error message?

Alfresco 4.2.c
Tomcat 7.0.30
Plugin used : mdbc
Ubuntu

Thanks in advance for your help !

(attached the tomcat/webapps/alfresco/WEB-INF/classes/log4j.property, the tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/mdbc/log4j.property and the tomcat/webapps/share/WEB-INF/classes/log4j.property
even though I don't have log4j.jar on my machine, so I guess they're not used)

/opt/alfresco-4.2.c/tomcat/webapps/alfresco/WEB-INF/classes/logging.properties

handlers = java.util.logging.ConsoleHandler

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

org.activiti.level = FATAL
#Uncomment this to log schema creation statements from Activiti
#org.activiti.engine.impl.db.DbSqlSession.level = FINE

org.apache.catalina.core.ContainerBase.[Catalina].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].handlers = java.util.logging.ConsoleHandler



/opt/alfresco-4.2.c/tomcat/conf/logging.properties

handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandl$

.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

1catalina.org.apache.juli.FileHandler.level = INFO #FINE
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = FINE
2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.

3manager.org.apache.juli.FileHandler.level = FINE
3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
3manager.org.apache.juli.FileHandler.prefix = manager.

4host-manager.org.apache.juli.FileHandler.level = FINE
4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
4host-manager.org.apache.juli.FileHandler.prefix = host-manager.

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter


############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileH$

# For example, set the org.apache.catalina.util.LifecycleBase logger to log
# each component that extends LifecycleBase changing state:
#org.apache.catalina.util.LifecycleBase.level = FINE

# To see debug messages in TldLocationsCache, uncomment the following line:
#org.apache.jasper.compiler.TldLocationsCache.level = FINE

org.apache.catalina.core.ContainerBase.[Catalina].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].handlers = java.util.logging.ConsoleHandler



/opt/alfresco-4.2.c/tomcat/webapps/share/WEB-INF/classes/logging.properties

org.apache.catalina.core.ContainerBase.[Catalina].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].handlers = java.util.logging.ConsoleHandler



/opt/alfresco-4.2.c/tomcat/logs/catalina.yyyy-mm-dd.log

Aug 26, 2013 1:39:58 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2008 ms
Aug 26, 2013 1:39:58 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Aug 26, 2013 1:39:58 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.30
Aug 26, 2013 1:39:58 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /opt/alfresco-4.2.c/tomcat/conf/Catalina/localhost/solr.xml
Aug 26, 2013 1:39:58 AM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.
Aug 26, 2013 1:40:08 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /opt/alfresco-4.2.c/tomcat/webapps/share.war
Aug 26, 2013 1:40:26 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /opt/alfresco-4.2.c/tomcat/webapps/alfresco.war
Aug 26, 2013 1:40:44 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The dup$
Aug 26, 2013 1:41:04 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Aug 26, 2013 1:41:04 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/alfresco] startup failed due to previous errors
Aug 26, 2013 1:41:04 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [Abandoned connection cleanup thread] but has$
Aug 26, 2013 1:41:04 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [$
Aug 26, 2013 1:41:04 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.Thr$
Aug 26, 2013 1:41:04 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/alfresco-4.2.c/tomcat/webapps/host-manager
Aug 26, 2013 1:41:04 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/alfresco-4.2.c/tomcat/webapps/manager
Aug 26, 2013 1:41:04 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/alfresco-4.2.c/tomcat/webapps/alfresco_old
Aug 26, 2013 1:41:18 AM org.apache.catalina.core.StandardContext addApplicationListener

Outcomes