osgi

Hibernate and OSGi integration, it unable to load hibernate configuration file

早过忘川 提交于 2019-12-14 03:09:21
问题 I'm creating OSGi dynamic bundle which should communicate with database and I am using Hibernate as I used it in non OSGI application. I putted original hibernate jars in the OSGi project's lib dir, and make sure those jars are on the project's build path and runtime class-path, I copied all configuration files(i. e. hibernate-cfg.xml) in the root of the OSGi bundled jar. When I execute my bundle (JAR) inside OSGi container it throws error for not finding hibernate-cfg.xml file. Maybe

Package Installed in AEM 6.0 Web Console Bundles (OSGi Bundles) is Not Installing Properly (Status Should be Active not Installed)

依然范特西╮ 提交于 2019-12-14 02:41:31
问题 Please help me on my concern wherein I tried to Install/Upload the recruitment-client-1.0.0.jar in AEM Web Console Bundles of AEM 6.0 and the status is just "Installed" that should be "Active" , so when I tried to click play under Actions column, status is still "Installed" and has an error in log file seen below. *FYI that it works before in CQ5 server instance. org.apache.felix.http.jetty %bundles.pluginTitle: Cannot start (org.osgi.framework.BundleException: Uses constraint violation.

Maven Web Project with Apache Felix Plugin

六月ゝ 毕业季﹏ 提交于 2019-12-14 02:27:58
问题 What's the best way to create a simple osgi (deploying into virgo server ) project using maven , to create a war structure with pom.xml maven descriptor? A Structure target is *.jsp *.html META-INF MANIFEST (OSGI-CONFIG) WEB-INF classes lib web.xml Then when I create a project This is my pom.xml project properties <groupId>com.aaaa</groupId> <artifactId>first-maven-virgo-project</artifactId> <version>1.0.0</version> <packaging>war</packaging> Felix Plugin <plugin> <groupId>org.apache.felix<

Should I use Eclipse plug-ins (or OSGi Bundles) as a plain dependency management tool?

时光怂恿深爱的人放手 提交于 2019-12-14 02:02:45
问题 once again it has happened... I joined a new project, composed of several plain Eclipse Java Projects, with interdependencies, all managed through the Project build path. I find this all a bit of a chaos. And when it comes to run configurations - you just enter hell. In the past I've sticked to create plug-in projects, instead of plain Java projects - even if I never intend to run these projects as osgi-bundles. I just find that dependencies are way easier to manage in plug-in projects. Are

Classpath empty when adding <outputDirectory> to pom

南笙酒味 提交于 2019-12-14 01:12:56
问题 I am using this simple pom.xml to generate an OSGi-bundle using the maven-bundle-plugin : <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>de.test.osgi</groupId> <artifactId>test</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>bundle</packaging> <build> <plugins> <plugin> <groupId>org

How to build service and how to active that in CQ5

会有一股神秘感。 提交于 2019-12-13 19:58:54
问题 I am learning OSGI, CQ5 these days. I am trying to build a bundle that have service (My first code). I successfully build a bundle and upload that bundle on CQ5, and install that also. But component shows registered only, not active . Why ? I also want to activate this service. How can I do this ? Someone on net said to make jsp. I also do that, but didn't get any response. Help me from this problem. I spent lot of time on this, lot of searching, but I didn't get any solution. How can I use

OSGI with Hibernate: “No suitable driver found”

爷,独闯天下 提交于 2019-12-13 19:01:26
问题 I'm getting the beloved error: java.sql.SQLException: No suitable driver found for jdbc:postgresql://localhost:5432/acme I understand many reasons why this error usually arises: Invalid URL: This URL doesn't seem to have any errors in it and works perfectly fine in SQL Workbench. Driver Not on ClassPath: It is successfully imported (org.postgresql.Driver) and can be instantiated either directly or by using Class.forName("org.postgresql.Driver"). The Hibernate SessionFactory loading is

OSGi (felix) ignores OSGI-INF

前提是你 提交于 2019-12-13 19:01:19
问题 I start felix framework myself. Everything is ok. But when I started with declarative services I see that felix ignores OSGI-INF/temp.xml. In manifest I added via maven Service-Component: OSGI-INF/temp.xml Even when I write wrong classes and interfaces in temp.xml I get no errors. Where is mistake or maybe I must enable something? 回答1: An OSGi framework does not process Service-Component header. That is processed by a Declarative Services implementation like Apache Felix SCR. Do you have that

How to make jdk.nashorn.api.scripting.JSObject visible in plugin [duplicate]

半腔热情 提交于 2019-12-13 17:51:39
问题 This question already has answers here : Access restriction: The type 'Application' is not API (restriction on required library rt.jar) (18 answers) Closed 4 years ago . I have an Eclipse RCP that interacts with java script. Now with Java 8, nashorn is used and code that depended on org.mozilla.javascript (plug-in org.mozilla.javascript_1.7.2.v201005080400.jar) must be changed to use jdk.nashorn.api.scripting. But when i try to use this import in Eclipse, it does not see it import jdk.nashorn

Which JPA providers are supported by Apache Aries Managed JPA?

安稳与你 提交于 2019-12-13 17:06:23
问题 OpenJPA, obviously. I've also seen EclipseLink and Hibernate mentioned, but is there significant difference in capabilities? 回答1: Most differences come from how OSGi-aware the provider is. For example, you may need to wrap the Hibernate jars as OSGi bundles yourself (or use a set someone else has already wrapped - there are a few floating around on the web). Occasionally providers try and do classloading in such a way that it won't work in an OSGi environment, so this is something to look out