You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Abhijeet Banerjee <ab...@gmail.com> on 2019/03/08 06:28:55 UTC

After adding org.apache.felix.scr Jar in bundle all my DM annotation stopped working

Greetings,
Currently, I am in the process of upgrading
*"org.eclipse.osgi.services_3.7.100.v20180827-1536.jar"*

1. After upgrade during Bundle Validation its prompt me for 2 Dependent Jar
Requirement.
               a. org.eclipse.equinox.ds: So I upgraded my current DS jar
with supported *"org.eclipse.equinox.ds_1.5.200.v20180827-1235.jar"*
               b. org.eclipse.osgi.util:  So I upgraded my current util jar
with supported  *"org.eclipse.osgi.util_3.5.100.v20180827-1536.jar"*
*2. *After upgrade of above Step1 Bundle Validation again prompt for*
"org.apache.felix.scr" missing
Jar from latest "**equinox.ds_1.5.200"*
*NOTE*:  Currently my project doesn't contain this
(*"org.apache.felix.scr") jar,
So I bundled **org.apache.felix.scr_2.0.14.v20180822-1822.jar*

*3. Once all the 3 above mentioned 3PP Jars Integrated, Bundle Validation
stops complaining no more error,*
* But when I am trying to run my project its stop hitting "**updated
<https://felix.apache.org/apidocs/dependencymanager.annotations/r1/org/apache/felix/dm/annotation/api/FactoryConfigurationAdapterService.html#updated()>"
method of **@FactoryConfigurationAdapterService and  @ServiceDependency *
*from "**org.apache.felix.dependencymanager.annotation-3.2.0".*

*Any pointer will be highly appreciated.*

-- 

*Thanks\*
*Abhijeet Banerjee+919910512611*

Re: After adding org.apache.felix.scr Jar in bundle all my DM annotation stopped working

Posted by Abhijeet Banerjee <ab...@gmail.com>.
Thanks, Ray,
Yes, Your point seems valid.
Let me approach eclipse user groups and at the same time I will try my
hands with latest SDK jars .
Thanks Again

On Fri, Mar 8, 2019 at 9:45 PM Raymond Auge <ra...@liferay.com>
wrote:

