gs-consuming-web-service icon indicating copy to clipboard operation
gs-consuming-web-service copied to clipboard

Updated examples and guides from Spring Framework 6 and jakarta classes?

Open huima opened this issue 2 years ago • 4 comments

Hi,

wondering if there is already work being done on updating creating and consuming SOAP services with new versions of the Spring Framework 6 and Spring Boot 3?

At the moment current example projects naturally fail if tried under 3.0.0 releases, as dependencies have been updated to jakarta 9+ classes.

huima avatar Nov 29 '22 10:11 huima

I will answer to myself.

Required only updating the plugin to use new version: jaxb "com.sun.xml.bind:jaxb-xjc:4.0.1"

And everything works as expected with Spring Boot 3.

New plugin generates jakarta.* namespace classes.

huima avatar Nov 29 '22 12:11 huima

Execution failed for task ':genJaxb'.
> java.lang.AssertionError: jakarta.xml.bind.JAXBException: Implementation of Jakarta XML Binding-API has not been found on module path or classpath.
   - with linked exception:
  [java.lang.ClassNotFoundException: org.glassfish.jaxb.runtime.v2.ContextFactory]

bitsofinfo avatar Jan 24 '23 21:01 bitsofinfo

I will answer to myself.

Required only updating the plugin to use new version: jaxb "com.sun.xml.bind:jaxb-xjc:4.0.1"

And everything works as expected with Spring Boot 3.

New plugin generates jakarta.* namespace classes.

Thank you for sharing this !

ScriptKiddie47 avatar Mar 04 '23 09:03 ScriptKiddie47

We plan to rewrite this guide soon. Using the tools made available by Spring Framework 6 and Spring Boot 3 is definitely part of that. I'll leave this issue open as a reminder, though. Paging @gregturn

Buzzardo avatar Oct 17 '23 17:10 Buzzardo