You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Benson Margulies <be...@basistech.com> on 2015/07/25 03:09:40 UTC
A Karaf assembly with both CXF and me
I have a project with packaging karaf-assembly.
It has a dependency for CXF:
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>rosette-base-linguistics</artifactId>
<version>${project.version}</version>
<classifier>features</classifier>
<type>xml</type>
</dependency>
But I get wiring errors for JAX-RS when I try to include my feature
that has a service:
[ERROR] Failed to execute goal
org.apache.karaf.tooling:karaf-maven-plugin:4.0.0:assembly
(default-assembly) on project rosapi-assembly: Unable to build
assembly: Unable to resolve root: missing requirement [root]
osgi.identity; osgi.identity=rosapi-worker; type=karaf.feature;
filter:="(&(osgi.identity=rosapi-worker)(type=karaf.feature))" [caused
by: Unable to resolve rosapi-worker/0.0.1.SNAPSHOT: missing
requirement [rosapi-worker/0.0.1.SNAPSHOT] osgi.identity;
osgi.identity=com.basistech.ws.rosapi-endpoint-service;
type=osgi.bundle;
version="[0.0.1.v20150724050121,0.0.1.v20150724050121]";
resolution:=mandatory [caused by: Unable to resolve
com.basistech.ws.rosapi-endpoint-service/0.0.1.v20150724050121:
missing requirement
[com.basistech.ws.rosapi-endpoint-service/0.0.1.v20150724050121]
osgi.wiring.package;
filter:="(&(osgi.wiring.package=javax.ws.rs)(version>=2.0.0)(!(version>=3.0.0)))"]]
-> [Help 1]
Re: A Karaf assembly with both CXF and me
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
it's bevacuse your rosapi-endpoint-service needs javax.ws.rs package,
and no transitive bundle/feature provides it. So, I bet that you don't
have defined cxf-jaxrs feature (especially providing
cxf-rt-frontenv-jaxrs bundle).
Regards
JB
On 07/25/2015 03:09 AM, Benson Margulies wrote:
> I have a project with packaging karaf-assembly.
>
> It has a dependency for CXF:
>
> <dependency>
> <groupId>${project.groupId}</groupId>
> <artifactId>rosette-base-linguistics</artifactId>
> <version>${project.version}</version>
> <classifier>features</classifier>
> <type>xml</type>
> </dependency>
>
> But I get wiring errors for JAX-RS when I try to include my feature
> that has a service:
>
> [ERROR] Failed to execute goal
> org.apache.karaf.tooling:karaf-maven-plugin:4.0.0:assembly
> (default-assembly) on project rosapi-assembly: Unable to build
> assembly: Unable to resolve root: missing requirement [root]
> osgi.identity; osgi.identity=rosapi-worker; type=karaf.feature;
> filter:="(&(osgi.identity=rosapi-worker)(type=karaf.feature))" [caused
> by: Unable to resolve rosapi-worker/0.0.1.SNAPSHOT: missing
> requirement [rosapi-worker/0.0.1.SNAPSHOT] osgi.identity;
> osgi.identity=com.basistech.ws.rosapi-endpoint-service;
> type=osgi.bundle;
> version="[0.0.1.v20150724050121,0.0.1.v20150724050121]";
> resolution:=mandatory [caused by: Unable to resolve
> com.basistech.ws.rosapi-endpoint-service/0.0.1.v20150724050121:
> missing requirement
> [com.basistech.ws.rosapi-endpoint-service/0.0.1.v20150724050121]
> osgi.wiring.package;
> filter:="(&(osgi.wiring.package=javax.ws.rs)(version>=2.0.0)(!(version>=3.0.0)))"]]
> -> [Help 1]
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com