[
https://issues.apache.org/jira/browse/SM-2075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027605#comment-13027605
]
Jean-Baptiste Onofré commented on SM-2075:
------------------------------------------
The dependency is not required by ServiceMix itself but by AMQ pool (as
ActiveMQ now uses SLF4J as default logger).
> Basic examples doesn't work
> ---------------------------
>
> Key: SM-2075
> URL: https://issues.apache.org/jira/browse/SM-2075
> Project: ServiceMix
> Issue Type: Bug
> Components: samples
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Fix For: 3.4
>
>
> In examples/basic, when testing the example with:
> mvn jbi:embeddedServicemix
> the ServiceMix container doesn't start:
> 2011-05-02 11:01:27,700 [main ] INFO
> ileSystemXmlApplicationContext - Refreshing
> org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1fe28a7:
> display name
> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1fe28a7];
> startup date [Mon May 02 11:01:27 CEST 2011]; root of context hierarchy
> 2011-05-02 11:01:27,844 [main ] INFO XBeanXmlBeanDefinitionReader
> - Loading XML bean definitions from URL
> [file:////home/onofreje/workspace/smx/smx3/distributions/apache-servicemix/target/apache-servicemix-3.4-SNAPSHOT/examples/basic/src/main/resources/servicemix.xml]
> 2011-05-02 11:01:29,034 [main ] INFO
> ileSystemXmlApplicationContext - Bean factory for application context
> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1fe28a7]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@717ef5
> 2011-05-02 11:01:29,059 [main ] INFO DefaultListableBeanFactory
> - Pre-instantiating singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@717ef5:
> defining beans
> [jbi,transactionManager,workManager,bootstrapContext,activeMQResourceAdapter,broker,jmsFactory];
> root of factory hierarchy
> 2011-05-02 11:01:29,136 [main ] WARN EndpointRegistry
> - Disabled endpoint processor
> 'org.apache.servicemix.jbi.framework.support.WSDL2Processor':
> java.lang.NoClassDefFoundError: org/apache/woden/WSDLReader
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
> details.
> 2011-05-02 11:01:29,371 [main ] INFO DefaultListableBeanFactory
> - Destroying singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@717ef5:
> defining beans
> [jbi,transactionManager,workManager,bootstrapContext,activeMQResourceAdapter,broker,jmsFactory];
> root of factory hierarchy
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 20.861s
> [INFO] Finished at: Mon May 02 11:01:29 CEST 2011
> [INFO] Final Memory: 17M/149M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.servicemix.tooling:jbi-maven-plugin:4.4:embeddedServicemix
> (default-cli) on project basic: Unable to start the ServiceMix container:
> Error creating bean with name 'jbi' defined in URL
> [file:////home/onofreje/workspace/smx/smx3/distributions/apache-servicemix/target/apache-servicemix-3.4-SNAPSHOT/examples/basic/src/main/resources/servicemix.xml]:
> Cannot resolve reference to bean 'transactionManager' while setting bean
> property 'transactionManager'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'transactionManager': FactoryBean threw exception on object
> creation; nested exception is java.lang.NoClassDefFoundError:
> org/slf4j/impl/StaticLoggerBinder: org.slf4j.impl.StaticLoggerBinder -> [Help
> 1]
> SLF4J dependency is missing.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira