You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Niten Aggarwal <ni...@hcl.com> on 2016/09/30 19:44:42 UTC

Swagger issue with Karaf 4.0.7

Hi All,

Has anyone came across this issue with Swagger 1.5.9, CXF 3.1.5 and Karaf 4.0.7?
Recently migrated to 4.0.7 and started getting issue.

Caused by: java.lang.NoClassDefFoundError: Could not initialize class io.swagger.converter.ModelConverters
        at io.swagger.jaxrs.DefaultParameterExtension.createProperty(DefaultParameterExtension.java:101)
        at io.swagger.jaxrs.DefaultParameterExtension.extractParameters(DefaultParameterExtension.java:54)
        at io.swagger.jaxrs.Reader.getParameters(Reader.java:901)
        at io.swagger.jaxrs.Reader.parseMethod(Reader.java:852)
        at io.swagger.jaxrs.Reader.read(Reader.java:293)
        at io.swagger.jaxrs.Reader.read(Reader.java:145)
        at io.swagger.jaxrs.config.BeanConfig.scanAndRead(BeanConfig.java:223)
        at io.swagger.jaxrs.config.BeanConfig.setScan(BeanConfig.java:204)
        at org.apache.cxf.jaxrs.swagger.Swagger2Feature.addSwaggerResource(Swagger2Feature.java:109)
        at org.apache.cxf.jaxrs.swagger.AbstractSwaggerFeature.initialize(AbstractSwaggerFeature.java:64)
        at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.applyFeatures(JAXRSServerFactoryBean.java:252)
        at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:196)
        at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.init(JAXRSServerFactoryBean.java:142)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_73]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_73]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_73]
        at java.lang.reflect.Method.invoke(Method.java:497)[:1.8.0_73]
        at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:299)
        at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:980)
        at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:736)
        ... 34 more

Thanks,
Niten Aggarwal



::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and other defects.

----------------------------------------------------------------------------------------------------------------------------------------------------