osgi

XPathFactoryImpl not found error (using myBatis)

风流意气都作罢 提交于 2019-12-01 04:24:36
问题 Using myBatis standAlone (Atlassian jira plugin(OSGi) environmnent) The following error has occurred. [INFO] [talledLocalContainer] org.apache.ibatis.exceptions.PersistenceException: [INFO] [talledLocalContainer] ### Error building SqlSession. [INFO] [talledLocalContainer] ### Cause: java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default o bject model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml

How do you deserialize an object from bytes in osgi

拜拜、爱过 提交于 2019-12-01 03:29:37
In my osgi application I have three bundles, travel.api , table.api and utils . travel.api depends on table.api which depends on utils . Note that travel.api doesn't directly depend on utils . I use aQute Bnd to generate the manifests and I believe it is working fine. The manifests are displayed below. There is a class called PageData that has a field of type TableData , which in turn has a field of type TestObject . PageData is located in travel.api , TableData is located in table.api and TestObject is located in utils . This all works fine when the bundles are loaded. The problem comes when

How to auto-start/eager start OSGi services on Eclipse platform

ε祈祈猫儿з 提交于 2019-12-01 03:29:13
I develop an Eclipse RCP application which makes heavy use of OSGi bundles which provide services for later use. The use case requires the bundles to register their services (e.g. import filters) to be used later on in different situations. The OSGi bundles are build with maven-bundle-plugin. How can I tell Equinox to start the OSGi bundles automatically? The normal approach via Activator is not working. Only the lazy mode is working, but I can not touch classes within unknown bundles. I read the OSGi specification and the opposite to lazy load, eager load, is not provided. Is there another

Spring Dynamic Modules - is it alive project?

ぐ巨炮叔叔 提交于 2019-12-01 03:21:59
Spring Dynamic Modules - is it alive project? For example here has info what "Spring will NOT support any further releases as OSGi bundles. ". But here has Spring Dynamic Modules Reference Guide, where no info about discontinuing of the project. Although the project is moved to Eclipse, it is more dead than alive. Pivotal has abandoned the project, which makes the Eclipse move more a code dump than a serious attempt to create an open source project. I would not advise building on top of it. Its now Eclipse Gemini Blueprint, the change is described in brief here http://www.eclipse.org/gemini

How to use servlet with OSGi

你说的曾经没有我的故事 提交于 2019-12-01 03:19:02
I want to create and deploy a web service to OSGi container. For example, publish the service to the address: http://localhost:8080/testservice. The service generate HTML response in a servlet. I have searched a lot and got: public class HelloWorldServlet extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("<html>"); out.println("<head>"); out.println("<title>Hola</title>"); out.println("</head>"); out.println("<body

OSGi and application servers

♀尐吖头ヾ 提交于 2019-12-01 02:49:10
I'm having trouble undrstanding the difference about both platforms? Both seem to offer an environment for deploying and managing applications. First I thought app servers use OSGi under the hood, I don't think so now but I see large AS (jboss, glassfish, websphere, etc) use OSGi. What's the big picture? Thank you There is (to some extend) an overload of the term "application". OSGi is a runtime environment (and development model) for modular Java applications. The term "application" in this case can be really, really low level. For example, an application server can be considered such an

How to add Import-Package instructions for runtime dependencies?

跟風遠走 提交于 2019-12-01 02:39:52
问题 I'm building an OSGi jar using Gradle, and I'm having a bit of trouble with the manifest. Here's an excerpt from my build script: apply plugin: 'java' apply plugin: 'osgi' jar { baseName = 'awesome' manifest { name = 'An Awesome Application' symbolicName = 'com.example.awesome' // instruction 'Import-Package', 'org.springframework.orm' } } Using the above, Gradle detects my dependencies and adds an Import-Package with all my compile-time dependencies. But say my application has a runtime

Which config is applied when number of matched run modes is the same

别等时光非礼了梦想. 提交于 2019-12-01 01:59:11
问题 I am using OSGI config files to define configuration for different environments, as specified in OSGI Configuration. I have configurations for multiple run modes saved in the same repository. The documentation states "If multiple configurations for the same PID are applicable, the configuration with the highest number of matching run modes is applied." What is the mechanism if multiple configurations for the same PID are applicable and two or more configurations are tied for the highest

Embedding Knopflerfish in Android doesn't work

瘦欲@ 提交于 2019-12-01 00:26:35
I am trying to embed the Knopflerfish framework into an android application to load and unload bundles dynamically. I followed this tutorial The first step I did is to download framework.jar frome this link, and to add it to my class path in my eclipse project. Additionally, below is my onCreate() method: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Map fwprops = new Hashtable(); //CHANGED // add any framework properties to fwprops FrameworkFactory ff = new FrameworkFactoryImpl(); mFramework = ff

Spring Dynamic Modules - is it alive project?

谁都会走 提交于 2019-12-01 00:22:52
问题 Spring Dynamic Modules - is it alive project? For example here has info what "Spring will NOT support any further releases as OSGi bundles. ". But here has Spring Dynamic Modules Reference Guide, where no info about discontinuing of the project. 回答1: Although the project is moved to Eclipse, it is more dead than alive. Pivotal has abandoned the project, which makes the Eclipse move more a code dump than a serious attempt to create an open source project. I would not advise building on top of