Sorry I misread your first email. All the jars inside the plugins folder are installed as features. So yes definitely there will be a entry in bundles.info for each. That's why we use patches folder to patch jars in plugins folder. When you deleted a jar this bundles.info entry would not go away. If you try some osgi commands in osgi console ATM you will find issues in there (import). I guess this is just for testing. If you want to patch the jar use the patches folder.
Thanks & Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Sun, Apr 17, 2016 at 11:09 PM, Chamila Wijayarathna <cham...@wso2.com> 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. > > Thanks! > > On Sun, Apr 17, 2016 at 10:23 PM, Malithi Edirisinghe <malit...@wso2.com> > 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 < >> thusit...@wso2.com> wrote: >> >>> Hi Chamila, >>> >>> Did you export and import the correct versions ? >>> >>> Thanks >>> Thusitha >>> >>> On Sat, Apr 16, 2016 at 1:11 PM, Chamila Wijayarathna <cham...@wso2.com> >>> 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 >>>> Dev@wso2.org >>>> 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 >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> >> *Malithi Edirisinghe* >> Senior Software Engineer >> WSO2 Inc. >> >> Mobile : +94 (0) 718176807 >> malit...@wso2.com >> > > > > -- > *Chamila Dilshan Wijayarathna,* > Software Engineer > Mobile:(+94)788193620 > WSO2 Inc., http://wso2.com/ >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev