-
Bug
-
Resolution: Done
-
Critical
-
fuse-7.0
-
None
-
%
-
Fuse 7.1 Sprint 30, Fuse 7.1 Sprint 31
Having this change in pom.xml of spring-boot-cxf-jaxrs-1.0.0.fuse-000115-redhat-2
<groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion> + <exclusion> + <groupId>ch.qos.logback</groupId> + <artifactId>logback-core</artifactId> + </exclusion> </exclusions> </dependency> + <dependency> + <groupId>ch.qos.logback</groupId> + <artifactId>logback-core</artifactId> + <version>1.1.11</version> + </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-undertow</artifactId>
and
mvn clean install && mvn fabric8:deploy
gives
2018-05-12 17:02:34.467 WARN 1 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rsServer' defined in io.fabric8.quickstarts.cxf.jaxrs.SampleRestApplication: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.cxf.endpoint.Server]: Factory method 'rsServer' threw exception; nested exception is java.lang.NoSuchMethodError: com.google.common.collect.Sets$SetView.iterator()Lcom/google/common/collect/UnmodifiableIterator; 2018-05-12 17:02:34.477 INFO 1 --- [ main] utoConfigurationReportLoggingInitializer : Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2018-05-12 17:02:34.482 ERROR 1 --- [ main] o.s.boot.SpringApplication : Application startup failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rsServer' defined in io.fabric8.quickstarts.cxf.jaxrs.SampleRestApplication: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.cxf.endpoint.Server]: Factory method 'rsServer' threw exception; nested exception is java.lang.NoSuchMethodError: com.google.common.collect.Sets$SetView.iterator()Lcom/google/common/collect/UnmodifiableIterator; at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1177) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1071) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.12.RELEASE.jar!/:1.5.12.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.12.RELEASE.jar!/:1.5.12.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.12.RELEASE.jar!/:1.5.12.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.12.RELEASE.jar!/:1.5.12.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.12.RELEASE.jar!/:1.5.12.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.12.RELEASE.jar!/:1.5.12.RELEASE] at io.fabric8.quickstarts.cxf.jaxrs.SampleRestApplication.main(SampleRestApplication.java:36) [classes!/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_171] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_171] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_171] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_171] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [spring-boot-cxf-jaxrs-1.0.0.fuse-000115-redhat-2.jar:na] at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [spring-boot-cxf-jaxrs-1.0.0.fuse-000115-redhat-2.jar:na] at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [spring-boot-cxf-jaxrs-1.0.0.fuse-000115-redhat-2.jar:na] at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [spring-boot-cxf-jaxrs-1.0.0.fuse-000115-redhat-2.jar:na] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.cxf.endpoint.Server]: Factory method 'rsServer' threw exception; nested exception is java.lang.NoSuchMethodError: com.google.common.collect.Sets$SetView.iterator()Lcom/google/common/collect/UnmodifiableIterator; at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] ... 26 common frames omitted Caused by: java.lang.NoSuchMethodError: com.google.common.collect.Sets$SetView.iterator()Lcom/google/common/collect/UnmodifiableIterator; at org.reflections.Reflections.expandSuperTypes(Reflections.java:380) ~[reflections-0.9.11.jar!/:na] at org.reflections.Reflections.<init>(Reflections.java:126) ~[reflections-0.9.11.jar!/:na] at io.swagger.jaxrs.config.BeanConfig.classes(BeanConfig.java:276) ~[swagger-jaxrs-1.5.18.fuse70-1-redhat-1.jar!/:1.5.18.fuse70-1-redhat-1] at io.swagger.jaxrs.config.BeanConfig.scanAndRead(BeanConfig.java:240) ~[swagger-jaxrs-1.5.18.fuse70-1-redhat-1.jar!/:1.5.18.fuse70-1-redhat-1] at io.swagger.jaxrs.config.BeanConfig.setScan(BeanConfig.java:221) ~[swagger-jaxrs-1.5.18.fuse70-1-redhat-1.jar!/:1.5.18.fuse70-1-redhat-1] at org.apache.cxf.jaxrs.swagger.Swagger2Feature.addSwaggerResource(Swagger2Feature.java:195) ~[cxf-rt-rs-service-description-swagger-3.1.11.fuse-000243-redhat-1.jar!/:3.1.11.fuse-000243-redhat-1] at org.apache.cxf.jaxrs.swagger.AbstractSwaggerFeature.initialize(AbstractSwaggerFeature.java:69) ~[cxf-rt-rs-service-description-swagger-3.1.11.fuse-000243-redhat-1.jar!/:3.1.11.fuse-000243-redhat-1] at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.applyFeatures(JAXRSServerFactoryBean.java:252) ~[cxf-rt-frontend-jaxrs-3.1.11.fuse-000243-redhat-1.jar!/:3.1.11.fuse-000243-redhat-1] at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:196) ~[cxf-rt-frontend-jaxrs-3.1.11.fuse-000243-redhat-1.jar!/:3.1.11.fuse-000243-redhat-1] at io.fabric8.quickstarts.cxf.jaxrs.SampleRestApplication.rsServer(SampleRestApplication.java:47) [classes!/:na] at io.fabric8.quickstarts.cxf.jaxrs.SampleRestApplication$$EnhancerBySpringCGLIB$$69bffb27.CGLIB$rsServer$0(<generated>) ~[classes!/:na] at io.fabric8.quickstarts.cxf.jaxrs.SampleRestApplication$$EnhancerBySpringCGLIB$$69bffb27$$FastClassBySpringCGLIB$$113b62b.invoke(<generated>) ~[classes!/:na] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358) ~[spring-context-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] at io.fabric8.quickstarts.cxf.jaxrs.SampleRestApplication$$EnhancerBySpringCGLIB$$69bffb27.rsServer(<generated>) ~[classes!/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_171] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_171] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_171] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_171] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE] ... 27 common frames omitted
- is caused by
-
ENTESB-8416 spring-boot-cxf (jaxrs, jaxws) - ClassNotFoundException
-
- Closed
-