Re: How to setup felix to enable OSGi DS Annotations
Per-Erik, I’m not very familiar with SCR. I’ve tried deploying these bundles and I had no luck before. My guess these JARs are required for building bundles compatible with SCR. If you go to use Annotations, annotations are only used in the build process to generate xml descriptor files. I’ve started with 6.0.0 and today I’m 6.0.2. No change at my code have been required... Regards, Davi > On 24 May 2019, at 08:47, Per-Erik Svensson wrote: > > Hi, > > Thanks! I'll try with the 6.0.2 version of the framework and 2.1.16 of SCR > then. Have there been changes made in these versions to support DS > Annotations? I thought that was part of OSGi Compendium Release 7 and > implemented by SCR since 2.1.0? > > Can anyone say what the other SCR modules do since some of them have names > indicating that I may need them? > > SCR (Declarative Services) > SCR Annotations - I'm guessing this is the "old" non-standard SCR annotations > SCR bnd Plugin > SCR Compat (Declarative Services) - Compatibility with what? > SCR DS Annotations - Is this not needed by the runtime to make DS Annotations > work? > SCR Ext Anno > SCR Generator > > Best regards > Per-Erik Svensson > > -Original Message- > From: Davi Baldin Tavares > Sent: 24 May 2019 12:48 > To: users@felix.apache.org > Subject: Re: How to setup felix to enable OSGi DS Annotations > > Hi, I’ve Ds running at my setup. > > These are the bundles required for me to working > > START LEVEL 1 > ID|State |Level|Name >0|Active |0|System Bundle (6.0.2)|6.0.2 > 26|Active |1|JLine Bundle (3.7.0)|3.7.0 > 27|Active |1|Apache Log4j API (2.11.2)|2.11.2 > 28|Active |1|Apache Log4j Core (2.11.2)|2.11.2 > 29|Active |1|Apache Log4j SLF4J Binding (2.11.2)|2.11.2 > 32|Active |1|Apache Felix Bundle Repository (2.0.10)|2.0.10 > 33|Active |1|Apache Felix Configuration Admin Service > (1.9.12)|1.9.12 > 34|Active |1|Apache Felix EventAdmin (1.5.0)|1.5.0 > 35|Active |1|Apache Felix File Install (3.6.4)|3.6.4 > 36|Active |1|Apache Felix Gogo Command (1.0.2)|1.0.2 > 37|Active |1|Apache Felix Gogo JLine Shell (1.1.0)|1.1.0 > 38|Active |1|Apache Felix Gogo Runtime (1.1.0)|1.1.0 > 39|Active |1|Apache Felix Log Service (1.2.0)|1.2.0 > 40|Active |1|Apache Felix Declarative Services (2.1.16)|2.1.16 > 41|Active |1|org.osgi:org.osgi.util.function > (1.1.0.201802012106)|1.1.0.201802012106 > 42|Active |1|org.osgi:org.osgi.util.promise > (1.1.1.201810101357)|1.1.1.201810101357 > 44|Active |1|slf4j-api (1.7.25)|1.7.25 > > Osgi.util.function and promise I’ve downloaded from maven central repository. > > Because I use Eclipse to build, org.osgi.service.component.annotations is > optional (just for build) > > Manifest-Version: 1.0 > Bundle-ManifestVersion: 2 > Bundle-Name: Siteview :: Plugins :: XXX > Bundle-SymbolicName: plugin.nmap;singleton:=true > Bundle-Version: 1.0.0 > Automatic-Module-Name: plugin.unix > Bundle-RequiredExecutionEnvironment: JavaSE-1.8 > Bundle-ClassPath: . > Bundle-Vendor: Vendor > Require-Bundle: io.vendor.siteview.api;bundle-version="1.0.0", > io.vendor.siteview.plugins;bundle-version="1.0.1" > Import-Package: javax.xml.parsers, > org.osgi.framework, > org.osgi.service.component.annotations;version="1.3.0";resolution:=optional, > org.slf4j;version="1.7.2", > org.w3c.dom, > org.xml.sax > Service-Component: OSGI-INF/plugin.MyPluginClass.xml > > > Davi. > > >> On 24 May 2019, at 05:31, Per-Erik Svensson wrote: >> >> Hi, >> >> We have a product running Felix with SCR (and some other >> felix-services like fileinstall), using it partly as a >> plugin-mechanism and mostly to handle our own internal modules. This >> means all our modules have a service component xml-file which I'm now >> looking to "remove" through the use of OSGi DS Annotations. As I >> understand it, SCR implements the spec but I'm not able to get it to >> work. The bundle I'm trying to install throws the following error my >> way >> >> missing requirement [failing-bundle [46](R 46.0)] osgi.extender; >> (&(osgi.extender=osgi.component)(version>=1.3.0)(!(version>=2.0.0))) >> Unresolved requirements: [[failing-bundle [46](R 46.0)] osgi.extender; >> (&(osgi.extender=osgi.component)(version>=1.3.0)(!(version>=2.0.0)))] >> >> which according to some internet searches means that I don't have a proper >> DS-implementation? Or have I misunderstoo
Can I hide/restrict gogo commands?
Hi, I would like to restrict gogo shell comands to a sort of them lb, start, stop) + my own commands. Is there a way to filter/hide or restrict commands? Regards, Davi
Re: OS
Are you facing some issue? My guess it they depends on jvm more than to de OS.. Davi > On 17 Apr 2019, at 23:36, "liname...@outlook.com" > wrote: > > > Hello, I am doing an investigation. > Does Windows Server 2019 support the following products: > > Felix Bundle Repository1.6.6 > Felix configAdmin 1.6.0 > Felix FileInstall 3.2.8 > Felix Framework 4.2.1 > Felix Framework(org.osgi/org.osgi.core) 5.0.0 > Felix GoGo Runtime 0.10.0 > Felix Metatype1.0.10 > Felix Webconsole Plugin 1.0.0 > Felix Webconsole Plugin Event 1.1.0 > Service OBR 1.0.2 > > Is the other version supported? > Can you tell me, thank you very much. > > - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org
Re: List of bundles required for Declarative Services Annotation
Hi, Yes, I’m using Eclipse PDE. Target Platform is OSGi Framework: Standard. I’ve deployed the plugin JAR from Export Plugin option. Should I use a custom ANT build Instead in order to generated the proper XML files? From this point of view this is not a Felix issue. > On 4 Apr 2019, at 11:21, Bruce Jackson wrote: > > Are you developing this in Eclipse with the PDE ? > > > > On Thu, 4 Apr 2019, 15:19 Davi Baldin Tavares, > wrote: > >> Hello, >> >> I’m trying to move to DS Annotation. >> >> My Class: >> >> import org.osgi.service.component.annotations.Component; >> >> @Component(name = "ZPluginProvider Service", immediate = true, service = >> ZPluginProvider.class) >> public class ZPluginProvider { … } >> >> I’ve deployed these bundles: >> >> org.apache.felix.scr-2.1.16 >> org.apache.felix.scr.annotations-1.12.0 >> org.apache.felix.scr.ds-annotations-1.2.10 >> org.osgi.util.function-1.1.0 >> org.osgi.util.promise-1.1.1 >> >> However the deployment is not being successfully on >> org.osgi.service.component.annotations completed because of: >> >> 1) org.osgi.service.component.annotations-1.4.0 is missing osgi.unresolved >> or >> 2) org.osgi.service.component.annotations-1.3.0 is missing >> osgi.compile.time.only >> >> Do someone happen to know witch bundles must I have to deploy along Felix >> in order to enable declarative services with annotations? >> >> Thanks, >> >> Davi >> - >> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org >> For additional commands, e-mail: users-h...@felix.apache.org >> >> - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org
List of bundles required for Declarative Services Annotation
Hello, I’m trying to move to DS Annotation. My Class: import org.osgi.service.component.annotations.Component; @Component(name = "ZPluginProvider Service", immediate = true, service = ZPluginProvider.class) public class ZPluginProvider { … } I’ve deployed these bundles: org.apache.felix.scr-2.1.16 org.apache.felix.scr.annotations-1.12.0 org.apache.felix.scr.ds-annotations-1.2.10 org.osgi.util.function-1.1.0 org.osgi.util.promise-1.1.1 However the deployment is not being successfully on org.osgi.service.component.annotations completed because of: 1) org.osgi.service.component.annotations-1.4.0 is missing osgi.unresolved or 2) org.osgi.service.component.annotations-1.3.0 is missing osgi.compile.time.only Do someone happen to know witch bundles must I have to deploy along Felix in order to enable declarative services with annotations? Thanks, Davi - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org
Jetty+Felix capabilities
Hi all, My question is: How to enable web capabilities for Apache Felix HTTP Service (session, security, error handling, etc) out of the box? I’m working in a project wich implements bundles as micro-services exposed by a REST API bundle. [Felix framework] -> Felix Bundles -> Jetty Bundles (i.e. org.apache.felix.http.jetty-4.0.8.jar) -> My Microservices Bundles -> My "WEB Bundle" with exposes /api to HTTP Service a) The Web Bundle exposes /api using service register at activation process. Annotations and web.xml are not working. httpService.registerServlet("/api", new ServletContainer(), getJerseyServletParams(), null); b) Web Bundle MANIFEST.MF is exposing /ui as Web-ContextPath in order to provides static content. So far, so good. I can consume http://localhost:8080/api/* and I can get http://localhost:8080/ui/index.html However, in order to be able to go production, the REST interface must be fully functional with session, jass and other “web.war” capabilities (simple like to process web.xml configuration file). In my preliminary code, it seems that only JAX-RS is working fine (httpService.registerServlet…) but the web capabilities of the bundle haven’t been activated by the framework, for example I can call http://localhost:8080/ui/WEB-INF/web.xml and read the file as a regular file). No error handling, session, authentication, etc. Thanks, Davi - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org