{"action":"created","issue":{"url":"https://api.github.com/repos/springfox/springfox/issues/916","labels_url":"https://api.github.com/repos/springfox/springfox/issues/916/labels{/name}","comments_url":"https://api.github.com/repos/springfox/springfox/issues/916/comments","events_url":"https://api.github.com/repos/springfox/springfox/issues/916/events","html_url":"https://github.com/springfox/springfox/issues/916","id":101135902,"number":916,"title":"Error while deploying on cloud foundry -::0 can't find referenced pointcut model","user":{"login":"brajput24","id":3261145,"avatar_url":"https://avatars.githubusercontent.com/u/3261145?v=3","gravatar_id":"","url":"https://api.github.com/users/brajput24","html_url":"https://github.com/brajput24","followers_url":"https://api.github.com/users/brajput24/followers","following_url":"https://api.github.com/users/brajput24/following{/other_user}","gists_url":"https://api.github.com/users/brajput24/gists{/gist_id}","starred_url":"https://api.github.com/users/brajput24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brajput24/subscriptions","organizations_url":"https://api.github.com/users/brajput24/orgs","repos_url":"https://api.github.com/users/brajput24/repos","events_url":"https://api.github.com/users/brajput24/events{/privacy}","received_events_url":"https://api.github.com/users/brajput24/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-15T03:27:23Z","updated_at":"2015-08-15T03:40:05Z","closed_at":null,"body":"hi , tried to deploy my sample app on cloud foundry with swagger2 but getting the below error , same code working fine on my local. I'm using Spring boot with Jdk1.8  . Please help me !\r\n\r\nswaggerReleaseVersion='2.1.2'\r\nHere is my config file \r\n@EnableSwagger2\r\n@Configuration\r\npublic class SwaggerConfig  extends WebMvcConfigurerAdapter{\r\n   static final String detailDescription = \"Sample \";\r\n    @Bean\r\n    public Docket sampleApi() {\r\n        return new Docket(DocumentationType.SWAGGER_2)\r\n..........\r\n\r\n\r\n\r\nError : \r\n\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT [2015-08-15 03:04:57.119] boot - 31  WARN [main] --- AnnotationConfigEmbeddedWebApplicationContext: Exception encountered during context initialization - cancelling refresh attempt\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'objectMapperConfigurer' defined in class path resource [springfox/documentation/spring/web/SpringfoxWebMvcConfiguration.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut model\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:472)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:232)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:615)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:465)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.boot.SpringApplication.run(SpringApplication.java:320)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.boot.SpringApplication.run(SpringApplication.java:957)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.boot.SpringApplication.run(SpringApplication.java:946)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat java.lang.reflect.Method.invoke(Method.java:497)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat java.lang.Thread.run(Thread.java:745)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut model\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:368)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)\r\n2015-08-14T23:04:57.12-0400 [App/0]   OUT \tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)\r\n2015-08-14T23:04:"},"comment":{"url":"https://api.github.com/repos/springfox/springfox/issues/comments/131287876","html_url":"https://github.com/springfox/springfox/issues/916#issuecomment-131287876","issue_url":"https://api.github.com/repos/springfox/springfox/issues/916","id":131287876,"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-08-15T03:40:05Z","updated_at":"2015-08-15T03:40:05Z","body":"Looks like it's got something to do with the version of aspectj \r\n\r\n[This SO post](http://stackoverflow.com/questions/10482563/aop-java-lang-illegalargumentexception-error-at-0-cant-find-referenced-poi) looks like it might be your solution. "}}