[ https://issues.apache.org/jira/browse/CXF-8814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17681604#comment-17681604 ]
Andriy Redko commented on CXF-8814: ----------------------------------- [~xzhao1] thank you, I see the problem now, so 3.3.x release line introduced the support for JDK 11 [1], which practically means that CXF OSGi bundles should be importing the dependencies for those modules that have been removed from JDK (otherwise bundles would only work fro JDK-8), the SOAP is one example. To solve this issue, installing the compatibility bundle (cxf-bundle-compatible) should help [2] [1] [https://cxf.apache.org/docs/33-migration-guide.html] [2] https://mvnrepository.com/artifact/org.apache.cxf/cxf-bundle-compatible/3.3.13 > 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)