Skip to content

Instantly share code, notes, and snippets.

@vorburger
Created September 5, 2018 13:31
Show Gist options
  • Save vorburger/662d8b5f44c41edae2e22ca6f90ab04a to your computer and use it in GitHub Desktop.
Save vorburger/662d8b5f44c41edae2e22ca6f90ab04a to your computer and use it in GitHub Desktop.
odl-etcd-demo-restconf missing org.apache.commons.text
2018-09-05T15:20:10,380 | ERROR | Time-limited test | SingleFeatureTest | 78 - PAXEXAM-PROBE-1476aac8-86ea-4d97-9ec2-62e234288c3f - 0.0.0 | installFeature() failed
org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=odl-etcd-demo-restconf; type=karaf.feature; version="[0.0.1.SNAPSHOT,0.0.1.SNAPSHOT]"; filter:="(&(osgi.identity=odl-etcd-demo-restconf)(type=karaf.feature)(version>=0.0.1.SNAPSHOT)(version<=0.0.1.SNAPSHOT))" [caused by: Unable to resolve odl-etcd-demo-restconf/0.0.1.SNAPSHOT: missing requirement [odl-etcd-demo-restconf/0.0.1.SNAPSHOT] osgi.identity; osgi.identity=odl-restconf; type=karaf.feature; version="[1.9.0.SNAPSHOT,1.9.0.SNAPSHOT]" [caused by: Unable to resolve odl-restconf/1.9.0.SNAPSHOT: missing requirement [odl-restconf/1.9.0.SNAPSHOT] osgi.identity; osgi.identity=org.opendaylight.netconf.restconf-nb-bierman02-auth; type=osgi.bundle; version="[1.9.0.SNAPSHOT,1.9.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.opendaylight.netconf.restconf-nb-bierman02-auth/1.9.0.SNAPSHOT: missing requirement [org.opendaylight.netconf.restconf-nb-bierman02-auth/1.9.0.SNAPSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.opendaylight.netconf.sal.restconf.web)(version>=1.9.0)(!(version>=2.0.0)))" [caused by: Unable to resolve org.opendaylight.netconf.restconf-nb-bierman02/1.9.0.SNAPSHOT: missing requirement [org.opendaylight.netconf.restconf-nb-bierman02/1.9.0.SNAPSHOT] osgi.wiring.package; filter:="(osgi.wiring.package=org.json)" [caused by: Unable to resolve wrap_file__home_vorburger_.m2_repository_org_json_json_20131018_json-20131018.jar/0.0.0: missing requirement [wrap_file__home_vorburger_.m2_repository_org_json_json_20131018_json-20131018.jar/0.0.0] osgi.identity; osgi.identity="root#odl-aaa-shiro-0.9.0.SNAPSHOT"; type=karaf.subsystem; version="[0,0.0.0]"; resolution:=mandatory [caused by: Unable to resolve root#odl-aaa-shiro-0.9.0.SNAPSHOT: missing requirement [root#odl-aaa-shiro-0.9.0.SNAPSHOT] osgi.identity; osgi.identity=odl-aaa-shiro; type=karaf.feature; version="[0.9.0.SNAPSHOT,0.9.0.SNAPSHOT]" [caused by: Unable to resolve odl-aaa-shiro/0.9.0.SNAPSHOT: missing requirement [odl-aaa-shiro/0.9.0.SNAPSHOT] osgi.identity; osgi.identity=org.opendaylight.aaa.shiro; type=osgi.bundle; version="[0.9.0.SNAPSHOT,0.9.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.opendaylight.aaa.shiro/0.9.0.SNAPSHOT: missing requirement [org.opendaylight.aaa.shiro/0.9.0.SNAPSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.apache.commons.text)(version>=1.1.0)(!(version>=2.0.0)))"]]]]]]]]
@vorburger
Copy link
Author

features/odl-etcd-demo-restconf/target/feature/feature.xml :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="odl-etcd-demo-restconf">
    <repository>mvn:org.opendaylight.etcd/odl-mdsal-broker/1.9.0-SNAPSHOT/xml/features</repository>
    <repository>mvn:org.opendaylight.netconf/odl-restconf/1.9.0-SNAPSHOT/xml/features</repository>
    <repository>mvn:org.opendaylight.aaa/odl-aaa-shiro/0.9.0-SNAPSHOT/xml/features</repository>
    <feature name="odl-etcd-demo-restconf" description="odl-etcd-demo-restconf" version="0.0.1.SNAPSHOT">
        <details>OpenDaylight is leading the transformation to Open Software Defined Networking (SDN). For more information, please see https://www.opendaylight.org</details>
        <feature version="1.9.0.SNAPSHOT" prerequisite="false" dependency="false">odl-mdsal-broker</feature>
        <feature version="1.9.0.SNAPSHOT" prerequisite="false" dependency="false">odl-restconf</feature>
        <feature version="0.9.0.SNAPSHOT" prerequisite="false" dependency="false">odl-aaa-shiro</feature>
    </feature>
</features>

@vorburger
Copy link
Author

features/odl-mdsal-broker/target/feature/feature.xml :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="odl-mdsal-broker">
    <repository>mvn:org.opendaylight.etcd/odl-etcd-datastore/0.0.1-SNAPSHOT/xml/features</repository>
    <repository>mvn:org.opendaylight.controller/odl-controller-mdsal-common/1.9.0-SNAPSHOT/xml/features</repository>
    <repository>mvn:org.opendaylight.controller/odl-mdsal-broker-local/1.9.0-SNAPSHOT/xml/features</repository>
    <repository>mvn:org.opendaylight.controller/odl-config-netty/0.10.0-SNAPSHOT/xml/features</repository>
    <feature name="odl-mdsal-broker" description="odl-mdsal-broker" version="1.9.0.SNAPSHOT">
        <details>OpenDaylight is leading the transformation to Open Software Defined Networking (SDN). For more information, please see https://www.opendaylight.org</details>
        <feature version="0.0.0" prerequisite="false" dependency="false">scr</feature>
        <feature version="0.0.1.SNAPSHOT" prerequisite="false" dependency="false">odl-etcd-datastore</feature>
        <feature version="1.9.0.SNAPSHOT" prerequisite="false" dependency="false">odl-controller-mdsal-common</feature>
        <feature version="1.9.0.SNAPSHOT" prerequisite="false" dependency="false">odl-mdsal-broker-local</feature>
        <feature version="0.10.0.SNAPSHOT" prerequisite="false" dependency="false">odl-config-netty</feature>
        <feature prerequisite="true" dependency="false">wrap</feature>
        <bundle>wrap:mvn:net.java.dev.stax-utils/stax-utils/20070216</bundle>
        <bundle>wrap:mvn:com.bea.xml/jsr173-ri/1.0</bundle>
    </feature>
</features>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment