Description
I made the following changes to this project
pom.xml Changed versions:
<spring-version>3.1.4.RELEASE</spring-version>
...
<fuse-version>redhat-610312</fuse-version>
<servicemix-version>4.5.0.${fuse-version}</servicemix-version>
<karaf-version>2.3.0</karaf-version> <!-- needs to match that in smx -->
<camel-version>2.12.0.${fuse-version}</camel-version>
<activemq-version>5.9.0.${fuse-version}</activemq-version>
dm-integration-testing/pom.xml
Added:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-test-spring</artifactId>
<version>${camel-version}</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-all</artifactId>
<version>${activemq-version}</version>
</dependency>
and removed other active-mq dependencies
I made the same changes to dm-integration-testing/dm-bundle/pom.xml
mvm clean install resulted in:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.fusesource.examples.dm_bundle.CamelMockedRouteTest
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/kearls/.m2/repository/org/apache/activemq/activemq-all/5.9.0.redhat-610312/activemq-all-5.9.0.redhat-610312.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/kearls/.m2/repository/org/apache/karaf/org.apache.karaf.client/2.3.0/org.apache.karaf.client-2.3.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/kearls/.m2/repository/org/slf4j/slf4j-simple/1.6.6/slf4j-simple-1.6.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/kearls/.m2/repository/org/ops4j/pax/logging/pax-logging-api/1.7.0/pax-logging-api-1.7.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/kearls/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
[ main] CamelMockedRouteTest INFO ********************************************************************************
[ main] CamelMockedRouteTest INFO Testing: null(com.fusesource.examples.dm_bundle.CamelMockedRouteTest)
[ main] CamelMockedRouteTest INFO ********************************************************************************
[ main] CamelMockedRouteTest INFO ********************************************************************************
[ main] CamelMockedRouteTest INFO Testing done: null(com.fusesource.examples.dm_bundle.CamelMockedRouteTest)
[ main] CamelMockedRouteTest INFO Took: 1.920 seconds (1920 millis)
[ main] CamelMockedRouteTest INFO ********************************************************************************
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.222 sec <<< FAILURE! - in com.fusesource.examples.dm_bundle.CamelMockedRouteTest
testRespondToMessageUsingMocks(com.fusesource.examples.dm_bundle.CamelMockedRouteTest) Time elapsed: 2.087 sec <<< ERROR!
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0': Cannot resolve reference to bean 'properties' while setting bean property 'properties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'properties': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/io/support/SpringFactoriesLoader
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.springframework.beans.CachedIntrospectionResults.<clinit>(CachedIntrospectionResults.java:65)
at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:321)
at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptorInternal(BeanWrapperImpl.java:351)
at org.springframework.beans.BeanWrapperImpl.isWritableProperty(BeanWrapperImpl.java:427)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1389)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1387)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:657)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at com.fusesource.examples.dm_bundle.CamelMockedRouteTest.createApplicationContext(CamelMockedRouteTest.java:41)
Results :
Tests in error:
CamelMockedRouteTest>CamelTestSupport.setUp:216->CamelSpringTestSupport.doPreSetup:79->CamelSpringTestSupport.doCreateApplicationContext:89->createApplicationContext:41 ยป BeanCreation
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ServiceMix Integration Testing .................... SUCCESS [0.673s]
[INFO] ServiceMix Integration Testing :: servicemix-test-utils SUCCESS [6.215s]
[INFO] ServiceMix Integration Testing :: dm-integration-test SUCCESS [0.064s]
[INFO] ServiceMix Integration Testing :: dm-bundle ....... FAILURE [9.979s]
[INFO] ServiceMix Integration Testing :: dm-features ..... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.781s
[INFO] Finished at: Mon Jan 13 12:13:15 CET 2014
[INFO] Final Memory: 43M/210M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project dm-bundle: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/kearls/sources/fusebyexample/smx-integration-testing/dm-integration-testing/dm-bundle/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :dm-bundle
kevins-mbp:smx-integration-testing kearls$
Attachments
Issue Links
- relates to
-
ENTESB-878 Run all FuseByExample demos against 6.1 kits
- Closed