On Sun, Apr 17, 2016 at 11:09 PM, Chamila Wijayarathna <[email protected]>
wrote:

> Hi all,
>
> So myself and Malithi dig this issue little bit and observed following.
>
> As I mentioned earlier by default we had opensaml2.6.4wasov2.jar in
> plugins directory and I removed it. But there were an entry in
> /repository/components/default/configuration/org.eclipse.equinox.simpleconfigurator/
> bundles.info file corresponding to that jar file as following.
>
> opensaml,2.6.4.wso2v2,../plugins/opensaml_2.6.4.wso2v2.jar,4,true
>
> Until this entry is there in bundle.info, server is not picking up 
> opensaml_2.6.4.wso2v2.jar
> that I am putting into dropins.
>
> Then I deleted this entry in bundle.info file, and restarted the server.
> Now its picking the v2 jar file in dropins and also in bundle.info file,
> I observed following new entry.
>
> opensaml,2.6.4.wso2v2,../dropins/opensaml_2.6.4.wso2v2.jar,4,true
>
> So what I assumed is, at startup, server is writing an entry at
> bundle.info for every jar in dropins, but since there were the previous
> entry which was also for same jar 'opensaml,2.6.4.wso2v2' it failed to
> write new entry for the jar in the dropins.
>
> Any way these are only observations and If anyone can explain the theory
> behind this, that would be very helpful.
>

The priority is given to the bundles.info file, if you added bundles to the
dropins folder with the same symbolic name and version, it will be ignored,
and if it's not there in bundles.info file new entry will be added.


> Thanks!
>
> On Sun, Apr 17, 2016 at 10:23 PM, Malithi Edirisinghe <[email protected]>
> wrote:
>
>> Hi Chamila,
>>
>> We have specified a version range which is [2.6.0,3.0.0). Both v1 and v2
>> versions get included for this range. Since we have not exactly specified
>> that a particular bundle should pick only v2 version, the bundle could be
>> wired to either v1 or v2 at runtime as per the availability.
>>
>> Thanks,
>> Malithi.
>>
>> On Sun, Apr 17, 2016 at 9:59 PM, Thusitha Thilina Dayaratne <
>> [email protected]> wrote:
>>
>>> Hi Chamila,
>>>
>>> Did you export and import the correct versions ?
>>>
>>> Thanks
>>> Thusitha
>>>
>>> On Sat, Apr 16, 2016 at 1:11 PM, Chamila Wijayarathna <[email protected]>
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>> IS-5.2.0-Beta uses opensaml2.6.4wasov2. I extracted a pack and
>>>> deleted opensaml2.6.4wasov2.jar from its repository/components/plugins
>>>> folder and then copied opensaml2.6.4wasov1.jar into
>>>> repository/components/dropins folder. Here it worked properly where IS got
>>>> started without any issue and I could reproduced an issue which was there
>>>> in v1 but fixed in v2.
>>>>
>>>> Then I copied opensaml2.6.4wasov2.jar into
>>>> repository/components/dropins folder and restarted IS again. But now also I
>>>> could reproduced the earlier mentioned error which implies that IS is still
>>>> picking v1 not v2. According to my understanding about OSGi, here IS should
>>>> pick v2 instead of v1.
>>>>
>>>> Am I doing anything wrong here. What could be the reason for this issue?
>>>>
>>>> Thank You!
>>>>
>>>> --
>>>> *Chamila Dilshan Wijayarathna,*
>>>> Software Engineer
>>>> Mobile:(+94)788193620
>>>> WSO2 Inc., http://wso2.com/
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Thusitha Dayaratne
>>> Software Engineer
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> Mobile  +94712756809
>>> Blog      alokayasoya.blogspot.com
>>> About    http://about.me/thusithathilina
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Malithi Edirisinghe*
>> Senior Software Engineer
>> WSO2 Inc.
>>
>> Mobile : +94 (0) 718176807
>> [email protected]
>>
>
>
>
> --
> *Chamila Dilshan Wijayarathna,*
> Software Engineer
> Mobile:(+94)788193620
> WSO2 Inc., http://wso2.com/
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Aruna Sujith Karunarathna *
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: [email protected] | Web: www.wso2.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to