On Tue, Jul 24, 2018 at 12:35 PM, harry.zh...@us.fujitsu.com <
harry.zh...@us.fujitsu.com> wrote:

> Hi Team,
>
>
>
> I have been following the procedures, https://wiki.opendaylight.org/
> view/OpenDaylight_Controller:MD-SAL:Startup_Project_Archetype, to create
> projects. It works with Carbon releases. Recently when I tried it with
> Nitrogen releases, the project creation and compilation were fine, but when
> installed with karaf feature:install, the init method of the Provider was
> not called. I tried all three Nitrogen release and they have the same
> problem.
>
>
>
> The generation command that I used,
>
>
>
> mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller
> -DarchetypeArtifactId=opendaylight-startup-archetype
> -DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/
> opendaylight.releas/ -DarchetypeCatalog=remote -DarchetypeVersion=1.4.3
>
>
>
> Define value for property 'groupId': : org.opendaylight.example
>
> Define value for property 'artifactId': : example
>
> Define value for property 'package':  org.opendaylight.example: :
>
> Define value for property 'classPrefix':  ${artifactId.substring(0,1).
> toUpperCase()}${artifactId.substring(1)}
>
> Define value for property 'copyright': : Yoyodyne, Inc.
>
>
>
> cd example/
>
> mvn clean install
>
> cd karaf/target/assembly/bin
>
> ./karaf
>
> log:display | grep Example
>
> The last command showed nothing. After I did feature:install and installed
> the Example feature without a problem, it still did not show “ExampleProvider
> Session Initiated”.
>
>
>
> In the karaf.log, there is no “ExampleProvider Session Initiated” either.
> After that, I added a rpc to the service, when browse the rpc from apidoc
> url, it says the api was not implemented.
>
>
>
> Could somebody tell me whether some steps changed for bringing up a
> feature?
>
>
>
> I redid the creation with Carbon release with exact the same procedure,
> there were no problems.
>
>
>
>
>

This has come up before in previous mailing list discussions and I don't
recall the details but FWIC, it's b/c the bundle that contains the
ExampleProvider isn't installed, either b/c it's not included in a feature
or that feature isn't installed by the generated local karaf distro.


>
>
>
>
> Thanks,
>
>
>
> Harry
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> controller-dev mailing list
> controller-dev@lists.opendaylight.org
> https://lists.opendaylight.org/mailman/listinfo/controller-dev
>
>
_______________________________________________
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev

Reply via email to