[jira] [Created] (CXF-8813) XCF v4: NoClassDefFoundError: jakarta/xml/bind/Validator

2023-01-27 Thread Mike M. (Jira)
Mike M. created CXF-8813:


 Summary: XCF v4: NoClassDefFoundError: jakarta/xml/bind/Validator
 Key: CXF-8813
 URL: https://issues.apache.org/jira/browse/CXF-8813
 Project: CXF
  Issue Type: Bug
Affects Versions: 4.0.0
Reporter: Mike M.


Upgrading an existing WSDL-first project using CXF and WebService Security to 
Spring Boot 3 / CXF 4.0.0.

At runtime, we get the error below when we invoke the WebService Operation 
method on the generated JAXB proxy. It seems the jakarta/xml/bind/Validator 
class has been removed in jakarta.xml.bind-api 4.0.0. The JavaDoc of the last 
3.x.x version states:

{quote}As of Jakarta XML Binding, this class is deprecated and optional.{quote}

Unfortunately without migration path it seems.

I'm not aware of our application referencing the Validation class anywhere and 
the stacktrace looks like it comes from CXF.

While debugging, I found that 
{code}org.apache.cxf.jaxws.interceptors.SwAOutInterceptor.callSWARefMethod(JAXBContext){code}
 is being called with a
{code}org.glassfish.jaxb.runtime.v2.runtime.JAXBContextImpl{code} when it fails.

That's about what I could find out so far. Any idea what's going on?

{code}
java.lang.NoClassDefFoundError: jakarta/xml/bind/Validator
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3402)
at java.base/java.lang.Class.getMethodsRecursive(Class.java:3543)
at java.base/java.lang.Class.getMethod0(Class.java:3529)
at java.base/java.lang.Class.getMethod(Class.java:2225)
at 
org.apache.cxf.jaxws.interceptors.SwAOutInterceptor$1.run(SwAOutInterceptor.java:102)
at 
org.apache.cxf.jaxws.interceptors.SwAOutInterceptor$1.run(SwAOutInterceptor.java:99)
at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
at 
org.apache.cxf.jaxws.interceptors.SwAOutInterceptor.callSWARefMethod(SwAOutInterceptor.java:99)
at 
org.apache.cxf.jaxws.interceptors.SwAOutInterceptor.hasSwaRef(SwAOutInterceptor.java:251)
at 
org.apache.cxf.jaxws.interceptors.SwAOutInterceptor.handleMessage(SwAOutInterceptor.java:152)
at 
org.apache.cxf.jaxws.interceptors.SwAOutInterceptor.handleMessage(SwAOutInterceptor.java:78)
at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:528)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:439)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:354)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:312)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at 
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:140)
at jdk.proxy3/jdk.proxy3.$Proxy55.pingOperation(Unknown Source)
{code}

Here's my classpath:

{code}

testRuntimeClasspath - Runtime classpath of source set 'test'.
+--- org.apache.commons:commons-lang3:3.12.0
+--- org.bouncycastle:bcprov-jdk15on:1.56 -> 1.70
+--- org.slf4j:slf4j-api:1.7.24 -> 2.0.5
+--- org.apache.cxf:cxf-core:4.0.0
|+--- jakarta.annotation:jakarta.annotation-api:2.1.1
|+--- org.glassfish.jaxb:jaxb-runtime:3.0.2
||+--- com.sun.activation:jakarta.activation:2.0.1
||\--- org.glassfish.jaxb:jaxb-core:3.0.2
|| +--- jakarta.xml.bind:jakarta.xml.bind-api:3.0.1 -> 4.0.0 (*)
|| +--- org.glassfish.jaxb:txw2:3.0.2
|| \--- com.sun.istack:istack-commons-runtime:4.0.1
|+--- com.fasterxml.woodstox:woodstox-core:6.4.0
||\--- org.codehaus.woodstox:stax2-api:4.2.1
|+--- org.apache.ws.xmlschema:xmlschema-core:2.3.0
|+--- org.eclipse.angus:angus-activation:1.0.0
||\--- jakarta.activation:jakarta.activation-api:2.1.0
|\--- jakarta.xml.bind:jakarta.xml.bind-api:3.0.1 -> 4.0.0 (*)
+--- org.apache.cxf:cxf-rt-frontend-jaxws:4.0.0
|+--- xml-resolver:xml-resolver:1.2
|+--- org.ow2.asm:asm:9.4
|+--- org.apache.cxf:cxf-core:4.0.0 (*)
|+--- org.apache.cxf:cxf-rt-bindings-soap:4.0.0
||+--- jakarta.xml.soap:jakarta.xml.soap-api:2.0.1 -> 3.0.0 (*)
||+--- jakarta.jws:jakarta.jws-api:3.0.0
||+--- jakarta.xml.ws:jakarta.xml.ws-api:3.0.1 -> 4.0.0 (*)
||+--- org.apache.cxf:cxf-core:4.0.0 (*)
||+--- org.apache.cxf:cxf-rt-wsdl:4.0.0
|||+--- org.apache.cxf:cxf-core:4.0.0 (*)
|||+--- wsdl4j:wsdl4j:1.6.3
|||\--- org.ow2.asm:asm:9.4
||+--- org.apache.cxf:cxf-rt-databinding-jaxb:4.0.0
|||+--- org.apache.cxf:cxf-core:4.0.0 (*)
|||\--- org.apache.cxf:cxf-rt-wsdl:4.0.0 (*)
||\--- org.eclipse.angus:angus-activation:1.0.0 (*)
|+--- org.apache.cxf:cxf-rt-bindings-xml:4.0.0
||\--- org.apache.cxf:cxf-co

[jira] [Updated] (CXF-8813) CXF v4: NoClassDefFoundError: jakarta/xml/bind/Validator

