Paul Spencer created KARAF-7634:
-----------------------------------
Summary: Adding Aries JaxRS feature duplicates features
Key: KARAF-7634
URL: https://issues.apache.org/jira/browse/KARAF-7634
Project: Karaf
Issue Type: Documentation
Components: karaf
Affects Versions: 4.4.2
Environment: {{karaf@root()> info}}
{{Karaf}}
{{ Karaf version 4.4.2}}
{{ Karaf home /Users/paul/Downloads/apache-karaf-4.4.2}}
{{ Karaf base /Users/paul/Downloads/apache-karaf-4.4.2}}
{{ OSGi Framework org.apache.felix.framework-7.0.5}}
{{JVM}}
{{ Java Virtual Machine OpenJDK 64-Bit Server VM version 11.0.2+9}}
{{ Version 11.0.2}}
{{ Vendor Oracle Corporation}}
{{ Pid 6517}}
{{ Uptime 21 minutes}}
{{ Process CPU time 20.598 seconds}}
{{ Process CPU load 0.00}}
{{ System CPU load 0.00}}
{{ Open file descriptors 90}}
{{ Max file descriptors 10,240}}
{{ Total compile time 14.524 seconds}}
{{Threads}}
{{ Live threads 60}}
{{ Daemon threads 52}}
{{ Peak 106}}
{{ Total started 198}}
{{Memory}}
{{ Current heap size 49,871 kbytes}}
{{ Maximum heap size 16,777,216 kbytes}}
{{ Committed heap size 1,261,568 kbytes}}
{{ Pending objects 0}}
{{ Garbage collector Name = 'G1 Young Generation', Collections = 5,
Time = 0.035 seconds}}
{{ Garbage collector Name = 'G1 Old Generation', Collections = 0,
Time = 0.000 seconds}}
{{Classes}}
{{ Current classes loaded 8,578}}
{{ Total classes loaded 8,579}}
{{ Total classes unloaded 1}}
{{Operating system}}
{{ Name Mac OS X version 10.16}}
{{ Architecture x86_64}}
{{ Processors 16}}
{{karaf@root()>
}}
Reporter: Paul Spencer
Simply adding the org.apache.aries.jax.rs/1.0.6 feature repo duplicates
existing pax and other features.
To recreate:
# Extract Karaf from the distribution
# Start Karaf using
bin/karaf
# List features using
feature:list | grep pax-web | sort
# Add the Aries JaxRS repo using
feature:repo-add
mvn:org.apache.aries.jax.rs/org.apache.aries.jax.rs.features/1.0.6/xml
# List features using to see the duplicate features
feature:list | grep pax-web | sort
.
** Example below
{{ __ __ ____ }}
{{ / //_/____ __________ _/ __/ }}
{{ / ,< / __ `/ ___/ __ `/ /_ }}
{{ / /| |/ /_/ / / / /_/ / __/ }}
{{ /_/ |_|\__,_/_/ \__,_/_/ }}
{{ Apache Karaf (4.4.2)}}
{{Hit '<tab>' for a list of available commands}}
{{and '[cmd] --help' for help on a specific command.}}
{{Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.}}
{{karaf@root()> feature:list | grep pax-web | sort
}}
{{pax-web-core │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Core Pax Web bundles}}
{{pax-web-http │ 8.0.11 │ │ Uninstalled
│ standard-4.4.2 │ Pax Web OSGi HTTP Service}}
{{pax-web-http-jetty │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Http Service implementation using Jetty
9}}
{{pax-web-http-tomcat │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Http Service implementation using Tomcat
9}}
{{pax-web-http-undertow │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Http Service implementation using
Undertow 2}}
{{pax-web-http-war │ 4.4.2 │ │ Uninstalled
│ standard-4.4.2 │ Turn Karaf as a full WebContainer}}
{{pax-web-http-whiteboard │ 8.0.11 │ │ Uninstalled
│ standard-4.4.2 │ Pax Web OSGi HTTP Whiteboard support}}
{{pax-web-jetty │ 9.4.49.v20220914 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Jetty 9 bundles}}
{{pax-web-jetty-extras │ 9.4.49.v20220914 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Jetty 9 additional bundles}}
{{pax-web-jetty-http2 │ 9.4.49.v20220914 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Jetty 9 bundles for HTTP/2 support}}
{{pax-web-jetty-http2-jdk8 │ 9.4.49.v20220914 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Jetty 9 bundles for HTTP/2 support
(JDK8)}}
{{pax-web-jetty-http2-jdk9 │ 9.4.49.v20220914 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Jetty 9 bundles for HTTP/2 support
(JDK9+)}}
{{pax-web-jetty-websockets │ 9.4.49.v20220914 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Jetty 9 bundles for Web Sockets support}}
{{pax-web-jsp │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │}}
{{pax-web-karaf │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Pax Web Karaf integration}}
{{pax-web-specs │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Jakarta web APIs and related bundle
fragments add}}
{{pax-web-tomcat │ 9.0.67 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Tomcat 9 bundles}}
{{pax-web-tomcat-websockets │ 9.0.67 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Tomcat 9 bundles for Web Sockets support}}
{{pax-web-undertow │ 2.2.19.Final │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Undertow 2 bundles}}
{{pax-web-undertow-websockets │ 2.2.19.Final │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Undertow 2 bundles for Web Sockets
support}}
{{pax-web-war │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Web Applications implementation}}
{{pax-web-websockets │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Pax Web bundles for Web Sockets (JSR 356)
support}}
{{pax-web-whiteboard │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Whiteboard Service implementation}}
{{karaf@root()> feature:repo-add
mvn:org.apache.aries.jax.rs/org.apache.aries.jax.rs.features/1.0.6/xml
}}
{{Adding feature url
mvn:org.apache.aries.jax.rs/org.apache.aries.jax.rs.features/1.0.6/xml}}
{{karaf@root()> feature:list | grep pax-web | sort }}
{{pax-web-core │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Core Pax Web bundles}}
{{pax-web-http │ 8.0.11 │ │ Uninstalled
│ standard-4.4.2 │ Pax Web OSGi HTTP Service}}
{{pax-web-http │ 8.0.11 │ │ Uninstalled
│ standard-4.4.2 │ Pax Web OSGi HTTP Service}}
{{pax-web-http-jetty │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Http Service implementation using Jetty
9}}
{{pax-web-http-tomcat │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Http Service implementation using Tomcat
9}}
{{pax-web-http-undertow │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Http Service implementation using
Undertow 2}}
{{pax-web-http-war │ 4.4.2 │ │ Uninstalled
│ standard-4.4.2 │ Turn Karaf as a full WebContainer}}
{{pax-web-http-war │ 4.4.2 │ │ Uninstalled
│ standard-4.4.2 │ Turn Karaf as a full WebContainer}}
{{pax-web-http-whiteboard │ 8.0.11 │ │ Uninstalled
│ standard-4.4.2 │ Pax Web OSGi HTTP Whiteboard support}}
{{pax-web-http-whiteboard │ 8.0.11 │ │ Uninstalled
│ standard-4.4.2 │ Pax Web OSGi HTTP Whiteboard support}}
{{pax-web-jetty │ 9.4.49.v20220914 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Jetty 9 bundles}}
{{pax-web-jetty-extras │ 9.4.49.v20220914 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Jetty 9 additional bundles}}
{{pax-web-jetty-http2 │ 9.4.49.v20220914 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Jetty 9 bundles for HTTP/2 support}}
{{pax-web-jetty-http2-jdk8 │ 9.4.49.v20220914 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Jetty 9 bundles for HTTP/2 support
(JDK8)}}
{{pax-web-jetty-http2-jdk9 │ 9.4.49.v20220914 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Jetty 9 bundles for HTTP/2 support
(JDK9+)}}
{{pax-web-jetty-websockets │ 9.4.49.v20220914 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Jetty 9 bundles for Web Sockets support}}
{{pax-web-jsp │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │}}
{{pax-web-karaf │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Pax Web Karaf integration}}
{{pax-web-specs │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Jakarta web APIs and related bundle
fragments add}}
{{pax-web-tomcat │ 9.0.67 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Tomcat 9 bundles}}
{{pax-web-tomcat-websockets │ 9.0.67 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Tomcat 9 bundles for Web Sockets support}}
{{pax-web-undertow │ 2.2.19.Final │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Undertow 2 bundles}}
{{pax-web-undertow-websockets │ 2.2.19.Final │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Undertow 2 bundles for Web Sockets
support}}
{{pax-web-war │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Web Applications implementation}}
{{pax-web-websockets │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Pax Web bundles for Web Sockets (JSR 356)
support}}
{{pax-web-whiteboard │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Whiteboard Service implementation}}
{{karaf@root()> feature:list | grep whiteboard | sort
}}
{{aries-jax-rs-whiteboard │ 1.0.6 │ │ Uninstalled
│ aries-jax-rs-1.0.6 │}}
{{aries-jax-rs-whiteboard-jackson │ 1.0.0 │ │ Uninstalled
│ aries-jax-rs-1.0.6 │}}
{{http-whiteboard │ 8.0.11 │ │ Uninstalled
│ standard-4.4.2 │ Transition feature for backward
compatibility}}
{{http-whiteboard │ 8.0.11 │ │ Uninstalled
│ standard-4.4.2 │ Transition feature for backward
compatibility}}
{{pax-web-http-whiteboard │ 8.0.11 │ │ Uninstalled
│ standard-4.4.2 │ Pax Web OSGi HTTP Whiteboard support}}
{{pax-web-http-whiteboard │ 8.0.11 │ │ Uninstalled
│ standard-4.4.2 │ Pax Web OSGi HTTP Whiteboard support}}
{{pax-web-whiteboard │ 8.0.11 │ │ Uninstalled
│ org.ops4j.pax.web-8.0.11 │ Whiteboard Service implementation}}
{{karaf@root()>
}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)