> On Fri, Mar 8, 2019 at 10:43 AM Abhijeet Banerjee <ab...@gmail.com>
> wrote:
>
> > Hi Ray,
> >
> > Thanks for your reply,
> > I didn't get your question completely, So trying to explain in short
> > I have a project using the OSGi framework underlying.
> > Due to the vulnerability issue, I am upgrading all the OSGi, HTTP,
> Equinox
> > Jars which is currently used in my Project.
> > I am referring and upgrading 3PP from this link:
> > https://download.eclipse.org/equinox/drops/R-4.9-201809060745/index.php
> > NOTE: Not all of the JARS which is listed is used in my project only a
> few
> > Subset we used
> >
>
> Ok, this is what I suspected. I don't think this is the correct forum for
> your question. However, I _think_ the better approach is to simply upgrade
> to a later version of the Eclipse SDK entirely, _not_ piecemeal like you
> are trying to do.
>
> I would really ask this in the Eclipse forums because the folks here won't
> have much insight into your issues because the jars you find in the SDK
> (which come from the Eclipse Orbit project) _may not be_ original versions
> provided by Felix and might be modified for use in Eclipse SDK (as is the
> case for org.apache.felix.scr_2.0.14.v20180822-1822.jar).
>
> HTH,
> - Ray
>
>
>
> >
> > I was upgrading mentioned JARS in STEP Wise:
> > 1. Firstly I upgraded all the org.eclipse.jetty JArs successfully.
> > 2. Secondly, I Successfully upgrade org.eclipse.osgi,
> > 3, Third, Equinox, very few from the list like cm, common, http.jetty,
> > console, and ds.
> >
> > Hope it helps to understand a bit better, Do let me know if you need a
> few
> > more details to regard the same.
> >
> > Thank you
> >
> > On Fri, Mar 8, 2019 at 7:53 PM Raymond Auge <ra...@liferay.com>
> > wrote:
> >
> > > Hi Abhijeet,
> > >
> > > Are you working on a Eclipse RCP/SDK application?
> > >
> > > - Ray
> > >
> > >
> > >
> > > On Fri, Mar 8, 2019 at 1:29 AM Abhijeet Banerjee <
> abhijeet.feb@gmail.com
> > >
> > > wrote:
> > >
> > > > Greetings,
> > > > Currently, I am in the process of upgrading
> > > > *"org.eclipse.osgi.services_3.7.100.v20180827-1536.jar"*
> > > >
> > > > 1. After upgrade during Bundle Validation its prompt me for 2
> Dependent
> > > Jar
> > > > Requirement.
> > > >                a. org.eclipse.equinox.ds: So I upgraded my current DS
> > jar
> > > > with supported *"org.eclipse.equinox.ds_1.5.200.v20180827-1235.jar"*
> > > >                b. org.eclipse.osgi.util:  So I upgraded my current
> util
> > > jar
> > > > with supported  *"org.eclipse.osgi.util_3.5.100.v20180827-1536.jar"*
> > > > *2. *After upgrade of above Step1 Bundle Validation again prompt for*
> > > > "org.apache.felix.scr" missing
> > > > Jar from latest "**equinox.ds_1.5.200"*
> > > > *NOTE*:  Currently my project doesn't contain this
> > > > (*"org.apache.felix.scr") jar,
> > > > So I bundled **org.apache.felix.scr_2.0.14.v20180822-1822.jar*
> > > >
> > > > *3. Once all the 3 above mentioned 3PP Jars Integrated, Bundle
> > Validation
> > > > stops complaining no more error,*
> > > > * But when I am trying to run my project its stop hitting "**updated
> > > > <
> > > >
> > >
> >
> https://felix.apache.org/apidocs/dependencymanager.annotations/r1/org/apache/felix/dm/annotation/api/FactoryConfigurationAdapterService.html#updated()
> > > > >"
> > > > method of **@FactoryConfigurationAdapterService and
> > @ServiceDependency *
> > > > *from "**org.apache.felix.dependencymanager.annotation-3.2.0".*
> > > >
> > > > *Any pointer will be highly appreciated.*
> > > >
> > > > --
> > > >
> > > > *Thanks\*
> > > > *Abhijeet Banerjee+919910512611*
> > > >
> > >
> > >
> > > --
> > > *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
> > >  (@rotty3000)
> > > Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
> > >  (@Liferay)
> > > Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org>
> > > (@OSGiAlliance)
> > >
> >
> >
> > --
> >
> > *Thanks\*
> > *Abhijeet Banerjee+919910512611*
> >
>
>
> --
> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
>  (@rotty3000)
> Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
>  (@Liferay)
> Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org>
> (@OSGiAlliance)
>


-- 

*Thanks\*
*Abhijeet Banerjee+919910512611*

Re: After adding org.apache.felix.scr Jar in bundle all my DM annotation stopped working

Posted by Raymond Auge <ra...@liferay.com>.
On Fri, Mar 8, 2019 at 10:43 AM Abhijeet Banerjee <ab...@gmail.com>
wrote:

> Hi Ray,
>
> Thanks for your reply,
> I didn't get your question completely, So trying to explain in short
> I have a project using the OSGi framework underlying.
> Due to the vulnerability issue, I am upgrading all the OSGi, HTTP, Equinox
> Jars which is currently used in my Project.
> I am referring and upgrading 3PP from this link:
> https://download.eclipse.org/equinox/drops/R-4.9-201809060745/index.php
> NOTE: Not all of the JARS which is listed is used in my project only a few
> Subset we used
>

Ok, this is what I suspected. I don't think this is the correct forum for
your question. However, I _think_ the better approach is to simply upgrade
to a later version of the Eclipse SDK entirely, _not_ piecemeal like you
are trying to do.

I would really ask this in the Eclipse forums because the folks here won't
have much insight into your issues because the jars you find in the SDK
(which come from the Eclipse Orbit project) _may not be_ original versions
provided by Felix and might be modified for use in Eclipse SDK (as is the
case for org.apache.felix.scr_2.0.14.v20180822-1822.jar).

HTH,
- Ray