2023-01-27 Thread Mike M. (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-8813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike M. updated CXF-8813:
-
Summary: CXF v4: NoClassDefFoundError: jakarta/xml/bind/Validator  (was: 
XCF v4: NoClassDefFoundError: jakarta/xml/bind/Validator)

> CXF v4: NoClassDefFoundError: jakarta/xml/bind/Validator
> 
>
> Key: CXF-8813
> URL: https://issues.apache.org/jira/browse/CXF-8813
> Project: CXF
>  Issue Type: Bug
>Affects Versions: 4.0.0
>Reporter: Mike M.
>Priority: Major
>
> Upgrading an existing WSDL-first project using CXF and WebService Security to 
> Spring Boot 3 / CXF 4.0.0.
> At runtime, we get the error below when we invoke the WebService Operation 
> method on the generated JAXB proxy. It seems the jakarta/xml/bind/Validator 
> class has been removed in jakarta.xml.bind-api 4.0.0. The JavaDoc of the last 
> 3.x.x version states:
> {quote}As of Jakarta XML Binding, this class is deprecated and 
> optional.{quote}
> Unfortunately without migration path it seems.
> I'm not aware of our application referencing the Validation class anywhere 
> and the stacktrace looks like it comes from CXF.
> While debugging, I found that 
> {code}org.apache.cxf.jaxws.interceptors.SwAOutInterceptor.callSWARefMethod(JAXBContext){code}
>  is being called with a
> {code}org.glassfish.jaxb.runtime.v2.runtime.JAXBContextImpl{code} when it 
> fails.
> That's about what I could find out so far. Any idea what's going on?
> {code}
> java.lang.NoClassDefFoundError: jakarta/xml/bind/Validator
>   at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
>   at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3402)
>   at java.base/java.lang.Class.getMethodsRecursive(Class.java:3543)
>   at java.base/java.lang.Class.getMethod0(Class.java:3529)
>   at java.base/java.lang.Class.getMethod(Class.java:2225)
>   at 
> org.apache.cxf.jaxws.interceptors.SwAOutInterceptor$1.run(SwAOutInterceptor.java:102)
>   at 
> org.apache.cxf.jaxws.interceptors.SwAOutInterceptor$1.run(SwAOutInterceptor.java:99)
>   at 
> java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
>   at 
> org.apache.cxf.jaxws.interceptors.SwAOutInterceptor.callSWARefMethod(SwAOutInterceptor.java:99)
>   at 
> org.apache.cxf.jaxws.interceptors.SwAOutInterceptor.hasSwaRef(SwAOutInterceptor.java:251)
>   at 
> org.apache.cxf.jaxws.interceptors.SwAOutInterceptor.handleMessage(SwAOutInterceptor.java:152)
>   at 
> org.apache.cxf.jaxws.interceptors.SwAOutInterceptor.handleMessage(SwAOutInterceptor.java:78)
>   at 
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
>   at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:528)
>   at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:439)
>   at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:354)
>   at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:312)
>   at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
>   at 
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:140)
>   at jdk.proxy3/jdk.proxy3.$Proxy55.pingOperation(Unknown Source)
> {code}
> Here's my classpath:
> {code}
> testRuntimeClasspath - Runtime classpath of source set 'test'.
> +--- org.apache.commons:commons-lang3:3.12.0
> +--- org.bouncycastle:bcprov-jdk15on:1.56 -> 1.70
> +--- org.slf4j:slf4j-api:1.7.24 -> 2.0.5
> +--- org.apache.cxf:cxf-core:4.0.0
> |+--- jakarta.annotation:jakarta.annotation-api:2.1.1
> |+--- org.glassfish.jaxb:jaxb-runtime:3.0.2
> ||+--- com.sun.activation:jakarta.activation:2.0.1
> ||\--- org.glassfish.jaxb:jaxb-core:3.0.2
> || +--- jakarta.xml.bind:jakarta.xml.bind-api:3.0.1 -> 4.0.0 (*)
> || +--- org.glassfish.jaxb:txw2:3.0.2
> || \--- com.sun.istack:istack-commons-runtime:4.0.1
> |+--- com.fasterxml.woodstox:woodstox-core:6.4.0
> ||\--- org.codehaus.woodstox:stax2-api:4.2.1
> |+--- org.apache.ws.xmlschema:xmlschema-core:2.3.0
> |+--- org.eclipse.angus:angus-activation:1.0.0
> ||\--- jakarta.activation:jakarta.activation-api:2.1.0
> |\--- jakarta.xml.bind:jakarta.xml.bind-api:3.0.1 -> 4.0.0 (*)
> +--- org.apache.cxf:cxf-rt-frontend-jaxws:4.0.0
> |+--- xml-resolver:xml-resolver:1.2
> |+--- org.ow2.asm:asm:9.4
> |+--- org.apache.cxf:cxf-core:4.0.0 (*)
> |+--- org.apache.cxf:cxf-rt-bindings-soap:4.0.0
> ||+--- jakarta.xml.soap:jakarta.xml.soap-api:2.0.1 -> 3.0.0 (*)
> ||+--- jakarta.jws:jakarta.jws-api:3.0.0
> ||+--- jakarta.xml.ws:jakarta.xml.ws-api:3.0.1 -> 4.0.0 (*)
> ||+--- org.apache.cxf:cxf-core:4.0.0 (*)
> ||+--- org.apache.cxf:cxf-rt-wsdl:4.0.0
> |   

[jira] [Created] (CXF-8814) Could not start bundle: file:custo/cxf-rt-bindings-soap-3.3.8.jar because of missing requirement javax.xml.soap

2023-01-27 Thread XIAOMING ZHAO (Jira)
XIAOMING ZHAO created CXF-8814:
--

 Summary: Could not start bundle: 
file:custo/cxf-rt-bindings-soap-3.3.8.jar because of missing requirement 
javax.xml.soap
 Key: CXF-8814
 URL: https://issues.apache.org/jira/browse/CXF-8814
 Project: CXF
  Issue Type: Bug
  Components: Integration
Reporter: XIAOMING ZHAO


Hello, 

We are upgrading cxf 3.2.13 to 3.3.8 or 3.3.11, we always got the following 
error in osgi felix.log, we didn't add a javax.xml.soap dependencies in gradle 
file, so it's from jdk.

