You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2025/08/26 12:15:00 UTC
[jira] [Commented] (CXF-9163) OSGI Problems with cxf-rt-frontend-jaxws
[ https://issues.apache.org/jira/browse/CXF-9163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18016275#comment-18016275 ]
Andriy Redko commented on CXF-9163:
-----------------------------------
[~laeubi] the OSGi support for 4.0.0 and above has been removed (see please https://issues.apache.org/jira/browse/CXF-8766), we do not maintain it due to lack of ecosystem support of Jakarta EE (it seems to be slowly changing and may be reconsidered in the future https://issues.apache.org/jira/browse/CXF-9086)
> OSGI Problems with cxf-rt-frontend-jaxws
> ----------------------------------------
>
> Key: CXF-9163
> URL: https://issues.apache.org/jira/browse/CXF-9163
> Project: CXF
> Issue Type: Bug
> Affects Versions: 4.0.0, 4.0.2
> Reporter: Christoph Läubrich
> Priority: Major
>
> When adding cxf-rt-frontend-jaxws as OSGI bundle one get the following error:
> ”Missing requirement: org.apache.cxf.cxf-rt-frontend-jaxws 4.1.3 requires 'java.package; org.apache.cxf.jaxws.blueprint 0.0.0' but it could not be found”
> With version cxf-4.0.0 and above the OSGI bundle activator was removed from cxf-rt-frontend-jaxws, though it is still referenced in the pom for versions 4.0.2 and above. Please also refer to https://issues.apache.org/jira/browse/CXF-8879 where the OSGI bundle manifest were broken since version 4.
> Please also see
> https://github.com/apache/cxf/blob/cxf-4.1.3/rt/frontend/jaxws/pom.xml#L50
> {code}<cxf.export.service>
> org.apache.aries.blueprint.NamespaceHandler;osgi.service.blueprint.namespace=”http://cxf.apache.org/blueprint/jaxws”
> </cxf.export.service>
> <cxf.bundle.activator>org.apache.cxf.jaxws.blueprint.Activator</cxf.bundle.activator>{code}
>
> Also all osgi version properties needs updates. They do not match the versions of the used dependencies.
> See https://github.com/apache/cxf/blob/main/parent/pom.xml#L68
> Version mismatch Example:
> cxf.osgi.jakarta.xml.ws.version = [3,4)
> cxf.jakarta.wsapi.version = 4.0.2
> Both refer to
> <groupId>jakarta.xml.ws</groupId>
> <artifactId>jakarta.xml.ws-api</artifactId>
> Maybe you should think about using maven plugins for the MANIFEST generation like:
> - https://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html
> - https://github.com/bndtools/bnd/tree/master/maven-plugins/bnd-maven-plugin#bnd-process-goal
--
This message was sent by Atlassian Jira
(v8.20.10#820010)