You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Alexander (Jira)" <ji...@apache.org> on 2021/02/28 19:46:00 UTC
[jira] [Commented] (KARAF-6896) Missing feature 'jetty' in repo
'standard-4.3.0'
[ https://issues.apache.org/jira/browse/KARAF-6896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17292497#comment-17292497 ]
Alexander commented on KARAF-6896:
----------------------------------
Hello, [~jbonofre]!
The case with Camel.
Try to install camel 3.8 feature - camel-cxf gives the same issue:
{code:java}
karaf@root()> feature:install camel-cxf
org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=camel-cxf; type=karaf.feature; version="[3.8.0,3.8.0]"; filter:="(&(osgi.identity=camel-cxf)(type=karaf.feature)(version>=3.8.0)(version<=3.8.0))" [caused by: Unable to resolve camel-cxf/3.8.0: missing requirement [camel-cxf/3.8.0] osgi.identity; osgi.identity=cxf-http-provider; type=karaf.feature; version="[3.3.0,4.0.0)" [caused by: Unable to resolve cxf-http-provider/3.5.0.SNAPSHOT: missing requirement [cxf-http-provider/3.5.0.SNAPSHOT] cxf.http.provider [caused by: Unable to resolve cxf-http-jetty/3.5.0.SNAPSHOT: missing requirement [cxf-http-jetty/3.5.0.SNAPSHOT] osgi.identity; osgi.identity=jetty; type=karaf.feature; version="[9.0.0,11.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.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve camel-cxf/3.8.0: missing requirement [camel-cxf/3.8.0] osgi.identity; osgi.identity=cxf-http-provider; type=karaf.feature; version="[3.3.0,4.0.0)" [caused by: Unable to resolve cxf-http-provider/3.5.0.SNAPSHOT: missing requirement [cxf-http-provider/3.5.0.SNAPSHOT] cxf.http.provider [caused by: Unable to resolve cxf-http-jetty/3.5.0.SNAPSHOT: missing requirement [cxf-http-jetty/3.5.0.SNAPSHOT] osgi.identity; osgi.identity=jetty; type=karaf.feature; version="[9.0.0,11.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 cxf-http-provider/3.5.0.SNAPSHOT: missing requirement [cxf-http-provider/3.5.0.SNAPSHOT] cxf.http.provider [caused by: Unable to resolve cxf-http-jetty/3.5.0.SNAPSHOT: missing requirement [cxf-http-jetty/3.5.0.SNAPSHOT] osgi.identity; osgi.identity=jetty; type=karaf.feature; version="[9.0.0,11.0.0)"]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
... 13 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve cxf-http-jetty/3.5.0.SNAPSHOT: missing requirement [cxf-http-jetty/3.5.0.SNAPSHOT] osgi.identity; osgi.identity=jetty; type=karaf.feature; version="[9.0.0,11.0.0)"
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
... 14 more
Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=camel-cxf; type=karaf.feature; version="[3.8.0,3.8.0]"; filter:="(&(osgi.identity=camel-cxf)(type=karaf.feature)(version>=3.8.0)(version<=3.8.0))" [caused by: Unable to resolve camel-cxf/3.8.0: missing requirement [camel-cxf/3.8.0] osgi.identity; osgi.identity=cxf-http-provider; type=karaf.feature; version="[3.3.0,4.0.0)" [caused by: Unable to resolve cxf-http-provider/3.5.0.SNAPSHOT: missing requirement [cxf-http-provider/3.5.0.SNAPSHOT] cxf.http.provider [caused by: Unable to resolve cxf-http-jetty/3.5.0.SNAPSHOT: missing requirement [cxf-http-jetty/3.5.0.SNAPSHOT] osgi.identity; osgi.identity=jetty; type=karaf.feature; version="[9.0.0,11.0.0)"]]]
{code}
And second question, why by default with karaf 4.3.0 added SNAPSHOT repo of cxf?
I think 3.4.2 must be included.
> Missing feature 'jetty' in repo 'standard-4.3.0'
> ------------------------------------------------
>
> Key: KARAF-6896
> URL: https://issues.apache.org/jira/browse/KARAF-6896
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.3.0
> Environment: Karaf-4.3.0 / Java 11.0.9
> Windows 10 / Ubuntu 20.04
> Reporter: Ivan A. Malich
> Assignee: Jean-Baptiste Onofré
> Priority: Major
>
> Feature '_jetty'_ is not present in _standard-4.3.0_ repository.
> So feature '_cxf'_ cannot be installed.
> No '_jetty_' feature:
> {code:java}
> karaf@root()> feature:repo-list
> Repository | URL
> ----------------------------------+---------------------------------------------------------------------------------------------
> spring-4.3.0 | mvn:org.apache.karaf.features/spring/4.3.0/xml/features
> hibernate-validator-osgi-features | mvn:org.hibernate.validator/hibernate-validator-osgi-karaf-features/6.1.6.Final/xml/features
> standard-4.3.0 | mvn:org.apache.karaf.features/standard/4.3.0/xml/features
> org.ops4j.pax.web-7.3.9 | mvn:org.ops4j.pax.web/pax-web-features/7.3.9/xml/features
> aries-jpa-2.7.2 | mvn:org.apache.aries.jpa/jpa-features/2.7.2/xml/features
> pax-transx-0.4.4 | mvn:org.ops4j.pax.transx/pax-transx-features/0.4.4/xml/features
> openjpa-3.1.2 | mvn:org.apache.openjpa/openjpa-features/3.1.2/xml/features
> enterprise-4.3.0 | mvn:org.apache.karaf.features/enterprise/4.3.0/xml/features
> org.ops4j.pax.cdi-1.0.0 | mvn:org.ops4j.pax.cdi/pax-cdi-features/1.0.0/xml/features
> framework-4.3.0 | mvn:org.apache.karaf.features/framework/4.3.0/xml/features
> org.ops4j.pax.jdbc-1.4.4 | mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.4.4/xml/features
> cxf-3.4.0 | mvn:org.apache.cxf.karaf/apache-cxf/RELEASE/xml/features
> org.ops4j.pax.cdi-1.1.3 | mvn:org.ops4j.pax.cdi/pax-cdi-features/1.1.3/xml/features
> pax-jms-1.0.7 | mvn:org.ops4j.pax.jms/pax-jms-features/1.0.7/xml/features
> karaf@root()> feature:list | grep jetty
> pax-jetty | 9.4.31.v20200723 | | Uninstalled | org.ops4j.pax.web-7.3.9 | Provide Jetty engine support
> pax-jetty-http2 | 7.3.9 | | Uninstalled | org.ops4j.pax.web-7.3.9 | Optional additional feature to run Jetty with SPDY
> pax-http-jetty | 7.3.9 | | Uninstalled | org.ops4j.pax.web-7.3.9 |
> pax-cdi-web-weld-jetty | 1.0.0 | | Uninstalled | org.ops4j.pax.cdi-1.0.0 | Weld Web CDI / Jetty support
> cxf-http-jetty | 3.4.0 | | Uninstalled | cxf-3.4.0 |
> pax-cdi-web-weld-jetty | 1.1.3 | | Uninstalled | org.ops4j.pax.cdi-1.1.3 | Weld Web CDI / Jetty support
> karaf@root()>
> {code}
> Cannot install '_cxf_' feature:
> {code:java}
> karaf@root()> feature:install cxf
> org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=cxf; type=karaf.feature; version="[3.4.0,3.4.0]"; filter:="(&(osgi.identity=cxf)(type=karaf.feature)(version>=3.4.0)(version<=3.4.0))" [caused by: Unable to resolve cxf/3.4.0: missing requirement [cxf/3.4.0] osgi.identity; osgi.identity=cxf-http-provider; type=karaf.feature; version="[3.4.0,3.4.0]" [caused by: Unable to resolve cxf-http-provider/3.4.0: missing requirement [cxf-http-provider/3.4.0] cxf.http.provider [caused by: Unable to resolve cxf-http-jetty/3.4.0: missing requirement [cxf-http-jetty/3.4.0] osgi.identity; osgi.identity=jetty; type=karaf.feature; version="[9.0.0,11.0.0)"]]]{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)