Would you please let me know how to resolve this error?
{code:java}
WARN - 2023-01-13 07:33:32,85 - FelixDispatchQueue - Could not start bundle: 
file:custo/cxf-rt-bindings-soap-3.3.8.jar
org.osgi.framework.BundleException: Unable to resolve 
org.apache.cxf.cxf-rt-bindings-soap [88](R 88.0): missing requirement 
[org.apache.cxf.cxf-rt-bindings-soap [88](R 88.0)] osgi.wiring.package; 
(&(osgi.wiring.package=javax.xml.soap)(version>=1.3.0)(!(version>=2.0.0))) 
Unresolved requirements: [[org.apache.cxf.cxf-rt-bindings-soap [88](R 88.0)] 
osgi.wiring.package; 
(&(osgi.wiring.package=javax.xml.soap)(version>=1.3.0)(!(version>=2.0.0)))]
    at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:1006)
    at 
com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl$DeployedBundle.start(BundleInstallerImpl.java:935)
    at 
com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.startBundles(BundleInstallerImpl.java:624)
    at 
com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.finishInitialisation(BundleInstallerImpl.java:260)
    at 
com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.frameworkEvent(BundleInstallerImpl.java:244)
    at 
org.apache.felix.framework.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:881)
    at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:830)
    at org.apache.felix.framework.EventDispatcher.run(EventDispatcher.java:1147)
    at 
org.apache.felix.framework.EventDispatcher.access$000(EventDispatcher.java:54)
    at 
org.apache.felix.framework.EventDispatcher$1.run(EventDispatcher.java:102)
    at java.lang.Thread.run(Thread.java:750)
WARN - 2023-01-13 07:33:32,152 - FelixDispatchQueue - Could not start bundle: 
file:custo/cxf-rt-frontend-jaxws-3.3.8.jar
org.osgi.framework.BundleException: Unable to resolve 
org.apache.cxf.cxf-rt-frontend-jaxws [102](R 102.0): missing requirement 
[org.apache.cxf.cxf-rt-frontend-jaxws [102](R 102.0)] osgi.wiring.package; 
(&(osgi.wiring.package=javax.xml.soap)(version>=1.3.0)(!(version>=2.0.0))) 
Unresolved requirements: [[org.apache.cxf.cxf-rt-frontend-jaxws [102](R 102.0)] 
osgi.wiring.package; 
(&(osgi.wiring.package=javax.xml.soap)(version>=1.3.0)(!(version>=2.0.0)))]
    at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:1006)
    at 
com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl$DeployedBundle.start(BundleInstallerImpl.java:935)
    at 
com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.startBundles(BundleInstallerImpl.java:624)
    at 
com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.finishInitialisation(BundleInstallerImpl.java:260)
    at 
com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.frameworkEvent(BundleInstallerImpl.java:244)
    at 
org.apache.felix.framework.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:881)
    at 
org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:830)
    at org.apache.felix.framework.EventDispatcher.run(EventDispatcher.java:1147)
    at 
org.apache.felix.framework.EventDispatcher.access$000(EventDispatcher.java:54)
    at 
org.apache.felix.framework.EventDispatcher$1.run(EventDispatcher.java:102)
    at java.lang.Thread.run(Thread.java:750){code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CXF-8814) Could not start bundle: file:custo/cxf-rt-bindings-soap-3.3.8.jar because of missing requirement javax.xml.soap

2023-01-27 Thread Andriy Redko (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17681500#comment-17681500
 ] 

Andriy Redko commented on CXF-8814:
---

[~xzhao1] could you please provide:

 - what version of Felix runtime are you using
 - do you use Apache Karaf or another OSGi container (if yes, which one and 
version)
 - what JDK are you using

Thank you.

