Forcing the removal does not work for me.  I will try other methods suggested 
by JB

Below is a summary of testing results followed by supporting data
1) Removing the repo was never reflected in the feature:repo-list
2) Installing the feature pax-web-http-jetty after the 8.0.15 repo was removed 
and the 8.0.16 repo was added failed with "Fragment was not selected for 
attachment: org.ops4j.pax.web.pax-web-compatibility-servlet31/8.0.15"

***
*  Supporting data for #1
***
karaf@root()> feature:repo-remove -u 
mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
Removing features repository: 
mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
karaf@root()> feature:repo-list
Repository                        │ URL
──────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────
org.ops4j.pax.jdbc-1.5.5          │ 
mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.5.5/xml/features
org.ops4j.pax.web-8.0.15          │ 
mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
...
pax-jms-1.1.2                     │ 
mvn:org.ops4j.pax.jms/pax-jms-features/1.1.2/xml/features
karaf@root()> feature:repo-add 
mvn:org.ops4j.pax.web/pax-web-features/8.0.16/xml/features                      
                     
Adding feature url mvn:org.ops4j.pax.web/pax-web-features/8.0.16/xml/features
karaf@root()> feature:repo-list
Repository                        │ URL
──────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────
org.ops4j.pax.web-8.0.16          │ 
mvn:org.ops4j.pax.web/pax-web-features/8.0.16/xml/features
org.ops4j.pax.jdbc-1.5.5          │ 
mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.5.5/xml/features
org.ops4j.pax.web-8.0.15          │ 
mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
...
pax-jms-1.1.2                     │ 
mvn:org.ops4j.pax.jms/pax-jms-features/1.1.2/xml/features
karaf@root()> feature:repo-remove -u 
mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
Removing features repository: 
mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
karaf@root()> feature:repo-list
Repository                        │ URL
──────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────
org.ops4j.pax.web-8.0.16          │ 
mvn:org.ops4j.pax.web/pax-web-features/8.0.16/xml/features
org.ops4j.pax.jdbc-1.5.5          │ 
mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.5.5/xml/features
org.ops4j.pax.web-8.0.15          │ 
mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
openjpa-3.2.2                     │ 
mvn:org.apache.openjpa/openjpa-features/3.2.2/xml/features
...
pax-jms-1.1.2                     │ 
mvn:org.ops4j.pax.jms/pax-jms-features/1.1.2/xml/features
karaf@root()> logout
sparrow:apache-karaf-4.4.3 paul$ bin/karaf
karaf@root()> feature:repo-list                                                 
                                               
Repository                        │ URL
──────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────
org.ops4j.pax.web-8.0.16          │ 
mvn:org.ops4j.pax.web/pax-web-features/8.0.16/xml/features
org.ops4j.pax.jdbc-1.5.5          │ 
mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.5.5/xml/features
org.ops4j.pax.web-8.0.15          │ 
mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
openjpa-3.2.2                     │ 
mvn:org.apache.openjpa/openjpa-features/3.2.2/xml/features
...
pax-jms-1.1.2                     │ 
mvn:org.ops4j.pax.jms/pax-jms-features/1.1.2/xml/features
karaf@root()> feature:list --installed
Name         │ Version │ Required │ State   │ Repository     │ Description
─────────────┼─────────┼──────────┼─────────┼────────────────┼──────────────────────────────────────────────────
feature      │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ Features Support
shell        │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ Karaf Shell
deployer     │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ Karaf Deployer
bundle       │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ Provide Bundle 
support
config       │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ Provide OSGi 
ConfigAdmin support
diagnostic   │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ Provide 
Diagnostic support
instance     │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ Provide Instance 
support
jaas         │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ Provide JAAS 
support
log          │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ Provide Log 
support
package      │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ Package commands 
and mbeans
service      │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ Provide Service 
support
system       │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ Provide System 
support
kar          │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ Provide KAR 
(KARaf archive) support
ssh          │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ Provide a SSHd 
server on Karaf
management   │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ Provide a JMX 
MBeanServer and a set of MBeans in
eventadmin   │ 4.4.3   │ x        │ Started │ standard-4.4.3 │ OSGi Event Admin 
service specification for event-
pax-url-wrap │ 2.6.12  │          │ Started │ standard-4.4.3 │ Wrap URL handler
wrap         │ 2.6.12  │ x        │ Started │ standard-4.4.3 │ Transition 
feature to pax-url-wrap
karaf@root()> feature:repo-remove -u 
mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
Removing features repository: 
mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
karaf@root()> feature:repo-list
Repository                        │ URL
──────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────
org.ops4j.pax.web-8.0.16          │ 
mvn:org.ops4j.pax.web/pax-web-features/8.0.16/xml/features
org.ops4j.pax.jdbc-1.5.5          │ 
mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.5.5/xml/features
org.ops4j.pax.web-8.0.15          │ 
mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features


