[Error] Unable to create SOAP Factory - Provider not found #377
-
Hi all,
It works in local environment (JVM) but it doesn't work in native mode. This is the error:
I've added these dependencies but without any result:
Any ideas? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @lferna Would it be possible for you to put together a simple reproducer? This is likely more a general configuration issue than an issue with the extension, but I can help you get to the bottom of it more easily with a sample project. |
Beta Was this translation helpful? Give feedback.
-
Hi @shumonsharif https://github.com/lferna/sample-client-cxf-quarkus.git My Quarkus version is 2.6.0.Final Thanks so much in advance |
Beta Was this translation helpful? Give feedback.
-
Hi @lferna First off, I would suggest you review this Quarkus native application guide, it should hopefully explain the changes and why they are needed. There are also other guides on GraalVM that you can lookup. There may possibly be some way to address this in the extension, I'll look into it further. In the meantime, you can try the steps below. The <dependency>
<groupId>org.jvnet.mimepull</groupId>
<artifactId>mimepull</artifactId>
<version>1.9.14</version>
</dependency> You can add [
{
"name" : "com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl",
"allDeclaredConstructors" : true,
"allPublicMethods" : true
},
{
"name" : "com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl",
"allDeclaredConstructors" : true,
"allPublicMethods" : true
},
{
"name" : "com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl",
"allDeclaredConstructors" : true,
"allPublicMethods" : true
},
{
"name" : "com.sun.xml.messaging.saaj.soap.ver1_2.SOAPFactory1_2Impl",
"allDeclaredConstructors" : true,
"allPublicMethods" : true
},
{
"name" : "com.sun.xml.messaging.saaj.soap.ver1_2.SOAPMessageFactory1_2Impl",
"allDeclaredConstructors" : true,
"allPublicMethods" : true
},
{
"name":"com.sun.xml.messaging.saaj.soap.impl.ElementImpl",
"methods":[{"name":"<init>","parameterTypes":["com.sun.xml.messaging.saaj.soap.SOAPDocumentImpl","org.w3c.dom.Element"] }]
}
] and also {
"resources": {
"includes": [
{
"pattern": "META-INF/services/javax.xml.soap.MessageFactory"
},
{
"pattern": "META-INF/services/javax.xml.soap.SAAJMetaFactory"
},
{
"pattern": "META-INF/services/javax.xml.soap.SOAPConnectionFactory"
},
{
"pattern": "META-INF/services/javax.xml.soap.SOAPFactory"
}
]
}
} That should be all that's needed. Let me know in case of any issues. |
Beta Was this translation helpful? Give feedback.
-
First of all, thank you for your reply and for your attention. Probably, this message should have been posted in other forums, but I want to continue solving my problems here. Secondly, it works! 🎉🎉 On the other hand, before posting this message, I've tried to add the class Once we put these microservices in production environment, I'll let you know about the success story. Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @lferna First off, I would suggest you review this Quarkus native application guide, it should hopefully explain the changes and why they are needed. There are also other guides on GraalVM that you can lookup.
https://quarkus.io/guides/writing-native-applications-tips
There may possibly be some way to address this in the extension, I'll look into it further. In the meantime, you can try the steps below.
The
saaj-impl
dependency is already pulled in by CXF. However,saaj-impl
has an optional dependency onmimepull
, which you will need to add to your project for the native build.