osgi-bundle

Is it possible to convert a simple grails application to OSGi bundle that can run in Adobe CQ? [closed]

随声附和 提交于 2019-12-11 05:30:54
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I have a simple Grails 2.2.4 application that simply lists a bunch of items on a page. So I only have one controller and I'm not even using the database. Now, I want to convert this application into an OSGi sling bundle so that I can run it under Adobe CQ. when I prepare the Grails app it creates a WAR file..

Multiple bundle versions deployed in one OSGi instance

烈酒焚心 提交于 2019-12-11 03:33:05
问题 I have three applications deployed in CQ which all depend on one bundle (say 'core'). Core is undergoing a major face lift and there is a requirement to define the dependency of all three application on different versions of core, e.g. A will have dependency on core 1.0 B will have dependency on core 1.5 C will have dependency on core 2.0 Is it possible to do this? 回答1: OSGi (which CQ itself is embedded in) supports multiple versions of packages deployed at the same time. You could deploy the

Unresolved requirement: osgi.component

核能气质少年 提交于 2019-12-11 00:49:59
问题 I'm trying to develop onto Karaf an OSGi WAB containing a REST API and a call from a custom-made service. However, for some weird reason, the OSGi framework complains about an unsatisfied capability, osgi.component . I would like to know : How can I solve this issue? What is osgi.component bundle? Why is needed? Why maven-bundle-plugin (thereby also bnd), declares it inside the entry "Require-Capability"? If I need to install it on the OSGi framework, where may I find it? Some additional

Raml validator throws an error in javax.xml.validation.SchemaFactory.newSchema

扶醉桌前 提交于 2019-12-10 21:11:37
问题 When trying to validate espn.raml I got the below error. Same code is working fine for gmail.raml. Why is this happening? For your reference I have included the results I found what are the jars that SchemaFactory includes. $ find *.jar | xargs grep SchemaFactory.class Binary file axiom_1.2.11.wso2v6.jar matches Binary file org.apache.openjpa_2.2.0.wso2v1.jar matches Binary file solr_5.2.1.wso2v1.jar matches This is the exception I'm getting: Caused by: java.lang.LinkageError: loader

Extension bundle meaning in OSGi framework

被刻印的时光 ゝ 提交于 2019-12-10 18:54:52
问题 I'm developing an OSGi based application. While documenting myself on the features of the OSGi framework I stumbled on the extension bundle concept. Citing the R4 specification (OSGi R4): Extension bundles can deliver optional parts of the Framework implementation or provide functionality that must reside on the boot class path. These packages cannot be provided by the normal import/export mechanisms. Boot class path extensions are necessary because certain package implementations assume that

Install dependency jar file in apache-karaf-2.3.10

被刻印的时光 ゝ 提交于 2019-12-10 12:20:27
问题 I am trying to deploy an bundle in Apache karaf-2.3.10 container which inturn has jar file dependencies. After copying the dependency jar file to deploy dirctory of Apache-Karaf dependency issue got resolved. How to install the normal jar through command line. I tried the below command osgi:install -s 'wrap:mvn:<path to the jar file/test.jar>' which shows Error executing command: Error installing bundles: My bundle has lot of dependency jar files. Do i need to copy all the jar files to deploy

Apache POI usage with Apache Felix

蓝咒 提交于 2019-12-07 18:21:31
问题 I'm trying to import Apache POI to Atlassian Jira Plugin for reading excel files. At the beginning, I started with adding just <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>${poi.version}</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml-schemas</artifactId> <version>${poi.version}</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>${poi.version}<

Tycho: Bundle X - Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.7

霸气de小男生 提交于 2019-12-07 07:35:15
问题 I have changed the BREE from JavaSE-1.6 to JavaSE-1.7 in the manifest files of my application: Bundle-RequiredExecutionEnvironment: JavaSE-1.7 Now I can not compile the application again. When I run mvn clean install I get: [INFO] Resolving dependencies of MavenProject: Xgroup:X:4.0.100-SNAPSHOT @ C:\Users\....\X\pom.xml [WARNING] The following locally built units have been used to resolve project dependencies: [WARNING] Za [WARNING] Zb [INFO] Resolving class path of MavenProject: Xgroup:X:4

Dependency management in OSGI bundle ServiceMix

倖福魔咒の 提交于 2019-12-06 16:03:12
Hi I am new to ServiceMix, so probably I am asking same question which might be answered but I couldn't figure out. My doubt is how do I manage compile time vs runtime dependencies when using bundle in ServiceMix OSGI. That is if I am building a .jar workable(by unit tests aleast) artifact with maven where all compile time dependencies say example(camel,spring) are handled by pom.xml dependencies and are loaded into jar as needed libs for successful build. So when I am deploying the jar in OSGI those libs(camel,spring) are already existing in maven generated jar. Now as OSGI bundles I am

OSGi how to run mutliple instances of one service

筅森魡賤 提交于 2019-12-06 13:28:09
问题 Is it possible to run multiple instance of the same service in the osgi framework? More specific, I need to start multiple instances of a service, but each instance should recieve different parameters. This is because the services have similar functionality. But instead of writing a service for every variation, I want to reuse one implementing class. I've already found the registerService method in the framework api. ServiceRegistration<?> registration = bundlecontext.registerService(