>
> I was upgrading mentioned JARS in STEP Wise:
> 1. Firstly I upgraded all the org.eclipse.jetty JArs successfully.
> 2. Secondly, I Successfully upgrade org.eclipse.osgi,
> 3, Third, Equinox, very few from the list like cm, common, http.jetty,
> console, and ds.
>
> Hope it helps to understand a bit better, Do let me know if you need a few
> more details to regard the same.
>
> Thank you
>
> On Fri, Mar 8, 2019 at 7:53 PM Raymond Auge <ra...@liferay.com>
> wrote:
>
> > Hi Abhijeet,
> >
> > Are you working on a Eclipse RCP/SDK application?
> >
> > - Ray
> >
> >
> >
> > On Fri, Mar 8, 2019 at 1:29 AM Abhijeet Banerjee <abhijeet.feb@gmail.com
> >
> > wrote:
> >
> > > Greetings,
> > > Currently, I am in the process of upgrading
> > > *"org.eclipse.osgi.services_3.7.100.v20180827-1536.jar"*
> > >
> > > 1. After upgrade during Bundle Validation its prompt me for 2 Dependent
> > Jar
> > > Requirement.
> > >                a. org.eclipse.equinox.ds: So I upgraded my current DS
> jar
> > > with supported *"org.eclipse.equinox.ds_1.5.200.v20180827-1235.jar"*
> > >                b. org.eclipse.osgi.util:  So I upgraded my current util
> > jar
> > > with supported  *"org.eclipse.osgi.util_3.5.100.v20180827-1536.jar"*
> > > *2. *After upgrade of above Step1 Bundle Validation again prompt for*
> > > "org.apache.felix.scr" missing
> > > Jar from latest "**equinox.ds_1.5.200"*
> > > *NOTE*:  Currently my project doesn't contain this
> > > (*"org.apache.felix.scr") jar,
> > > So I bundled **org.apache.felix.scr_2.0.14.v20180822-1822.jar*
> > >
> > > *3. Once all the 3 above mentioned 3PP Jars Integrated, Bundle
> Validation
> > > stops complaining no more error,*
> > > * But when I am trying to run my project its stop hitting "**updated
> > > <
> > >
> >
> https://felix.apache.org/apidocs/dependencymanager.annotations/r1/org/apache/felix/dm/annotation/api/FactoryConfigurationAdapterService.html#updated()
> > > >"
> > > method of **@FactoryConfigurationAdapterService and
> @ServiceDependency *
> > > *from "**org.apache.felix.dependencymanager.annotation-3.2.0".*
> > >
> > > *Any pointer will be highly appreciated.*
> > >
> > > --
> > >
> > > *Thanks\*
> > > *Abhijeet Banerjee+919910512611*
> > >
> >
> >
> > --
> > *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
> >  (@rotty3000)
> > Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
> >  (@Liferay)
> > Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org>
> > (@OSGiAlliance)
> >
>
>
> --
>
> *Thanks\*
> *Abhijeet Banerjee+919910512611*
>


-- 
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)

Re: After adding org.apache.felix.scr Jar in bundle all my DM annotation stopped working

Posted by Abhijeet Banerjee <ab...@gmail.com>.
Hi Ray,

Thanks for your reply,
I didn't get your question completely, So trying to explain in short
I have a project using the OSGi framework underlying.
Due to the vulnerability issue, I am upgrading all the OSGi, HTTP, Equinox
Jars which is currently used in my Project.
I am referring and upgrading 3PP from this link:
https://download.eclipse.org/equinox/drops/R-4.9-201809060745/index.php
NOTE: Not all of the JARS which is listed is used in my project only a few
Subset we used

I was upgrading mentioned JARS in STEP Wise:
1. Firstly I upgraded all the org.eclipse.jetty JArs successfully.
2. Secondly, I Successfully upgrade org.eclipse.osgi,
3, Third, Equinox, very few from the list like cm, common, http.jetty,
console, and ds.

Hope it helps to understand a bit better, Do let me know if you need a few
more details to regard the same.

Thank you

On Fri, Mar 8, 2019 at 7:53 PM Raymond Auge <ra...@liferay.com>
wrote:

