cancel
Showing results for 
Search instead for 
Did you mean: 

Missing ConsoleLogListener

mmaker1234
Champ in-the-making
Champ in-the-making
Hello all,

I'm trying to run Activiti 5.12 engine with java.util.logging (SLF4J with slf4j-jdk14-1.7.2.jar). Unfortunately I receive the following error:

     [init] INFO: Looking for workflow engines to start…
     [init] Mar 8, 2013 3:33:04 PM org.activiti.engine.ProcessEngines init
     [init] INFO: Initializing process engine using configuration 'file:/C:/Projects/test/activiti.cfg.xml'
     [init] Mar 8, 2013 3:33:04 PM org.activiti.engine.ProcessEngines initProcessEnginFromResource
     [init] INFO: initializing process engine for resource file:/C:/Projects/test/activiti.cfg.xml
     [init] Mar 8, 2013 3:33:05 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
     [init] INFO: Loading XML bean definitions from resource loaded through InputStream
     [init] Mar 8, 2013 3:33:05 PM org.activiti.engine.ProcessEngines initProcessEnginFromResource
     [init] SEVERE: Exception while initializing process engine: Error creating bean with name 'processEngineConfiguration' defined in resource loaded through InputStream: Cannot create inner bean 'org.activiti.engine.impl.logging.console.ConsoleLogListener#b3b6a6' of type [org.activiti.engine.impl.logging.console.ConsoleLogListener] while setting bean property 'customPostBPMNParseListeners' with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.activiti.engine.impl.logging.console.ConsoleLogListener] for bean with name 'org.activiti.engine.impl.logging.console.ConsoleLogListener#b3b6a6' defined in resource loaded through InputStream; nested exception is java.lang.ClassNotFoundException: org.activiti.engine.impl.logging.console.ConsoleLogListener
     [init] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngineConfiguration' defined in resource loaded through InputStream: Cannot create inner bean 'org.activiti.engine.impl.logging.console.ConsoleLogListener#b3b6a6' of type [org.activiti.engine.impl.logging.console.ConsoleLogListener] while setting bean property 'customPostBPMNParseListeners' with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.activiti.engine.impl.logging.console.ConsoleLogListener] for bean with name 'org.activiti.engine.impl.logging.console.ConsoleLogListener#b3b6a6' defined in resource loaded through InputStream; nested exception is java.lang.ClassNotFoundException: org.activiti.engine.impl.logging.console.ConsoleLogListener
     [init]     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
     [init]     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
     [init]     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
     [init]     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
     [init]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
     [init]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
     [init]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
     [init]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
     [init]     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
     [init]     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
     [init]     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
     [init]     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
     [init]     at org.activiti.engine.impl.cfg.BeansConfigurationHelper.parseProcessEngineConfiguration(BeansConfigurationHelper.java:36)
     [init]     at org.activiti.engine.impl.cfg.BeansConfigurationHelper.parseProcessEngineConfigurationFromInputStream(BeansConfigurationHelper.java:43)
     [init]     at org.activiti.engine.ProcessEngineConfiguration.createProcessEngineConfigurationFromInputStream(ProcessEngineConfiguration.java:158)
     [init]     at org.activiti.engine.ProcessEngineConfiguration.createProcessEngineConfigurationFromInputStream(ProcessEngineConfiguration.java:154)
     [init]     at org.activiti.engine.ProcessEngines.buildProcessEngine(ProcessEngines.java:193)
     [init]     at org.activiti.engine.ProcessEngines.initProcessEnginFromResource(ProcessEngines.java:167)
     [init]     at org.activiti.engine.ProcessEngines.init(ProcessEngines.java:98)
My attempts to find which jar in Activiti 5.12 distribution contains org.activiti.engine.impl.logging.console.ConsoleLogListener failed.

Any suggestions how to fix the problem?

P.S. I had environment for Activiti 5.11 and the engine used to run seamlessly. For 5.12 I just replaced the activiti-engine-5…jar and added slf4j-api-1.7.2.jar and slf4j-jdk14-1.7.2.jar to the class path.

No LogListener (and ConsoleLogListener in particular) is mentioned in 5.12 User Guide, which I understand as no changes to the engine configuration (file) are needed.
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
The ConsoleLogListener doesn't exist in our project at all.. What logging.properties file are you using?

mmaker1234
Champ in-the-making
Champ in-the-making
Sorry for the post,

Of course the problem was in my TV - I had explicit configuration to log everything on the console:
    <property name="customPostBPMNParseListeners">
      <list>
        <bean class="org.activiti.engine.impl.logging.console.ConsoleLogListener" />
      </list>
    </property>