> Could not start bundle: file:custo/cxf-rt-bindings-soap-3.3.8.jar because of 
> missing requirement javax.xml.soap
> ---
>
> Key: CXF-8814
> URL: https://issues.apache.org/jira/browse/CXF-8814
> Project: CXF
>  Issue Type: Bug
>  Components: Integration
>Reporter: XIAOMING ZHAO
>Priority: Major
>
> Hello, 
> We are upgrading cxf 3.2.13 to 3.3.8 or 3.3.11, we always got the following 
> error in osgi felix.log, we didn't add a javax.xml.soap dependencies in 
> gradle file, so it's from jdk.
> Would you please let me know how to resolve this error?
> {code:java}
> WARN - 2023-01-13 07:33:32,85 - FelixDispatchQueue - Could not start bundle: 
> file:custo/cxf-rt-bindings-soap-3.3.8.jar
> org.osgi.framework.BundleException: Unable to resolve 
> org.apache.cxf.cxf-rt-bindings-soap [88](R 88.0): missing requirement 
> [org.apache.cxf.cxf-rt-bindings-soap [88](R 88.0)] osgi.wiring.package; 
> (&(osgi.wiring.package=javax.xml.soap)(version>=1.3.0)(!(version>=2.0.0))) 
> Unresolved requirements: [[org.apache.cxf.cxf-rt-bindings-soap [88](R 88.0)] 
> osgi.wiring.package; 
> (&(osgi.wiring.package=javax.xml.soap)(version>=1.3.0)(!(version>=2.0.0)))]
>     at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
>     at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
>     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:1006)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl$DeployedBundle.start(BundleInstallerImpl.java:935)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.startBundles(BundleInstallerImpl.java:624)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.finishInitialisation(BundleInstallerImpl.java:260)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.frameworkEvent(BundleInstallerImpl.java:244)
>     at 
> org.apache.felix.framework.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:881)
>     at 
> org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:830)
>     at 
> org.apache.felix.framework.EventDispatcher.run(EventDispatcher.java:1147)
>     at 
> org.apache.felix.framework.EventDispatcher.access$000(EventDispatcher.java:54)
>     at 
> org.apache.felix.framework.EventDispatcher$1.run(EventDispatcher.java:102)
>     at java.lang.Thread.run(Thread.java:750)
> WARN - 2023-01-13 07:33:32,152 - FelixDispatchQueue - Could not start bundle: 
> file:custo/cxf-rt-frontend-jaxws-3.3.8.jar
> org.osgi.framework.BundleException: Unable to resolve 
> org.apache.cxf.cxf-rt-frontend-jaxws [102](R 102.0): missing requirement 
> [org.apache.cxf.cxf-rt-frontend-jaxws [102](R 102.0)] osgi.wiring.package; 
> (&(osgi.wiring.package=javax.xml.soap)(version>=1.3.0)(!(version>=2.0.0))) 
> Unresolved requirements: [[org.apache.cxf.cxf-rt-frontend-jaxws [102](R 
> 102.0)] osgi.wiring.package; 
> (&(osgi.wiring.package=javax.xml.soap)(version>=1.3.0)(!(version>=2.0.0)))]
>     at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
>     at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
>     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:1006)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl$DeployedBundle.start(BundleInstallerImpl.java:935)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.startBundles(BundleInstallerImpl.java:624)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.finishInitialisation(BundleInstallerImpl.java:260)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.frameworkEvent(BundleInstallerImpl.java:244)
>     at 
> org.apache.felix.framework.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:881)
>     at 
> org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:830)
>     at 
> org.apache.felix.framework.EventDispatcher.run(EventDispatcher.java:1147)
>     at 
> org.apache.felix.framework.EventDispatcher.access$000(EventDispatcher.java:54)
>     at 
> org.apache.felix.framework.EventDispatcher$1.run(EventDispatcher.java:102)
>     at java.lang.Thread.run(Thread.java:750){code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CXF-8814) Could not start bundle: file:custo/cxf-rt-bindings-soap-3.3.8.jar because of missing requirement javax.xml.soap

2023-01-27 Thread XIAOMING ZHAO (Jira)


[ 
https://issues.apache.org/jira/browse/CXF-8814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17681507#comment-17681507
 ] 

XIAOMING ZHAO commented on CXF-8814:


[~reta]  Thanks for your reply!

Here is some info:

1). I don't how to check the felix run time version, I checked the process, 
looks like it's 7.0.1 from the classpath.

     -cp bundles/org.apache.felix.main-7.0.1.jar

