I still can't get swagger2Feature to work in my project 

What is the expected outcome of Swagger2Feature?  I am expecting that I am
going to see swagger documents for my api under http://0.0.0.0:8877/api, but
the logs say 404 not found.

Can someone explain more what is happening behind the scenes on
Swagger2Feature?
Any recommendations?  Thx.

Here's the config I am using in applicationContext.xml:
   
   <bean id="swagger2Feature"
class="org.apache.cxf.jaxrs.swagger.Swagger2Feature">
   <property name="basePath" value="/api"/>
   </bean>

   
   
   <jaxrs:server id="ecpWebServices"
basePackages="com.twc.ctg.ecp.service.rest.custom"
address="http://0.0.0.0:8877"; depends-on="activeMQConnectionFactory">
      <jaxrs:inInterceptors>
         <ref bean="validationInInterceptor"/>
      </jaxrs:inInterceptors>
      <jaxrs:outInterceptors>
         <ref bean="validationOutInterceptor"/>
      </jaxrs:outInterceptors>
      <jaxrs:serviceBeans>
         <ref bean="ecpAdminRestServiceV1"/>
         <ref bean="ecpApplicationRestServiceV1"/>
         <ref bean="ecpEntitlementRestServiceV2"/>
         <ref bean="ecpTvodRestServiceV1"/>
         <ref bean="ecpHouseholdHistoryRestServiceV1"/>
         <ref bean="ecpPromotionRestServiceV1"/>
         <ref bean="ecpTvodPromotionServiceV1"/>
         <ref bean="ecpFeatureRestServiceV1"/>
         <ref bean="ecpPpvServiceV1"/>
      </jaxrs:serviceBeans>
      <jaxrs:providers>
         <bean
class="com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider"/>
         <bean
class="org.apache.cxf.rs.security.cors.CrossOriginResourceSharingFilter"/>
         <ref bean="genericRestExceptionMapper"/>
         <ref bean="customValidationExceptionMapper"/>
      </jaxrs:providers>
      <jaxrs:features>
         <ref bean="swagger2Feature" />
      </jaxrs:features>
   </jaxrs:server>



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Swagger2Feature-jar-and-version-tp5769165p5769278.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to