{"action":"created","issue":{"url":"https://api.github.com/repos/springfox/springfox/issues/709","labels_url":"https://api.github.com/repos/springfox/springfox/issues/709/labels{/name}","comments_url":"https://api.github.com/repos/springfox/springfox/issues/709/comments","events_url":"https://api.github.com/repos/springfox/springfox/issues/709/events","html_url":"https://github.com/springfox/springfox/issues/709","id":71104460,"number":709,"title":"springfox-swagger2:2.0.0: default implementation via SwaggerCommonConfiguration","user":{"login":"pragnyap","id":12109167,"avatar_url":"https://avatars.githubusercontent.com/u/12109167?v=3","gravatar_id":"","url":"https://api.github.com/users/pragnyap","html_url":"https://github.com/pragnyap","followers_url":"https://api.github.com/users/pragnyap/followers","following_url":"https://api.github.com/users/pragnyap/following{/other_user}","gists_url":"https://api.github.com/users/pragnyap/gists{/gist_id}","starred_url":"https://api.github.com/users/pragnyap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pragnyap/subscriptions","organizations_url":"https://api.github.com/users/pragnyap/orgs","repos_url":"https://api.github.com/users/pragnyap/repos","events_url":"https://api.github.com/users/pragnyap/events{/privacy}","received_events_url":"https://api.github.com/users/pragnyap/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/springfox/springfox/labels/question","name":"question","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-04-26T18:41:56Z","updated_at":"2015-07-16T18:50:53Z","closed_at":"2015-04-30T00:47:24Z","body":"Hi,\r\nInitially I was trying to use swagger-springmvc 0.5.2 to expose my rest services via swagger ui.\r\nI was successful in  integrating it with my spring app on top of my servlet, but it failed to generate any model schema for methods taking object type parameters.(Not sure of the purpose of @ApiModel). \r\nI moved to springfox (Got to know that swagger-springmvc has moved to springfox). I tried following this : http://springfox.github.io/springfox/docs/current/\r\ndetails of my project:\r\nmy dependency:\r\ncompile  'io.springfox:springfox-swagger2:2.0.0'\r\nIn applicationContext.xml I added the bean \r\n<context:component-scan base-package=\"path.to.mypackage\" />\r\n<mvc:annotation-driven/>\r\n<bean class=\"springfox.documentation.swagger.configuration.SwaggerCommonConfiguration\" />\r\nAm getting below error in my tomcat logs:\r\n==============================================================\r\nSEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener\r\norg.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiModelBuilder' defined in URL [jar:file:/codemill/pandapra/tomcat/apache-tomcat-7.0.57/webapps/ROOT/WEB-INF/lib/springfox-swagger-common-2.0.0.jar!/springfox/documentation/swagger/schema/ApiModelBuilder.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.fasterxml.classmate.TypeResolver]: : No qualifying bean of type [com.fasterxml.classmate.TypeResolver] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.fasterxml.classmate.TypeResolver] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}\r\n        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:747)\r\n        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1115)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)\r\n        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)\r\n        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)\r\n        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)\r\n        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)\r\n        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)\r\n        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)\r\n        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)\r\n        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)\r\n        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)\r\n        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)\r\n        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)\r\n        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)\r\n        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)\r\n        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)\r\n        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)\r\n        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)\r\n        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1245)\r\n        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1895)\r\n        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n        at java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n        at java.lang.Thread.run(Thread.java:745)\r\nCaused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.fasterxml.classmate.TypeResolver] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}\r\n        at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1118)\r\n        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:967)\r\n        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:862)\r\n        at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:811)\r\n        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:739)\r\n        ... 28 more\r\n========================================================\r\nI am not sure what am i missing. \r\nAny pointers will be useful.\r\n\r\nThanks,\r\nPragnya"},"comment":{"url":"https://api.github.com/repos/springfox/springfox/issues/comments/122048467","html_url":"https://github.com/springfox/springfox/issues/709#issuecomment-122048467","issue_url":"https://api.github.com/repos/springfox/springfox/issues/709","id":122048467,"user":{"login":"dilipkrish","id":73257,"avatar_url":"https://avatars.githubusercontent.com/u/73257?v=3","gravatar_id":"","url":"https://api.github.com/users/dilipkrish","html_url":"https://github.com/dilipkrish","followers_url":"https://api.github.com/users/dilipkrish/followers","following_url":"https://api.github.com/users/dilipkrish/following{/other_user}","gists_url":"https://api.github.com/users/dilipkrish/gists{/gist_id}","starred_url":"https://api.github.com/users/dilipkrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilipkrish/subscriptions","organizations_url":"https://api.github.com/users/dilipkrish/orgs","repos_url":"https://api.github.com/users/dilipkrish/repos","events_url":"https://api.github.com/users/dilipkrish/events{/privacy}","received_events_url":"https://api.github.com/users/dilipkrish/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T18:50:53Z","updated_at":"2015-07-16T18:50:53Z","body":"@pragnyap as [described here](http://springfox.github.io/springfox/docs/current/#customizing-the-swagger-endpoints) you need to change your url to `<myhost>:<myport>/v2/api-docs?group=sample-api` to get to your api-docs.\r\n\r\nAlso you theres a ton of documentation in http://springfox.io"}}