2).  there is only one process in the linux VM started by FelixLauncher.  we 
don't use Apache Karaf,

3). we use openjak 1.8.0_352.

openjdk version "1.8.0_352"
OpenJDK Runtime Environment (build 1.8.0_352-b08)
OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode)

 

Thanks,

XIAOMING.

> Could not start bundle: file:custo/cxf-rt-bindings-soap-3.3.8.jar because of 
> missing requirement javax.xml.soap
> ---
>
> Key: CXF-8814
> URL: https://issues.apache.org/jira/browse/CXF-8814
> Project: CXF
>  Issue Type: Bug
>  Components: Integration
>Reporter: XIAOMING ZHAO
>Priority: Major
>
> Hello, 
> We are upgrading cxf 3.2.13 to 3.3.8 or 3.3.11, we always got the following 
> error in osgi felix.log, we didn't add a javax.xml.soap dependencies in 
> gradle file, so it's from jdk.
> Would you please let me know how to resolve this error?
> {code:java}
> WARN - 2023-01-13 07:33:32,85 - FelixDispatchQueue - Could not start bundle: 
> file:custo/cxf-rt-bindings-soap-3.3.8.jar
> org.osgi.framework.BundleException: Unable to resolve 
> org.apache.cxf.cxf-rt-bindings-soap [88](R 88.0): missing requirement 
> [org.apache.cxf.cxf-rt-bindings-soap [88](R 88.0)] osgi.wiring.package; 
> (&(osgi.wiring.package=javax.xml.soap)(version>=1.3.0)(!(version>=2.0.0))) 
> Unresolved requirements: [[org.apache.cxf.cxf-rt-bindings-soap [88](R 88.0)] 
> osgi.wiring.package; 
> (&(osgi.wiring.package=javax.xml.soap)(version>=1.3.0)(!(version>=2.0.0)))]
>     at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
>     at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
>     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:1006)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl$DeployedBundle.start(BundleInstallerImpl.java:935)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.startBundles(BundleInstallerImpl.java:624)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.finishInitialisation(BundleInstallerImpl.java:260)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.frameworkEvent(BundleInstallerImpl.java:244)
>     at 
> org.apache.felix.framework.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:881)
>     at 
> org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:830)
>     at 
> org.apache.felix.framework.EventDispatcher.run(EventDispatcher.java:1147)
>     at 
> org.apache.felix.framework.EventDispatcher.access$000(EventDispatcher.java:54)
>     at 
> org.apache.felix.framework.EventDispatcher$1.run(EventDispatcher.java:102)
>     at java.lang.Thread.run(Thread.java:750)
> WARN - 2023-01-13 07:33:32,152 - FelixDispatchQueue - Could not start bundle: 
> file:custo/cxf-rt-frontend-jaxws-3.3.8.jar
> org.osgi.framework.BundleException: Unable to resolve 
> org.apache.cxf.cxf-rt-frontend-jaxws [102](R 102.0): missing requirement 
> [org.apache.cxf.cxf-rt-frontend-jaxws [102](R 102.0)] osgi.wiring.package; 
> (&(osgi.wiring.package=javax.xml.soap)(version>=1.3.0)(!(version>=2.0.0))) 
> Unresolved requirements: [[org.apache.cxf.cxf-rt-frontend-jaxws [102](R 
> 102.0)] osgi.wiring.package; 
> (&(osgi.wiring.package=javax.xml.soap)(version>=1.3.0)(!(version>=2.0.0)))]
>     at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
>     at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
>     at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:1006)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl$DeployedBundle.start(BundleInstallerImpl.java:935)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.startBundles(BundleInstallerImpl.java:624)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.finishInitialisation(BundleInstallerImpl.java:260)
>     at 
> com.alcatel.as.service.bundleinstaller.impl.BundleInstallerImpl.frameworkEvent(BundleInstallerImpl.java:244)
>     at 
> org.apache.felix.framework.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:881)
>     at 
> org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:830)
>     at 
> org.apache.felix.framework.EventDispatcher.run(EventDispatcher.java:1147)
>     at 
> org.