You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Nicolas Duminil (Jira)" <ji...@apache.org> on 2020/11/10 11:16:00 UTC

[jira] [Created] (KARAF-6909) Can't deploy Pax CDI 1.1.4-SNAPSHOT on Karaf 4.2.9 and 4.3.0

Nicolas Duminil created KARAF-6909:
--------------------------------------

             Summary: Can't deploy Pax CDI 1.1.4-SNAPSHOT on Karaf 4.2.9 and 4.3.0
                 Key: KARAF-6909
                 URL: https://issues.apache.org/jira/browse/KARAF-6909
             Project: Karaf
          Issue Type: Question
          Components: karaf
    Affects Versions: 4.2.9
         Environment: Ubuntu 20.4 LTS

Karaf 4.2.9/4.3.0

Pax CDI 1.1.4-SNAPSHOT

Deltaspike 1.8.1
            Reporter: Nicolas Duminil


Hello,

I'm investigating a case of using the Deltaspike data module as a repository solution on Karaf. I have issues and, in order to clarify things, I'm looking at the samples provided by the Pax CDI 1.1.4-SNAPSHOT distribution. There are sample projects showing how to use Pax CDI with Deltaspike, for example [https://github.com/ops4j/org.ops4j.pax.cdi/tree/master/pax-cdi-samples/pax-cdi-sample2-service.] But I'm not able to deploy these samples, as shown below:
{code:java}
karaf@root()> feature:repo-add -i mvn:org.ops4j.pax.cdi/pax-cdi-features/1.1.4-SNAPSHOT/xml/features                                                 
>  
Adding feature url mvn:org.ops4j.pax.cdi/pax-cdi-features/1.1.4-SNAPSHOT/xml/features

org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=pax-cdi-web-weld-u
ndertow; type=karaf.feature; version="[1.1.4.SNAPSHOT,1.1.4.SNAPSHOT]"; filter:="(&(osgi.identity=pax-cdi-web-weld-undertow)(type=karaf.feature)(ver
sion>=1.1.4.SNAPSHOT)(version<=1.1.4.SNAPSHOT))" [caused by: Unable to resolve pax-cdi-web-weld-undertow/1.1.4.SNAPSHOT: missing requirement [pax-cd
i-web-weld-undertow/1.1.4.SNAPSHOT] osgi.identity; osgi.identity=org.ops4j.pax.cdi.undertow.weld; type=osgi.bundle; version="[1.1.4.SNAPSHOT,1.1.4.S
NAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.ops4j.pax.cdi.undertow.weld/1.1.4.SNAPSHOT: missing requirement [org.ops4j.pax.cd
i.undertow.weld/1.1.4.SNAPSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=io.undertow.servlet.api)(version>=1.4.0)(!(version>=3.0.0)))"]]

        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)

        at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:434)

        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:421)

        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:375)

        at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)

        at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:392)

        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)

        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)

        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

        at java.base/java.lang.Thread.run(Thread.java:834)

Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve pax-cdi-web-weld-undertow/1.1.4.SNAPSHOT: missing requirement [pax-cd
i-web-weld-undertow/1.1.4.SNAPSHOT] osgi.identity; osgi.identity=org.ops4j.pax.cdi.undertow.weld; type=osgi.bundle; version="[1.1.4.SNAPSHOT,1.1.4.S
NAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.ops4j.pax.cdi.undertow.weld/1.1.4.SNAPSHOT: missing requirement [org.ops4j.pax.cd
i.undertow.weld/1.1.4.SNAPSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=io.undertow.servlet.api)(version>=1.4.0)(!(version>=3.0.0)))"]

        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)

        ... 12 more

Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.ops4j.pax.cdi.undertow.weld/1.1.4.SNAPSHOT: missing requirement [
org.ops4j.pax.cdi.undertow.weld/1.1.4.SNAPSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=io.undertow.servlet.api)(version>=1.4.0)(!(vers
ion>=3.0.0)))"

        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)

        ... 13 more

Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=pax-cdi-web-weld-undertow; type=karaf.featu
re; version="[1.1.4.SNAPSHOT,1.1.4.SNAPSHOT]"; filter:="(&(osgi.identity=pax-cdi-web-weld-undertow)(type=karaf.feature)(version>=1.1.4.SNAPSHOT)(ver
sion<=1.1.4.SNAPSHOT))" [caused by: Unable to resolve pax-cdi-web-weld-undertow/1.1.4.SNAPSHOT: missing requirement [pax-cdi-web-weld-undertow/1.1.4
.SNAPSHOT] osgi.identity; osgi.identity=org.ops4j.pax.cdi.undertow.weld; type=osgi.bundle; version="[1.1.4.SNAPSHOT,1.1.4.SNAPSHOT]"; resolution:=ma
ndatory [caused by: Unable to resolve org.ops4j.pax.cdi.undertow.weld/1.1.4.SNAPSHOT: missing requirement [org.ops4j.pax.cdi.undertow.weld/1.1.4.SNA
PSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=io.undertow.servlet.api)(version>=1.4.0)(!(version>=3.0.0)))"]]                          
karaf@root()>  

{code}
I would really like to get these samples working and to use them such that I could clarify why the combination Pax CDI and Deltaspike doesn't seem to work for me. Could someone please help with that as I'm sure that these samples are meant to work and if they don't in my case, this must be due to my environment ?

Many thanks in advance.

Nicolas



--
This message was sent by Atlassian Jira
(v8.3.4#803005)