> Hi Abhijeet,
>
> Are you working on a Eclipse RCP/SDK application?
>
> - Ray
>
>
>
> On Fri, Mar 8, 2019 at 1:29 AM Abhijeet Banerjee <ab...@gmail.com>
> wrote:
>
> > Greetings,
> > Currently, I am in the process of upgrading
> > *"org.eclipse.osgi.services_3.7.100.v20180827-1536.jar"*
> >
> > 1. After upgrade during Bundle Validation its prompt me for 2 Dependent
> Jar
> > Requirement.
> >                a. org.eclipse.equinox.ds: So I upgraded my current DS jar
> > with supported *"org.eclipse.equinox.ds_1.5.200.v20180827-1235.jar"*
> >                b. org.eclipse.osgi.util:  So I upgraded my current util
> jar
> > with supported  *"org.eclipse.osgi.util_3.5.100.v20180827-1536.jar"*
> > *2. *After upgrade of above Step1 Bundle Validation again prompt for*
> > "org.apache.felix.scr" missing
> > Jar from latest "**equinox.ds_1.5.200"*
> > *NOTE*:  Currently my project doesn't contain this
> > (*"org.apache.felix.scr") jar,
> > So I bundled **org.apache.felix.scr_2.0.14.v20180822-1822.jar*
> >
> > *3. Once all the 3 above mentioned 3PP Jars Integrated, Bundle Validation
> > stops complaining no more error,*
> > * But when I am trying to run my project its stop hitting "**updated
> > <
> >
> https://felix.apache.org/apidocs/dependencymanager.annotations/r1/org/apache/felix/dm/annotation/api/FactoryConfigurationAdapterService.html#updated()
> > >"
> > method of **@FactoryConfigurationAdapterService and  @ServiceDependency *
> > *from "**org.apache.felix.dependencymanager.annotation-3.2.0".*
> >
> > *Any pointer will be highly appreciated.*
> >
> > --
> >
> > *Thanks\*
> > *Abhijeet Banerjee+919910512611*
> >
>
>
> --
> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
>  (@rotty3000)
> Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
>  (@Liferay)
> Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org>
> (@OSGiAlliance)
>


-- 

*Thanks\*
*Abhijeet Banerjee+919910512611*

Re: After adding org.apache.felix.scr Jar in bundle all my DM annotation stopped working

Posted by Raymond Auge <ra...@liferay.com>.
Hi Abhijeet,

Are you working on a Eclipse RCP/SDK application?

- Ray



On Fri, Mar 8, 2019 at 1:29 AM Abhijeet Banerjee <ab...@gmail.com>
wrote:

> Greetings,
> Currently, I am in the process of upgrading
> *"org.eclipse.osgi.services_3.7.100.v20180827-1536.jar"*
>
> 1. After upgrade during Bundle Validation its prompt me for 2 Dependent Jar
> Requirement.
>                a. org.eclipse.equinox.ds: So I upgraded my current DS jar
> with supported *"org.eclipse.equinox.ds_1.5.200.v20180827-1235.jar"*
>                b. org.eclipse.osgi.util:  So I upgraded my current util jar
> with supported  *"org.eclipse.osgi.util_3.5.100.v20180827-1536.jar"*
> *2. *After upgrade of above Step1 Bundle Validation again prompt for*
> "org.apache.felix.scr" missing
> Jar from latest "**equinox.ds_1.5.200"*
> *NOTE*:  Currently my project doesn't contain this
> (*"org.apache.felix.scr") jar,
> So I bundled **org.apache.felix.scr_2.0.14.v20180822-1822.jar*
>
> *3. Once all the 3 above mentioned 3PP Jars Integrated, Bundle Validation
> stops complaining no more error,*
> * But when I am trying to run my project its stop hitting "**updated
> <
> https://felix.apache.org/apidocs/dependencymanager.annotations/r1/org/apache/felix/dm/annotation/api/FactoryConfigurationAdapterService.html#updated()
> >"
> method of **@FactoryConfigurationAdapterService and  @ServiceDependency *
> *from "**org.apache.felix.dependencymanager.annotation-3.2.0".*
>
> *Any pointer will be highly appreciated.*
>
> --
>
> *Thanks\*
> *Abhijeet Banerjee+919910512611*
>


-- 
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)