Skip to content

CXF-9163: Remove stale Bundle-Activator from cxf-rt-frontend-jaxws - #3815

Open
coheigea wants to merge 1 commit into
mainfrom
coheigea/CXF-9163
Open

coheigea wants to merge 1 commit into
mainfrom
coheigea/CXF-9163

Conversation

@coheigea

@coheigea coheigea commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

CXF-9163

cxf-rt-frontend-jaxws still declares Bundle-Activator: org.apache.cxf.jaxws.blueprint.Activator and exports a Blueprint NamespaceHandler service, although the org.apache.cxf.jaxws.blueprint package (the Activator, JAXWSBPNamespaceHandler and EndpointDefinitionParser classes) was removed in CXF-8766. The two properties were re-added to the pom by CXF-8879 when the OSGi manifest configuration was restored.

Because the activator class is not in the bundle, bnd adds an Import-Package for its package, so the bundle cannot resolve in an OSGi container:

missing requirement [org.apache.cxf.cxf-rt-frontend-jaxws] osgi.wiring.package;
(osgi.wiring.package=org.apache.cxf.jaxws.blueprint)

This removes cxf.bundle.activator and cxf.export.service (and the "keep in sync with services exported in activator" comment) from rt/frontend/jaxws/pom.xml. No code changes.

The version-range half of CXF-9163 (jakarta.xml.ws, jakarta.xml.soap, jakarta.ws.rs, jakarta.servlet) was fixed in #3808.

Verification

  • The generated manifest no longer contains Bundle-Activator, Export-Service or any reference to org.apache.cxf.jaxws.blueprint.
  • In Apache Karaf 4.5.0, installed cxf-rt-frontend-jaxws with its dependencies (cxf-rt-wsdl, cxf-rt-ws-policy, cxf-rt-bindings-xml/-soap, cxf-rt-databinding-jaxb, cxf-rt-frontend-simple, cxf-rt-ws-addr, neethi, wsdl4j):
    • without this change the bundle fails to resolve with the error above;
    • with it the bundle resolves and starts.
  • In the same container, verified the Fix OSGi Import-Package ranges for jakarta.xml.ws, jakarta.ws.rs and jakarta.xml.soap #3808 ranges: cxf-rt-frontend-jaxrs resolves against jakarta.ws.rs-api 4.0.0, and cxf-core's optional jakarta.xml.ws import is wired, so LoggingFeature (via AbstractFeature extends WebServiceFeature) loads.

Backport

The change applies cleanly to 4.1.x-fixes, which has the same stale activator (the issue was reported against 4.1.3). 4.0.x-fixes is also affected.

@coheigea
coheigea requested a review from reta December 2, 2026 17:03

@ffang ffang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1. Built the bundle with this change: Bundle-Activator, Export-Service and the
org.apache.cxf.jaxws.blueprint import are gone, and the rest of the manifest is unchanged
apart from the #3808 version ranges. The released 4.1.9 jar has the same unresolvable
import, so the 4.1.x backport makes sense.

Possible follow-up: META-INF/blueprint.handlers still names removed handler classes in
jaxws, simple, jaxrs, rs/client and the http/jetty/undertow/netty-server transports, and
four of them still ship schemas/blueprint/*.xsd. They don't affect OSGi resolution, but
they could probably go too.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants