Osgi 1 « Development « Spring Q&A





1. What's the best way to get started with OSGI?    stackoverflow.com

What makes a module/service/bit of application functionality a particularly good candidate for an OSGi module? I'm interested in using OSGi in my applications. We're a Java shop and we ...

2. Adding a ServiceListener with Spring DM    stackoverflow.com

I am wondering if it possible to do the equivalent of

public void start(BundleContext context)
{  
    String filter = "filter for my specific service";
    ...

3. Pax-import-bundle and Spring DM bundles    stackoverflow.com

I'm following the examples from Modular Java but I'm having trouble with chapter 6 and adding the Spring DM modules to my project. I run:

pax-import-bundle -g org.springframework.osgi -a spring-osgi-extender ...

4. Spring context loading problem in Osgi    stackoverflow.com

I'm using Spring's FileSystemXmlApplicationContext in Osgi activator. Unfortunately, it doesn't load any bean from the provided XML files. I'm sure that it finds the xml configuration files, because I was testing ...

5. Choosing between Impala and OSGi    stackoverflow.com

I've been investigating OSGi for my company's software, but have recently been recommended to take a look at Impala. According to its web page, Impala is "a ...

6. Integrate Eclipse RAP and OSGI/Spring-DM plugins, using Maven for build    stackoverflow.com

The background I have a project containing my domain model and persistence code (created using Spring-ROO). I've changed this into an OSGi bundle, and build & deploy it using Maven (via PAX ...

7. OSGi Logging with spring-DM extender not logging    stackoverflow.com

My Setup: I am able to create a simple OSGi bundle with Log4J as my logging framework and when deployed to my OSGi container (Equinox) it works great my logging is ...

8. Has anyone succesfully got Tomcat running via Spring OSGi Web in ServiceMix4?    stackoverflow.com

We've been using Fuse's Apache ServiceMix version 4.2.0-fuse-02-00 for a while now for standard OSGi applications and have been fairly successful. We've also been leveraging CXF for making web services available. Now ...

9. How to get Spring Dynamic Modules 2.x to work on Apache Felix Karaf?    stackoverflow.com

We started using Apache Felix Karaf for a project, and make use of Blueprint Services. Now, I would like to use Spring Dynamic Modules in order to have access to advanced DI ...





10. deploying osgi war bundle    stackoverflow.com

I have deployed a standard war file as an osgi bundle into equinox using bnd to create a war bundle. Whilst it deploys ok and I can run the app, ...

11. logback in spring-OSGI with pax-runner    stackoverflow.com

We are running OSGI bundles with pax-runner. We are logging using logback over slf4j. The problem is logback tries to look for logback.xml in classpath, but in pax-runner where should I place ...

12. Cloning Spring Application Context in OSGi bundle    stackoverflow.com

I have a Spring-enabled OSGi bundle. I'd like this bundle to export a factory-type OSGi service which client software can use to create multiple instances of the application context defined in ...

13. Osgi getService()    stackoverflow.com

In our project (Osgi, Spring-Dm, Apache-Felix) we are having some issue on production when BundleContext.getService() return null. It happens very seldom, and not at the start, so it's not a misconfiguration problem. An ...

14. Spring config to load resources within bundle    stackoverflow.com

I have an war osgi bundle that I have created from a legacy web application. The problem I have is that in the spring configuration there are references to files ...

15. OSGi Bundles for Spring and other Applications    stackoverflow.com

if I develop modules with the OSGi framework (bundles), can I integrate them in any OSGI based application such as Spring, right? On what do I have to take care? What about ...

16. web.xml in OSGi container    stackoverflow.com

pros! Looks like basic question, but I just can't find what I am looking for. I have Equinox and want to run Spring in it (bootstraped in Servlet). I can't use dm-server, nor ...





17. Newbee question    stackoverflow.com

Hy everybody, Thanks in advance for your help. Here is my problem. I want to instanciate a simple bean from spring into an OSGI Bundle. Here is my java class :

package testspring;

public class ...

18. Is OSGi overkill for modularized Web projects?    stackoverflow.com

I mainly develop a big Web project with Java, Maven, and Spring. However, there are different flavors of the Web project that are created for specific customer needs. For ...

19. How to create Eclipse plugin with Spring support?    stackoverflow.com

I have a problem when creating even simple Eclipse plugin with Spring support. My main goal is to develop multi-module Eclipse plugin project using Apache Camel framework. That's why I'm trying ...

20. Using ServiceReference objects in Spring DM    stackoverflow.com

I'm currently porting a very nice demo of a modular web interface using OSGi and Vaadin from 'standard OSGi' to use Spring DM. One OSGi configuration file listed:

<reference name="PersonListener"
   ...

21. Recommendations required for communication between Eclipse RCP client and Server    stackoverflow.com

I want some recommendation on best way to communicate RCP thick client and a set of business functionality implemented in Spring on the server side. Please provide urls on the net ...

22. Should a New Project Use Spring DM 2.0.0.M1 or Gemni Blueprint 1.0.0.M1?    stackoverflow.com

I am about to incorporate Spring DM into a bundle that will run in the Apache Karaf OSGi framework. Given that Spring DM is being transitioned to Gemni Blueprint, should I ...

23. Spring OSGi classpath resource issue    stackoverflow.com

I'm trying to deploy a spring based bundle in osgi (fuse esb).In spring context, I'm referring to a db4o file which is inside resources folder. As per my understanding, a maven ...

24. Resolving workspace dependencies for Virgo in Eclipse    stackoverflow.com

I'm looking to get started with Eclipse Virgo, so I grabbed the required plugins for Eclipse based on the Programmer Guide. Next, I started two new projects in my Eclipse workspace, both ...

25. How could I get BundleContext in Spring DM?    stackoverflow.com

I am newly on Spring DM and I would like to access Bundlecontext. My problem is that I have a bundle with Activator, but it does not have xml config file. ...

26. OSGi Spring Context initialization issue    stackoverflow.com

I got following error when initializing context.

ERROR ContextLoader: Context initialization failed
java.lang.IllegalArgumentException: bundle context should be set before refreshing the application context
    at org.springframework.util.Assert.notNull(Assert.java:112)
    at ...

27. Using Spring without exposing the dependencies to the Client app    stackoverflow.com

I'm writing a Java API for several clients, and would internally like to use Spring and it's several features, but I don't want to expose to the client my dependencies. Is this ...

28. OSGi list, what are those headers?    stackoverflow.com

I'm using Fuse ESB (ServiceMix) and I've been searching all over in the hope to find a better explanation of the various headers when running the command 'osgi:list'. Namely the two ...

29. OSGI classes not visible even though the required JARs are in Bundle-classpath    stackoverflow.com

We are using an Equinox based OSGI framework to run Multiple bundles.
Our bundles have dependent JARs in the Bundle-classpath and the dependent JARs are packaged along with the rest of the ...

30. Using Spring 3.x AnnotationConfigApplicationContext in Eclipse RCP    stackoverflow.com

I have a server based component wired up using Spring. I have a client interface that also uses Spring to connect to the server. I need to connect to ...

31. importing OSGi bundle    forum.springsource.org

I have an OSGi bundle in JAR format and want it to use with my project, i will need to get it deployed to Virgo as well. What is correct method ...

32. Spring OSGi Extender for Spring 3.0.5    forum.springsource.org

Hi, when using Spring 3.0.5, do I need updated versions of Spring OSGi Extenders that is compatible with Spring 3.0.5? Currently I am using these extenders (these are compatible with Spring ...

33. OSGi bundle does not populate in bundle dependencies of secondary bundle    forum.springsource.org

OSGi bundle does not populate in bundle dependencies of secondary bundle Bundle dependencies not updated: Cannot reference bundleA within bundleB (both bundles are different eclipse projects) QUESTION: My question; how am ...

34. InstrumentationLoadTimeWeaver configuration in OSGi    forum.springsource.org

InstrumentationLoadTimeWeaver configuration in OSGi Hi, I have an application running on Tomcat that uses EclipseLink 2.1.0, based on Spring 3.0.4. I want to switch to OSGi as runtime. I have EclipseLink ...

35. Small OSGi bundle headers fix    forum.springsource.org

Any chance the upcoming release of 3.1.0 can allow a wider package version range for EHCache? Right now, it's "[1.4.1, 2.0.0)". The latest ehcache available as a bundle is 1.6.2 (still ...

36. Will Spring move to something other than OSGi ?    forum.springsource.org

Does anyone here know Spring's thinking on OGSi.... I see the DMServer project has been donated to Apache - I interpret this as either: 1) Spring will move to another technology ...

37. bundlor usage to generate osgi libs - cannot use pom packing    forum.springsource.org

bundlor usage to generate osgi libs - cannot use pom packing meant packaging... I was trying to use bundlor 1.0.0.RELEASE to generate a number of osgi compliant libs. I have these ...

38. Strange configuration behaviour around     forum.springsource.org

Hi all, when entering the following bean configuration Code:

39. What's the future of OSGi and Spring DM    forum.springsource.org

What's the future of OSGi and Spring DM Hi, recently a friend of mine has been to qcon; she told me that she heard Rod Johnson during his key notes speech ...

40. Spring-Data limitations on OSGi    forum.springsource.org

Hello friends, I'm very enthusiastic about spring-data and I'm eager to use it into my OSGi applications, but I'm concerned about the not yet release code. It would be nice to ...

41. org.springframework.osgi.web.extender turns from Active to Resolved state    forum.springsource.org

org.springframework.osgi.web.extender turns from Active to Resolved state Hi, I am using org.springframework.osgi.web.extender_2.0.0.M1 version for my application. I am using Jetty and Equinox I was initially facing a problem of "Failed to ...

42. spring + osgi +, load time weaving + virgo    forum.springsource.org

spring + osgi +, load time weaving + virgo i have developped 2 separate OSGI bundles using STS and Virgo .the first bundle contains one aspect(developped using aspectj annotation) , i ...

43. OSGi Import Version Issue    forum.springsource.org

OSGi Import Version Issue I'm using an OSGi bundle from the Springsource Enterprise Bundle Repository, org.springframework.ws.soap.security_2.0.0.RELEASE . This bundle imports the package org.springframework.security.authentication at version="[2.0.0,3.0.0)" (to clarify, this means greater than ...

44. why losing the osgi impl dependency?    forum.springsource.org

hi,everyone i checkout the spring dm sourcecode and import to my eclipse.i found the projects simple service etc doesnt have the dependcy of osgi ,so there is an error exist.after i ...

45. OSGI in Non Spring DM Server    forum.springsource.org

OSGI in Non Spring DM Server Hi , I am very new to OSGI. I have tried to search previous threads and have not quite got the anwser i am looking ...

46. OSGi testing question - JUnit 4    forum.springsource.org

What about JUnit4/TestNG? While JUnit4/TestNG overcome the class inheritance problem that appears when building base JUnit classes, by decoupling the runner from the test through annotations, Spring DM cannot use them ...

47. Java code to create OSGi list    forum.springsource.org

Hi All, Could someone please help me with creating OSGi list using java code because I have a start level issues with the order in which I load the bundles, so ...

48. Not able to start a stand alone spring bundle with spring-osgi-2.0.0.M1    forum.springsource.org

Aug 17th, 2011, 02:49 AM #1 kallada View Profile View Forum Posts Private Message Junior Member Join Date Aug 2011 Posts 12 Not able to start a stand alone spring bundle ...

49. EclipseRT OSGi Bundle facet + Maven plugin = problems    forum.springsource.org

EclipseRT OSGi Bundle facet + Maven plugin = problems Okay, I have the following problem: I create a new workspace, I create a new project and I add OSGi Bundle Project ...

50. New Maven OSGi project is not created    forum.springsource.org

New Maven OSGi project is not created Hi, I was wondering if I could get some help. I installed the new 2.8.0 release and then I tried to build a new ...

51. How about Spring compares to osgi?    forum.springsource.org

sorry,I'm a newbie, I want to develop one swing application with plugins mechanism, I want to use Spring-rcp , who can tell me how can I do with plugins mechanism? Does ...

52. Spring vs. OSGi ?    forum.springsource.org

Spring vs. OSGi ? Hi, I'm currently working on some sort of a Java-based CMS using Spring and Hibernate as component technologies. But as every CMS, my system will need to ...

53. OSGI and Spring?    forum.springsource.org

OSGI and Spring? Anyone used Spring together with OSGI (eclipse 3.2) ? I am evaluationg which component architecture to use and am unsure if OSGI and Spring would play together now ...

54. Spring And OSGi    forum.springsource.org

We are planning to develop an server side application using Eclipse Equinox(OSGi) and Spring : Any suggestion/discussion in architecture, references/articles, good/bad practices, case of uses or whatever are really welcome. Thanx ...

55. OSGI and Spring?    forum.springsource.org

I'm trying to get a grip of the OSGI concept, but can't hold it for long. Is there someone who would like to explain this to me in clear terms? And ...

56. OSGI Downloads    forum.springsource.org

57. Spring-OSGi Example    forum.springsource.org

Hi, I'm looking for an example of a spring application, especially a webapplication, which can be used as an OSGi (Equinox) bundle. Does such an application already exists? Thanks for help! ...

58. What about an OSGI forum topic here?    forum.springsource.org

Or is it too early? Personally I think it will be good to get some discussions started. Even if it is all still under development. S.

59. OSGI: support of multiple versions of a bundle    forum.springsource.org

Hello, I'm a beginner in using spring and osgi. Can I have multiple Versions of a bundle activated at the same time? I.e. for end-testing on productivity-system with real data, but ...

60. Spring OSGi spec 0.7 clarification.    forum.springsource.org

Could someone more familiar with Spring OSGi clarify the following statement from the spec. Section 3.2 OSGi Services Compared to Spring beans however the dependency injection support is very limited, and ...

61. Spring in OSGi    forum.springsource.org

Spring in OSGi Hi community: Please helpme. I have a Web Service client (Spring-xfire implementation) running as stand-alone application (java -jar syncDatosWS.jar) very good. I'am trying to start my client as ...

62. Spring-OSGi Eclipse development    forum.springsource.org

Spring-OSGi Eclipse development Since there is no Spring-OSGi group, I am hoping this is the appropriate place to ask for help. I followed all the instructions for getting and building spring-osgi. ...

63. Spring-OSGi Eclipse development    forum.springsource.org

Spring-OSGi Eclipse development Since there is no Spring-OSGi group, I am hoping this is the appropriate place to ask for help. I followed all the instructions for getting and building spring-osgi. ...

64. OSGi startup and management    forum.springsource.org

OSGi startup and management Im hoping somebody could point me in the right direction. Im fairly knowledgable on OSGi and have specific implementations using knopflerfish and oscar. One benefit of the ...

65. Spring+OSGI    forum.springsource.org

Hello! I'm trying to create application with Spring+OSGI. Please explain me how to do it. I'm using IDEA and ant. Example: I have a bundle and application. How application find it? ...

66. Spring-OSGi Holding onto classes?    forum.springsource.org

Spring-OSGi Holding onto classes? There didn't seem to be a sub-forum for Spring-OSGi, this seemed to be the closest thing. I hope someone from that team drops by Anyway, I've been ...

67. Spring-OSGI, How to start    forum.springsource.org

Spring-OSGI, How to start Hi, I had a bad time to get Spring started in OSGI. Without success. I stopped until I get some useful hints on how to get started. ...

68. OSGI - when is it appropriate?    forum.springsource.org

Aug 23rd, 2007, 08:55 AM #1 djmh68 View Profile View Forum Posts Private Message Junior Member Join Date Jun 2005 Location London, uk Posts 25 OSGI - when is it appropriate? ...

69. How to get started with OSGi...    forum.springsource.org

How to get started with OSGi... I've listened to the webcast and I've read some documentation on OSGi on their site - it's something that's very appealing to use in our ...

70. OSGi: How to pick version using metadata (manifest or xml)?    forum.springsource.org

OSGi: How to pick version using metadata (manifest or xml)? Hi, How can we version the service(s)? (While registering service the into service registry) I am having two bundles running, bundle ...

71. JAVA OSGI Video on Demand Implementation    forum.springsource.org

JAVA OSGI Video on Demand Implementation HI I have recently been assigned a Final year project at university which is to create a Video on demand java implementation which uses JMF ...

72. Spring-OSGi: custom spring-osgi-extender    forum.springsource.org

Spring-OSGi: custom spring-osgi-extender Hi all, I am playing around with the spring osgi integration and I managed to use the standard spring-osgi-extender to create services out of my configuration. The problem ...

73. when will spring osgi framework have a GA release?    forum.springsource.org

74. Spring rcp on top os OSGi    forum.springsource.org

Hi, I'm wondering if it is possible to use spring rcp running under on top of an OSGi platform (equinox for instance). I could imagine that it may be possible to ...

75. Spring Dynamic Modules (OSGi)    forum.springsource.org

Hi As of January 22, 2007, springframework.org does not host a dedicated forum to Spring OSGi or what they call now: "Spring Dynamic Modules for OSGi(tm) Service Platforms". Let us invite ...

76. OSGi and @Configurable    forum.springsource.org

OSGi and @Configurable I have some problems with @Configurable used together with Spring-DM under Equinox (in an RCP application). I'd like to inject a reference pointing to a bean referenced using ...

77. Spring configuration and imported packages in OSGi bundle    forum.springsource.org

Spring configuration and imported packages in OSGi bundle I am using OSGi and spring dm for a project. I use maven and the felix plugin to generate the manifest information. In ...

78. Locating BeanFactoryDefinitions in OSGI environment    forum.springsource.org

Locating BeanFactoryDefinitions in OSGI environment Hello I am using Spring DM on top equinox to inject dependencies across bundles. In on of my bundles I am using the spring-integration project to ...

79. install spring-osgi-web.jar - WHERE?    forum.springsource.org

install spring-osgi-web.jar - WHERE? The docs on http://static.springframework.org/os.../html/web.html say: To use Spring-DM Web, install: * spring-osgi-web.jar - Spring-DM web support * spring-osgi-web-extender.jar - Spring-DM web extender bundles to detect started OSGi ...

80. Server not found: http://maven.springframework.org/osgi    forum.springsource.org

Yes, I have the same problem, but the http://s3.amazonaws.com/maven.springframework.org/osgi is still ok. But Colin can you please fix it, because in the poms is also the other url used. Cheers Bjrn ...

81. Cannot build spring-osgi-1.1.0-m2: missing dependency    forum.springsource.org

Cannot build spring-osgi-1.1.0-m2: missing dependency I've downloaded the spring-osgi-1.1.0-m2 Zip file only today from sourceforge. When I try to build it using this command line: Code: mvn -P equinox,it clean install ...

82. maven and spring osgi    forum.springsource.org

maven and spring osgi First of all thank you for bringing OSGI into Spring world. But I've some remarks to your usage of maven. It's nice, that you use maven to ...

83. CLASSPATH_ALL_URL_PREFIX, component-scan in OSGi environment    forum.springsource.org

CLASSPATH_ALL_URL_PREFIX, component-scan in OSGi environment We are using Spring v2.5+ Spring Dynamic Modules in OSGi container, Felix in our case. Also we are planning to use Springs @Component scanning. Code:

84. New to osgi + spring dm    forum.springsource.org

I am very new to osgi and spring dm. I followed a tutorial on how to run bundles within eclipse. When one runs the osgi environment bundle in standalone environment, do ...

85. Spring OSGI DM and Maven    forum.springsource.org

Spring OSGI DM and Maven hi, I just created a spring-osgi bundle project using maven and eclipse. I also added some dependencies in pom.xml, and I found the m2eclipse plugin automatically ...

86. spring-osgi-web and HttpService    forum.springsource.org

I'm using spring-osgi-web and jetty to publish some web content from some wars. This is working fine. I also have some code that registers some servlets using org.osgi.service.http.HttpService. I noticed that ...

87. Accessing osgi:list attributes from Java...    forum.springsource.org

I'm importing a list of Spring-DM based osgi services using the following line in my context file: Code: I took the example from the documentation for iterating through ...

88. Use of extended charsets in OSGi    forum.springsource.org

Use of extended charsets in OSGi I need to use the extended charsets from the sun.nio.cs.ext package in the charsets.jar of the j2se. but it seems the META-INF/services/java.nio.charset.spi.CharsetProvider file isn't recognized ...

89. mapping a request to a particular version of an osgi bundle    forum.springsource.org

mapping a request to a particular version of an osgi bundle Hi, I'm reading through the Spring-WS tutorial in chapter 3 of the documentation and I'm curious about endpoint mapping and ...

90. To Run Junit Test cases in Spring osgi Frame Work. Options    forum.springsource.org

Hi, Can anybody tell me how i can run junit test cases in Spring osgi Frame Work. I dont want to use standard Maven approach.I m building applications using springDM bundles ...

91. Good Metadata principles for OSGi/Spring    forum.springsource.org

Good Metadata principles for OSGi/Spring Hi all, this one is probably a simple one for most of you... In our application framework we have of bunch of transports, protocols, commandsets etc.. ...

92. Can't get simple OSGi exporter to work    forum.springsource.org

Jul 14th, 2008, 10:33 AM #1 martinahrer View Profile View Forum Posts Private Message Visit Homepage Member Join Date Jun 2006 Location Linz, Austria (Europe) Posts 30 Can't get simple OSGi ...

93. org.osgi.framework.BundleException: Unresolved package in bundle    forum.springsource.org

Jul 19th, 2008, 03:43 PM #1 bjornharvold View Profile View Forum Posts Private Message Senior Member Join Date Jul 2008 Posts 115 org.osgi.framework.BundleException: Unresolved package in bundle Hi everyone, I have ...

94. OSGi HttpService    forum.springsource.org

OSGi HttpService Hello, Is the OSGi HttpService a default service provided by the Spring Source Application Platform OSGi container? Is there some service implementation bundle that I need to deploy to ...

95. Problems starting a OSGi Module in Tomcat6    forum.springsource.org

Problems starting a OSGi Module in Tomcat6 Hi, I hope I don't ask something stupid but google and the search function didn't help me much. I setup a new project in ...

96. Does Spring/OSGI suit our project ? opinions    forum.springsource.org

Does Spring/OSGI suit our project ? opinions Hi, We work on a pretty large Swing (Open Source) project already embedding tens of features and we are looking for a technology allowing ...

97. How Spring DM (greatly) influenced the upcoming OSGi 4.2    forum.springsource.org

How Spring DM (greatly) influenced the upcoming OSGi 4.2 Hi, The ED (Early Draft) of the upcoming OSGi platform is publicly available since yesterday : It can be downloaded here. Now, ...

98. The matching wildcard is strict, but no declaration can be found for element 'osgi:re    forum.springsource.org

Error: ... no declaration can be found for element 'osgi:reference' Hi all, I my program I use OSGI-component which was built by a college who is not inn the company anymore. ...

99. Maven vs OSGI    forum.springsource.org

Maven vs OSGI I am currently working on a project that use osgi(with spring-dm) and that is built using Maven. I am now facing a problem: Some of my bundles need ...

100. org.springframework.osgi.context does not exists    forum.springsource.org

mvn archetype:create \ -DarchetypeGroupId=org.springframework.osgi \ -DarchetypeArtifactId=spring-osgi-bundle-archetype \ -DarchetypeVersion=1.1.1 \ -Dversion=1.0 \ -DgroupId=test \ -DartifactId=HelloSpringOSGi