spring-native icon indicating copy to clipboard operation
spring-native copied to clipboard

Add support for Spring Web Services (SOAP)

Open douglashg opened this issue 3 years ago • 8 comments

jaxax.xml.transform.TransformerException: com.sun.org.apache.xpath.internal.functions.FuncNormalizeSpace.() at com.sun.org.apache.xpath.internal.compiler.FunctionTable.getFunction(FunctionTable.java:353)

douglashg avatar Apr 19 '21 12:04 douglashg

Could you please provide a project that would allow us to reproduce this error ?

sdeleuze avatar Apr 19 '21 13:04 sdeleuze

I use "spring-boot-starter-web-services" module

douglashg avatar Apr 19 '21 16:04 douglashg

I can´t send the original project, but if you need , I can create a simple project with same error....

douglashg avatar Apr 19 '21 16:04 douglashg

I created a simple demo project using "Spring Initializ", version 2.4.6 (SNAPSHOT) adding dependencies "Native , Web Services".

demo1.zip

...and then run on docker cmd: mvn spring-boot:build-image -DskipTests

Result: [INFO] [creator] *** Images (87b36c7fedfb): [INFO] [creator] docker.io/library/demo:0.0.1-SNAPSHOT [INFO] [creator] Adding cache layer 'paketo-buildpacks/graalvm:jdk' [INFO] [creator] Adding cache layer 'paketo-buildpacks/native-image:native-image' [INFO] [INFO] Successfully built image 'docker.io/library/demo:0.0.1-SNAPSHOT' [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15:47 min [INFO] Finished at: 2021-04-19T14:25:34-03:00 [INFO] ------------------------------------------------------------------------

.... But when try start docker : docker run --rm -p 8080:8080 demo:0.0.1-SNAPSHOT

Result: Caused by: javax.xml.xpath.XPathExpressionException: javax.xml.transform.TransformerException: com.sun.org.apache.xpath.internal.functions.FuncNormalizeSpace.() at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:170) ~[na:na] at org.springframework.xml.xpath.Jaxp13XPathExpressionFactory.createXPathExpression(Jaxp13XPathExpressionFactory.java:79) ~[na:na] ... 33 common frames omitted Caused by: javax.xml.transform.TransformerException: com.sun.org.apache.xpath.internal.functions.FuncNormalizeSpace.() at com.sun.org.apache.xpath.internal.compiler.FunctionTable.getFunction(FunctionTable.java:353) ~[na:na] at com.sun.org.apache.xpath.internal.compiler.Compiler.compileFunction(Compiler.java:1060) ~[na:na] at com.sun.org.apache.xpath.internal.compiler.Compiler.compile(Compiler.java:204) ~[na:na] at com.sun.org.apache.xpath.internal.compiler.Compiler.compile(Compiler.java:152) ~[na:na] at com.sun.org.apache.xpath.internal.compiler.Compiler.compileExpression(Compiler.java:126) ~[na:na] at com.sun.org.apache.xpath.internal.XPath.(XPath.java:187) ~[na:na] at com.sun.org.apache.xpath.internal.XPath.(XPath.java:268) ~[na:na] at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:162) ~[na:na] ... 34 common frames omitted

douglashg avatar Apr 19 '21 17:04 douglashg

Can you verify for me

douglashg avatar Apr 19 '21 18:04 douglashg

spring-boot-starter-web-services is not yet supported so that expected.

sdeleuze avatar Apr 20 '21 09:04 sdeleuze

I would like to be part of this team, how can I sign up?

douglashg avatar Apr 20 '21 12:04 douglashg

You can provide pull-requests.

sdeleuze avatar May 10 '21 09:05 sdeleuze

Spring Native is now superseded by Spring Boot 3 official native support, see the related reference documentation for more details.

As a consequence, I am closing this issue, and recommend trying your use case with latest Spring Boot 3 version. If you still experience the issue reported here, please open an issue directly on the related Spring project (Spring Framework, Data, Security, Boot, Cloud, etc.) with a reproducer.

Thanks for your contribution on the experimental Spring Native project, we hope you will enjoy the official native support introduced by Spring Boot 3.

sdeleuze avatar Jan 02 '23 12:01 sdeleuze