yes we have added definition to 60_LMI_Networking.mof file.

How do we install in /usr/lib(64)/cmpi.



On Mon, Oct 7, 2013 at 6:35 PM, Radek Novacek <rnovacek@redhat.com> wrote:
On Mon 07 of Oct 2013 18:24:33 sunil kumar wrote:
> Hi, i have created association for CIM_NetworkPort and
> LMI_ProtocolEndpoint. There is no error in cmake, make, and also while
> register..
>
>
> But i am getting error in yawn page(browser) error failed ProviderLoad
> Failure.
>
> here is my code and error below.
>
> [ Association, Provider("cmpi:cmpiLMI_Networking"), Version("0.1.0"),
>   Description("An association between a ProtocolEndpoint and NetworkPort.")
> ]
> class LMI_NASNetworkDeviceSAPImplementation: CIM_DeviceSAPImplementation
> {
>     [ Override("Antecedent"),
>       Description("The instance of CIM_NetworkPort subclass "
>         "representing network device.") ]
>     CIM_NetworkPort REF Antecedent;
>
>     [ Override("Dependent"),
>       Description("The instance of LMI_ProtocolEndpoint that represent "
>         "same device as Antecedent.") ]
>     LMI_ProtocolEndpoint REF Dependent;
> };
>
> CIM_ERR_FAILED: ProviderLoadFailure:
> (/usr/lib64/cmpi/libcmpiLMI_Networking.so) Provider is not a CMPI style
> provider. Cannot find
> LMI_NASNetworkDeviceSAPImplementation_Create<mi-type>MI symbol

I see you've added your code to networking provider. The error means that
implementation of LMI_NASNetworkDeviceSAPImplementation class is not part of
libcmpiLMI_Networking.so library.

Did you add the class definition to the mof/60_LMI_Networking.mof?

The library needs to be also installed in /usr/lib(64)/cmpi/. The error
indicates that you might have an old version of the library there.

Radek Novacek