[ https://issues.apache.org/jira/browse/CXF-6899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15361285#comment-15361285 ]
Benson Margulies commented on CXF-6899: --------------------------------------- I had to add this: {code} <dependency> <groupId>io.swagger</groupId> <artifactId>swagger-jaxrs</artifactId> <version>1.5.7</version> </dependency> {code} So, I leave it to you: should that be part of the cxf Karaf feature in this neighborhood, or not? > swagger feature does not work in OSGi > ------------------------------------- > > Key: CXF-6899 > URL: https://issues.apache.org/jira/browse/CXF-6899 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 3.1.4 > Reporter: Benson Margulies > > Missing dependency? > karaf@root>2016-05-12 15:49:33,319 | ERROR | pool-12-thread-1 | > rosapi-profile-manager | 48 - > com.basistech.ws.rosapi-profile-manager - 1.1.101.v20160512074028 | > [com.basistech.ws.profile.impl.ProfileService(33)] The activate method has > thrown an exception > java.lang.NoClassDefFoundError: io/swagger/jaxrs/listing/ApiListingResource > at > org.apache.cxf.jaxrs.swagger.Swagger2Feature.addSwaggerResource(Swagger2Feature.java:76) -- This message was sent by Atlassian JIRA (v6.3.4#6332)