Hi Raphael, Thanks a lot for the working sample. I tried to follow your path but I was still stucked half way through.
When I tried to access the api-docs.json file, I can see the resourcePackage variable got passed into the BasicApplication.getClasses(). However, after it returned Set<Class<?>>, it went into ApiListing and threw me an exception as: >Caused by: java.lang.NoSuchMethodError: >scala.collection.JavaConverters$.asScalaSetConverter(Ljava/util/Set;)Lscala/collection/JavaConverters$AsScala; I checked my pom, and I have the scala-library artifact referenced correctly. Any suggestions on what could be causing this? Thanks a lot! Randy On Mon, Mar 11, 2013 at 5:05 PM, Raphael Vullriede < [email protected]> wrote: > Hi, > > > On 03/07/2013 03:10 PM, sparklo wrote: > >> Hi Raphael, >> >> Any luck with it? I am having the exact same problem. >> >> Thanks, >> >> Randy >> > > Actually yes :-) I've played around a bit with using an own > Application.class that detects the ressources via annotation scanning. > You can find a working sample app here: https://github.com/rvullriede/** > swagger-core/tree/master/**samples/swagger-java-sample-**app-cxf<https://github.com/rvullriede/swagger-core/tree/master/samples/swagger-java-sample-app-cxf> > > Best, > Raphael > >
