Grails-Plugin-Consortium / grails-cxf

CXF Plugin for the Grails web framework
http://grails.org/plugin/cxf
38 stars 46 forks source link

conflict with spring security plugin #54

Closed bilgehanm closed 8 years ago

bilgehanm commented 8 years ago

Hava a problem with spring security and cxf. Application runs on IDE fine but when deployed to Tomcat, can't start

ERROR org.springframework.boot.SpringApplication - Application startup failed org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filterInvocationInterceptorDeregistrationBean': Cannot resolve reference to bean 'filterInvocationInterceptor' while setting bean property 'filter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filterInvocationInterceptor': Invocation of init method failed; nested exception is java.lang.AssertionError: Cannot load Requestmaps; 'requestMap.className' property 'com.myapp.Requestmap' is invalid. Expression: Requestmap. Values: Requestmap = null

camponuevo commented 8 years ago

We had the same problem. In our case the issue was related because the project build.gradle and spring-security-core plugin build.gradle uses "io.spring.dependency-management" version "0.5.4.RELEASE" cfx plugin is using "io.spring.dependency-management" version "0.5.2.RELEASE" We create a clone for cfx, changed to 0.5.4.RELEASE and everything went ok. No issues anymore with the deploy. Hope this help.

bilgehanm commented 8 years ago

@camponuevo thanks, changing 0.5.2.RELEASE to 0.5.4.RELEASE solved that issue.

ctoestreich commented 8 years ago

I upgraded to 0.5.4 and can include in next release

ctoestreich commented 8 years ago

Incoming

ctoestreich commented 8 years ago

Released 3.1.0