Closed tyagiakhilesh closed 6 years ago
import org.springframework.boot.context.embedded.ServletRegistrationBean Does not exist anymore
You need to change the import to import org.springframework.boot.web.servlet.ServletRegistrationBean
Can you make a change?
@wasowskijarek Done. Please do let me know if anything is missing.
This hasn't been added to a release, has it?
The same problem using grails 3.3.2.
Anyone using this plugin with grails 3.3.2?
@juanxo no, because it's broken and nobody is fixing it
Is there any other alternative? I need update my application for version 3.3.2 and the application needs to respond to a soap request. Thanks.
You'll need to fix grails-cxf or not use it. I got so fed up with it not working that I simply switched to plain Java and rebuilt it in Spring. Works fine.
Moving away to native options might be a better choice in long run. I struggled beyond limits of pain to get webflow plugin working, when I was upgrading my app. I ended up using spring webflow directly in my app. Same goes for this guy I believe.
In CxfGrailsPlugin.groovy file, changing import org.springframework.boot.context.embedded.ServletRegistrationBean with import org.springframework.boot.web.servlet.ServletRegistrationBean
will fix the issue. You can clone the repository and use a local copy with that change until this plugin is updated.
I did raise a PR with that, but then some tests were broken. And I never went back to fix. (or never really got that much time.)
I am trying to use this plugin with grails 3.3.0.M1, but because of spring upgrade there, this plugin seems borken. Can we have a fix please ?
Quoting from here:
org.springframework.boot.context.embedded.ServletRegistrationBean which is no more available on Spring Boot 1.5.0 and onwards releases.
I searched the code of this plugin, and this ineeded is being used.