osgi

Red Hat JBoss Fuse 6.2.1: Osgi Missing Requirement: Oracle JDBC Driver

送分小仙女□ 提交于 2019-12-12 04:19:08
问题 This is a problem that I am facing with Jboss fuse, where a dependency (Oracle JDBC JAR) is not found as an OSGI bundle. The source code works fine when run locally, but errors out when deployed on a Karaf container. A detailed explanation of the issue and associated source code is placed at: https://developer.jboss.org/message/948643 Any suggestions on this would be welcome. Thanks for your patience. Prabal 回答1: The Oracle JAR File that you are trying to deploying on the Fuse Server is not a

osgi r6 service.component.annotations property list

爱⌒轻易说出口 提交于 2019-12-12 04:12:36
问题 maybe I am plain stupid, but how do I set a list in a property value? For example with the felix scr annotations, a servlet looked somewhat like this @Component(metatype = false) @SlingServlet( methods = { "GET", "POST" }, resourceTypes = "sling/servlet/default", selectors = { "size" }, paths = { "/some/stupid/path/.*" } with the new osgi service annotations @Component(service = Servlet.class, property = { "sling.servlet.methods=GET", "sling.servlet.methods=POST", "sling.servlet.resourceTypes

OSGi bundle compile error

我的未来我决定 提交于 2019-12-12 03:59:23
问题 When I build my bundle, maven throws the exception: [ERROR] Bundle com.onboard:com.onboard.service.security:bundle:3.0.0-SNAPSHOT : Exporting packages that are not on the Bundle-Classpath[Jar:dot]: [about_files, XXX] [ERROR] Error(s) found in bundle configuration I use maven-bundle-plugin to build my code: <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>2.3.7</version> <extensions>true</extensions> <configuration> <manifestLocation>src/main

Cannot build OSGi bundle for a Netbeans RCP application

喜欢而已 提交于 2019-12-12 03:44:45
问题 When I try to build an OSGi bundle of a Netbeans RCP application (for example: the provided sample Feed Reader Application), it gives the following error: [error] Exception in thread "main" /opt/developer/netbeans-8.0/harness/suite.xml:545: The following error occurred while executing this line: [error] /opt/developer/netbeans-8.0/harness/osgi.xml:63: Could not prescan /opt/developer/netbeans-8.0/platform/modules/org-netbeans-libs-javafx.jar: java.io.IOException: Unrecognized constant pool

spring framework security @preauthorize annotation not working in osgi

爷,独闯天下 提交于 2019-12-12 03:36:52
问题 I am using osgi with spring annotations based config. (using virgo to deploy the app) @preauthorize annotations on the method impl are not working. It is allowing the user to access it despite not having the role. If I put the same annotations on interface, it throws AccessDenied exception for all the users. Exception: org.springframework.security.access.AccessDeniedException: Access is denied 252881 [http-bio-8080-exec-3] ERROR c.w.HomeController - handleAccessDeniedException####Access is

Exception logged when using custom css in JavaFX in Felix OSGI

女生的网名这么多〃 提交于 2019-12-12 03:35:26
问题 I'm getting the exception below logged to stderr when trying to use my own custom css in JavaFX 2.2 (from JDK 7 update 11). It's funny because the css is actually found and used in my application so the only thing wrong is the exception in the logs. I also load up other resources this way (images, fonts etc) and there are no exceptions logged in these cases. I'm loading the css like this: val cssResource = getClass.getResource("/com/openaf/browser/gui/resources/openaf.css").toExternalForm

How to include Maven dependencies in Manifest file

那年仲夏 提交于 2019-12-12 03:24:34
问题 I am developing a plugin for the OSGI application, using maven to compile. In order to install the plugin, the OSGI application should read the information about plugin dependencies. This information should be provided in the MANIFEST.MF file. What I'm wondering is how to use Virgo Tooling to generate a proper MANIFEST.MF file. These are the dependencies I would like to include in the MANIFEST.MF UPDATE According to the answer I used the Apache Felix To the pom.xml I have added <plugin>

get all implementations of an api

淺唱寂寞╮ 提交于 2019-12-12 03:03:47
问题 I have written an API Bundle and some implementing services. Now i want to use them as plugins, so first of all i need a list of all the services i have. I'm starting the api like this: Framework m_fwk = new org.apache.felix.framework.FrameworkFactory().newFramework(null); m_fwk.init(); AutoProcessor.process(null, m_fwk.getBundleContext()); m_fwk.start(); Bundle api = m_fwk.getBundleContext().installBundle( "file:/foo/bar/api/target/api-1.0.jar"); api.start(); So now the API is loaded. Now i

How can I read factory configurations for my OSGI instance

◇◆丶佛笑我妖孽 提交于 2019-12-12 02:44:00
问题 I have a OSGi Transformer component which is instantiated by sling. In my OSGi component I have the following annotations : @Component(configurationFactory = true, metatype = true, policy = ConfigurationPolicy.REQUIRE, label = "CDN Link Rewriter", description = "Rewrites links to all static files to use configurable CDN") @Service(value = TransformerFactory.class) public class StaticLinkTransformer implements Transformer, TransformerFactory I have some properties which I have annotated as

type org.osgi.util.tracker.ServiceTrackerCustomizer does not take parameters

僤鯓⒐⒋嵵緔 提交于 2019-12-12 02:28:15
问题 I'm working on osgi application which uses com.ibm.ws.admin.client_8.5.0.jar because I need to use WebSphere with JMX. When I import as dependency this jar I get error in bundle activators: public abstract class AbstractServiceTracker implements ServiceTrackerCustomizer<Object, Object> { ... private ServiceTracker<Object, Object> tracker = new ServiceTracker<>(bc, bc.createFilter(builder.toString()), this); I get error in Netbeans type ServiceTrackerCustomizer does not take parameters and