***
* Supporting data for #2
***

sparrow:apache-karaf-4.4.3 paul$ bin/karaf clean 
        __ __                  ____      
       / //_/____ __________ _/ __/      
      / ,<  / __ `/ ___/ __ `/ /_        
     / /| |/ /_/ / /  / /_/ / __/        
    /_/ |_|\__,_/_/   \__,_/_/         

  Apache Karaf (4.4.3)

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:repo-remove -u 
mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features                      
                                                                                
                               
Removing features repository: 
mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
karaf@root()> feature:repo-add 
mvn:org.ops4j.pax.web/pax-web-features/8.0.16/xml/features                      
                                                                                
                                     
Adding feature url mvn:org.ops4j.pax.web/pax-web-features/8.0.16/xml/features
karaf@root()> feature:install  pax-web-http-jetty
org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: 
missing requirement [root] osgi.identity; osgi.identity=pax-web-http-jetty; 
type=karaf.feature; version="[8.0.16,8.0.16]"; 
filter:="(&(osgi.identity=pax-web-http-jetty)(type=karaf.feature)(version>=8.0.16)(version<=8.0.16))"
 [caused by: Unable to resolve pax-web-http-jetty/8.0.16: missing requirement 
[pax-web-http-jetty/8.0.16] osgi.identity; osgi.identity=pax-web-jetty; 
type=karaf.feature [caused by: Unable to resolve 
pax-web-jetty/9.4.50.v20221201: missing requirement 
[pax-web-jetty/9.4.50.v20221201] osgi.identity; 
osgi.identity=org.ops4j.pax.web.pax-web-compatibility-servlet31; 
type=osgi.fragment; version="[8.0.15,8.0.15]"; resolution:=mandatory [caused 
by: Fragment was not selected for attachment: 
org.ops4j.pax.web.pax-web-compatibility-servlet31/8.0.15]]]
        at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
        at 
org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:433)
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:420)
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:374)
        at 
org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:256)
        at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:399)
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1069)
        at 
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:1004)
        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 
pax-web-http-jetty/8.0.16: missing requirement [pax-web-http-jetty/8.0.16] 
osgi.identity; osgi.identity=pax-web-jetty; type=karaf.feature [caused by: 
Unable to resolve pax-web-jetty/9.4.50.v20221201: missing requirement 
[pax-web-jetty/9.4.50.v20221201] osgi.identity; 
osgi.identity=org.ops4j.pax.web.pax-web-compatibility-servlet31; 
type=osgi.fragment; version="[8.0.15,8.0.15]"; resolution:=mandatory [caused 
by: Fragment was not selected for attachment: 
org.ops4j.pax.web.pax-web-compatibility-servlet31/8.0.15]]
        at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
        ... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve 
pax-web-jetty/9.4.50.v20221201: missing requirement 
[pax-web-jetty/9.4.50.v20221201] osgi.identity; 
osgi.identity=org.ops4j.pax.web.pax-web-compatibility-servlet31; 
type=osgi.fragment; version="[8.0.15,8.0.15]"; resolution:=mandatory [caused 
by: Fragment was not selected for attachment: 
org.ops4j.pax.web.pax-web-compatibility-servlet31/8.0.15]
        at 
org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
        ... 13 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Fragment was not 
selected for attachment: 
org.ops4j.pax.web.pax-web-compatibility-servlet31/8.0.15
        at 
org.apache.felix.resolver.Candidates$FragmentNotSelectedError.toException(Candidates.java:1305)
        ... 14 more
Error executing command: Unable to resolve root: missing requirement [root] 
osgi.identity; osgi.identity=pax-web-http-jetty; type=karaf.feature; 
version="[8.0.16,8.0.16]"; 
filter:="(&(osgi.identity=pax-web-http-jetty)(type=karaf.feature)(version>=8.0.16)(version<=8.0.16))"
 [caused by: Unable to resolve pax-web-http-jetty/8.0.16: missing requirement 
[pax-web-http-jetty/8.0.16] osgi.identity; osgi.identity=pax-web-jetty; 
type=karaf.feature [caused by: Unable to resolve 
pax-web-jetty/9.4.50.v20221201: missing requirement 
[pax-web-jetty/9.4.50.v20221201] osgi.identity; 
osgi.identity=org.ops4j.pax.web.pax-web-compatibility-servlet31; 
type=osgi.fragment; version="[8.0.15,8.0.15]"; resolution:=mandatory [caused 
by: Fragment was not selected for attachment: 
org.ops4j.pax.web.pax-web-compatibility-servlet31/8.0.15]]]
karaf@root()>    


Paul Spencer
                                                                                
                                                                                
                                                   
> On Feb 25, 2023, at 2:00 AM, Grzegorz Grzybek <[email protected]> wrote:
> 
> Hello
> 
> Worked for me ;) Or at least after I added 8.0.16 feature repo, when you 
> install pax-web feature the newer version will be used.
> 
> regards
> Grzegorz Grzybek
> 
> sob., 25 lut 2023 o 06:25 Jean-Baptiste Onofré <[email protected]> napisał(a):
> Do you have pax-web features installed ? You can "force" the removal
> (feature:repo-remove -u).
> 
> Regards
> JB
> 
> On Sat, Feb 25, 2023 at 2:18 AM Paul Spencer <[email protected]> 
> wrote:
> >
> > Grzegoz,
> >
> > Removing the pax-web 8.0.15 repo does not remove the repository.  Below is 
> > from a fresh install of karaf.
> >
> > Karaf 4.4.3
> > Java 1.8.0_172
> > Mac OS X 10.16 x86_64
> >
> >
> > karaf@root()> feature:repo-remove 
> > mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
> > Removing features repository: 
> > mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
> > karaf@root()> feature:repo-list
> > Repository                        │ URL
> > ──────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────
> > org.ops4j.pax.jdbc-1.5.5          │ 
> > mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.5.5/xml/features
> > org.ops4j.pax.web-8.0.15          │ 
> > mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
> > openjpa-3.2.2                     │ 
> > mvn:org.apache.openjpa/openjpa-features/3.2.2/xml/features
> > aries-jpa-2.7.3                   │ 
> > mvn:org.apache.aries.jpa/jpa-features/2.7.3/xml/features
> > framework-4.4.3                   │ 
> > mvn:org.apache.karaf.features/framework/4.4.3/xml/features
> > hibernate-validator-osgi-features │ 
> > mvn:org.hibernate.validator/hibernate-validator-osgi-karaf-features/7.0.2.Final/xml/features
> > standard-4.4.3                    │ 
> > mvn:org.apache.karaf.features/standard/4.4.3/xml/features
> > spring-4.4.3                      │ 
> > mvn:org.apache.karaf.features/spring/4.4.3/xml/features
> > specs-4.4.3                       │ 
> > mvn:org.apache.karaf.features/specs/4.4.3/xml/features
> > pax-transx-0.5.3                  │ 
> > mvn:org.ops4j.pax.transx/pax-transx-features/0.5.3/xml/features
> > enterprise-4.4.3                  │ 
> > mvn:org.apache.karaf.features/enterprise/4.4.3/xml/features
> > org.ops4j.pax.cdi-1.1.4           │ 
> > mvn:org.ops4j.pax.cdi/pax-cdi-features/1.1.4/xml/features
> > pax-jms-1.1.2                     │ 
> > mvn:org.ops4j.pax.jms/pax-jms-features/1.1.2/xml/features
> > karaf@root()>
> >
> > > On Feb 24, 2023, at 2:50 PM, Grzegorz Grzybek <[email protected]> 
> > > wrote:
> > >
> > > Hello
> > >
> > > Just replace them ;)
> > >
> > > karaf@root()> feature:repo-remove 
> > > mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
> > > Removing features repository: 
> > > mvn:org.ops4j.pax.web/pax-web-features/8.0.15/xml/features
> > >
> > > karaf@root()> feature:repo-add 
> > > mvn:org.ops4j.pax.web/pax-web-features/8.0.16/xml/features
> > > Adding feature url 
> > > mvn:org.ops4j.pax.web/pax-web-features/8.0.16/xml/features
> > >
> > > And then the features you install will come from 8.0.16.
> > >
> > > regards
> > > Grzegoz Grzybek
> > >
> > > pt., 24 lut 2023 o 20:48 Paul Spencer <[email protected]> 
> > > napisał(a):
> > > I see that Pax Web version 8.0.16 has been released.  How do I utilize 
> > > the version 8.0.16 in Karaf 4.4.3?
> > >
> > > Paul Spencer
> >

Reply via email to