Home Forums Controller platforms ADSAL-OF-Plugins ODL – OSGi problem AD_SAL OpenFlow

This topic contains 0 replies, has 1 voice, and was last updated by  Francesco Santoro 3 years, 2 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #887

    Francesco Santoro
    Participant

    Hi,
    I tried to follow the tutorial posted on http://sdnhub.org/releases/opendaylight-adsal-of-plugins/ to build an app able to use your AD_SAL implementation for OF support.

    However when I tried to start the generated bundle in the OSGi console I got the following error:
    gogo: BundleException: The bundle “francesco.santoro.OFReceiver_0.1.0 [140]” could not be resolved. Reason: Missing Constraint: Import-Package: org.openflow.protocol; version=”[1.3.0,2.0.0)”

    The pom.xml I used is the following one:
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd“>

    <modelVersion>4.0.0</modelVersion>

    <groupId>francesco.santoro</groupId>
    <artifactId>OFReceiver</artifactId>
    <version>0.1</version>
    <packaging>bundle</packaging>

    <build>
    <plugins>
    <plugin>
    <groupId>org.apache.felix</groupId>
    <artifactId>maven-bundle-plugin</artifactId>
    <version>2.4.0</version>
    <extensions>true</extensions>
    <configuration>
    <instructions>
    <Import-Package>
    org.opendaylight.controller.sal.core,
    org.opendaylight.controller.sal.utils,
    org.opendaylight.controller.sal.packet,
    org.opendaylight.controller.sal.match,
    org.opendaylight.controller.sal.action,
    org.opendaylight.controller.sal.flowprogrammer,
    org.opendaylight.controller.switchmanager,
    org.apache.felix.dm,
    org.osgi.service.component,
    org.slf4j,
    org.eclipse.osgi.framework.console,
    org.osgi.framework,
    org.openflow.protocol.*,
    org.opendaylight.protocol_plugin.*
    </Import-Package>
    <Export-Package>
    francesco.santoro.OFReceiver
    </Export-Package>
    <Bundle-Activator>
    francesco.santoro.OFReceiver.Activator
    </Bundle-Activator>
    </instructions>
    </configuration>
    </plugin>
    </plugins>
    </build>

    <dependencies>
    <dependency>
    <groupId>org.opendaylight.controller</groupId>
    <artifactId>sal</artifactId>
    <version>0.7.0</version>
    </dependency>
    <dependency>
    <groupId>org.sdnhub.odl</groupId>
    <artifactId>protocol_plugins.openflow13</artifactId>
    <version>0.1.0-SNAPSHOT</version>
    </dependency>
    <dependency>
    <groupId>org.sdnhub.odl</groupId>
    <artifactId>protocol_plugins.openflow10</artifactId>
    <version>0.1.0-SNAPSHOT</version>
    </dependency>
    <dependency>
    <groupId>org.sdnhub.odl</groupId>
    <artifactId>ofbroker</artifactId>
    <version>0.1.0-SNAPSHOT</version>
    </dependency>
    </dependencies>

    <repositories>
    <!– OpenDaylight releases –>
    <repository>
    <id>opendaylight-mirror</id>
    <name>opendaylight-mirror</name>
    <url>http://nexus.opendaylight.org/content/groups/public/</url&gt;
    <snapshots>
    <enabled>false</enabled>
    </snapshots>
    <releases>
    <enabled>true</enabled>
    <updatePolicy>never</updatePolicy>
    </releases>
    </repository>
    <!– OpenDaylight snapshots –>
    <repository>
    <id>opendaylight-snapshot</id>
    <name>opendaylight-snapshot</name>
    <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url&gt;
    <snapshots>
    <enabled>true</enabled>
    </snapshots>
    <releases>
    <enabled>false</enabled>
    </releases>
    </repository>
    <repository>
    <id>sdnhub-nexus</id>
    <name>sdnhub</name>
    <url>http://repo.sdnhub.org:8080/nexus/content/groups/public</url&gt;
    <releases>
    <enabled>true</enabled>
    </releases>
    <snapshots>
    <enabled>true</enabled>
    </snapshots>
    </repository>
    </repositories>
    </project>

    And my App code tries just to implement the IMessageListener interface.
    The problem seems due to the import of classes.

    I hope you could help me.
    Thanks

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Login with: