Hi first gratulation to the new website and the examples. I like it! I tried
to install the new examples for jpa (karaf/examples/karaf-jpa-examples. I
was able to clean install it and add the repo to karaf-4.2.0. Then I
succeeded to install the datasource feature. Trying to install the provider
feature did not work. First the feature hibernate had a wrong version in the
added feature (4.3.6.Final, instead of 5.2.9.Final). I corrected this and
did a new repo add. Then the same install failed due to wrong version of
existing Aries-proxy feature. I added the right one via deploy. After that
the next exception says (see below, and now I don't know further:

karaf@root()> feature:install karaf-jpa-example-provider
org.osgi.service.resolver.ResolutionException: Unable to resolve root:
missing requirement [root] osgi.identity;
osgi.identity=karaf-jpa-example-provider; type=karaf.feature;
version="[4.2.0.SNAPSHOT,4.2.0.SNAPSHOT]";
filter:="(&(osgi.identity=karaf-jpa-example-provider)(type=karaf.feature)(version>=4.2.0.SNAPSHOT)(version<=4.2.0.SNAPSHOT))"
[caused by: Unable to resolve karaf-jpa-example-provider/4.2.0.SNAPSHOT:
missing requirement [karaf-jpa-example-provider/4.2.0.SNAPSHOT]
osgi.identity;
osgi.identity=org.apache.karaf.examples.karaf-jpa-example-provider;
type=osgi.bundle; version="[4.2.0.SNAPSHOT,4.2.0.SNAPSHOT]";
resolution:=mandatory [caused by: Unable to resolve
org.apache.karaf.examples.karaf-jpa-example-provider/4.2.0.SNAPSHOT: missing
requirement
[org.apache.karaf.examples.karaf-jpa-example-provider/4.2.0.SNAPSHOT]
osgi.service; objectClass=javax.persistence.spi.PersistenceProvider;
javax.persistence.provider=org.hibernate.jpa.HibernatePersistenceProvider;
effective:=active]]
        at
org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)
        at 
org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:391)
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:377)
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:331)
        at
org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:248)
        at
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:388)
        at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)
        at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.base/java.lang.Thread.run(Thread.java:844)
Error executing command: Unable to resolve root: missing requirement [root]
osgi.identity; osgi.identity=karaf-jpa-example-provider; type=karaf.feature;
version="[4.2.0.SNAPSHOT,4.2.0.SNAPSHOT]";
filter:="(&(osgi.identity=karaf-jpa-example-provider)(type=karaf.feature)(version>=4.2.0.SNAPSHOT)(version<=4.2.0.SNAPSHOT))"
[caused by: Unable to resolve karaf-jpa-example-provider/4.2.0.SNAPSHOT:
missing requirement [karaf-jpa-example-provider/4.2.0.SNAPSHOT]
osgi.identity;
osgi.identity=org.apache.karaf.examples.karaf-jpa-example-provider;
type=osgi.bundle; version="[4.2.0.SNAPSHOT,4.2.0.SNAPSHOT]";
resolution:=mandatory [caused by: Unable to resolve
org.apache.karaf.examples.karaf-jpa-example-provider/4.2.0.SNAPSHOT: missing
requirement
[org.apache.karaf.examples.karaf-jpa-example-provider/4.2.0.SNAPSHOT]
osgi.service; objectClass=javax.persistence.spi.PersistenceProvider;
javax.persistence.provider=org.hibernate.jpa.HibernatePersistenceProvider;
effective:=active]]
karaf@root()>                                                                   
                                                                                
          



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Reply via email to