I am deploying the bundle by placing the bundle in the deploy folder
replacing the existing one in the deploy folder.

On Jul 3, 2016 12:48 AM, "Jean-Baptiste Onofré" <[email protected]> wrote:

> All depends the way you deploy and what artifact you are deploying.
>
> I would advise (using the deploy folder), to cleanup the data folder or to
> uninstall the bundle.
>
> Regards
> JB
>
> On 07/02/2016 07:06 PM, Debraj Manna wrote:
>
>> Right Christian got the actual steps.
>>
>> I had the bundle running with 1.0.1 version of the library. Then in my
>> pom.xml I updated the version to 1.0.3 created the bundle again and
>> placed it in Karaf's deploy folder. Then the version 1.0.3 of the
>> library did not get installed.
>>
>> If I place the bundle in a fresh Karaf installation (where no bundle
>> with version 1.0.1 of the library was installed before) then it is
>> working fine.
>>
>> Can you let me know how can I force to install version 1.0.3 of the
>> library when I place a bundle with 1.0.3 of the library?
>>
>>
>>
>> On Sat, Jul 2, 2016 at 9:45 PM, Christian Schneider
>> <[email protected] <mailto:[email protected]>> wrote:
>>
>>     Karaf does not magically pick up 1.0.1. If it appears then you added
>>     it to the feature file.
>>
>>     Christian
>>
>>     2016-07-02 18:09 GMT+02:00 Debraj Manna <[email protected]
>>     <mailto:[email protected]>>:
>>
>>         Sorry Christian. That is a typo. In spite of adding 1.0.3 of the
>>         library in pom.xml Karaf is still picking 1.0.1 of the library.
>>         That is what I am not able to understand.
>>
>>         On Jul 2, 2016 6:26 PM, "Christian Schneider"
>>         <[email protected] <mailto:[email protected]>> wrote:
>>
>>             In the pom you have a dependency to the 1.0.1 version and
>>             you use the features-generate-descriptor goal which adds
>>             these dependencies to the feature.
>>             If you take a look at the resulting feature xml you will see
>>             that it includes the 1.0.1 version of dogstatsd bundle.
>>
>>             Change the dependency in the pom to the correct version and
>>             it should work.
>>
>>             Christian
>>
>>             2016-07-02 11:05 GMT+02:00 Debraj Manna
>>             <[email protected] <mailto:[email protected]>>:
>>
>>                 pom.xml is here
>>                 <
>> https://gist.github.com/debraj-manna/5823bbea96c610c69a015ccd679b381a>.
>>                 feature.xml is here
>>                 <
>> https://gist.github.com/debraj-manna/6e96d638e4797a1e4e223c455f7500e2>.
>>
>>                 There are no other installation which brings this
>>                 version of library.
>>
>>
>>
>>                 On Sat, Jul 2, 2016 at 12:04 PM, Christian Schneider
>>                 <[email protected]
>>                 <mailto:[email protected]>> wrote:
>>
>>                     I guess the pom you mention is the pom of your
>>                     bundle. This is only the compile time dependency.
>>                     In OSGi by default your import will allow any bugfix
>>                     version of the same minor version. So it will create
>>                     an import for the package with range [1.0,2).
>>
>>                     The important thing is the feature file of your kar
>>                     now. It seems you install the 1.0.1 version of the
>>                     bundle there.
>>
>>                     Can you post a small example somewhere or at least
>>                     the full pom and feature.xml?
>>
>>                     Do you maybe have other installations in the
>>                     framework that bring in the 1.0.1 version?
>>
>>                     Christian
>>
>>                     2016-07-01 22:40 GMT+02:00 Debraj Manna
>>                     <[email protected]
>>                     <mailto:[email protected]>>:
>>
>>                         I tried adding the dependency in features.xml.
>>                         But still same issue. Any thoughts?
>>
>>
>>                         On Jul 1, 2016 7:37 PM, "Debraj Manna"
>>                         <[email protected]
>>                         <mailto:[email protected]>> wrote:
>>
>>                             Hi
>>
>>                             In one of my bundle I am having a dependency
>>                             mentioned below:-
>>
>>                             <dependency>
>>
>>                             <groupId>com.github.arnabk</groupId>
>>
>>                             <artifactId>java-dogstatsd-client</artifactId>
>>
>>                             <version>1.0.3</version>
>>
>>                             </dependency>
>>
>>
>>                             I am using a KAR packaging but after placing
>>                             the bundle in Karaf. I am seeing it is
>>                             importing version 1.0.1 of the library.
>>                             Below is the import I am seeing from Karaf
>>                             web console:-
>>
>>
>>                             com.github.arnabk.statsd,version=0.0.0 from
>>
>> wrap_mvn_com.github.arnabk_java-dogstatsd-client_1.0.1
>>                             (262)
>>                             <
>> http://localhost:8181/system/console/bundles/262>
>>                             com.mysql.jdbc,version=0.0.0 from
>>                             wrap_mvn_mysql_mysql-connector-java_5.1.6
>>                             (270)
>>                             <
>> http://localhost:8181/system/console/bundles/270>
>>                             com.sun.jna,version=0.0.0 from com.sun.jna
>>                             (264)
>>                             <
>> http://localhost:8181/system/console/bundles/264> --
>>                             Overwritten by Boot Delegation
>>                             com.timgroup.statsd,version=0.0.0 from
>>
>> wrap_mvn_com.github.arnabk_java-dogstatsd-client_1.0.1
>>                             (262)
>>                             <
>> http://localhost:8181/system/console/bundles/262>
>>
>>
>>                             Also checkingbundle:list I am seeing
>>                             version1.0.1 of the bundle
>>
>>
>>                             *karaf@root*>bundle:list | grep dog*
>>
>>                             262 | Active |  80 | 0
>>                                          |
>>
>> wrap_mvn_com.github.arnabk_java-dogstatsd-client_1.0.1
>>
>>
>>                             Because my bundle is picking version 1.0.1
>>                             of the dogstatsd client I am getting "Method
>>                             Not Found Error"
>>
>>
>>                             Can some one please let me know:-
>>
>>                              1. Why dogstatsd-client 1.0.1 is getting
>>                                 installed even though I have mentioned
>>                                 1.0.3 in pom.xml?
>>                              2. How can I make my bundle install and use
>>                                 version 1.0.3 version of dogstatsd-client?
>>
>>
>>
>>
>>
>>
>>
>>                     --
>>                     --
>>                     Christian Schneider
>>                     http://www.liquid-reality.de
>>                     <
>> https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de
>> >
>>
>>                     Open Source Architect
>>                     http://www.talend.com
>>                     <
>> https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com
>> >
>>
>>
>>
>>
>>
>>             --
>>             --
>>             Christian Schneider
>>             http://www.liquid-reality.de
>>             <
>> https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de
>> >
>>
>>             Open Source Architect
>>             http://www.talend.com
>>             <
>> https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com
>> >
>>
>>
>>
>>
>>     --
>>     --
>>     Christian Schneider
>>     http://www.liquid-reality.de
>>     <
>> https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de
>> >
>>
>>     Open Source Architect
>>     http://www.talend.com
>>     <
>> https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com
>> >
>>
>>
>>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Reply via email to