apache-karaf

Pre-programmed feature installs at apache karaf launch

﹥>﹥吖頭↗ 提交于 2020-05-17 06:34:14
问题 I am working on an opendaylight project that uses apache karaf. At the start of the program, I need karaf to have some features installed. Currently (and this works) I manually type this into the shell and the features get installed: $ bin/karaf Apache Karaf starting up. Press Enter to open the shell now... 100% [========================================================================] Karaf started in 9s. Bundle stats: 409 active, 410 total ________ ________ .__ .__ .__ __ \_____ \ ______ __

Why am I getting this “split package” warning?

China☆狼群 提交于 2020-02-25 12:51:06
问题 I'm building a .kar-file, but when I run mvn package I'm getting this error: [INFO] --- maven-bundle-plugin:2.4.0:bundle (default-bundle) @ common --- [WARNING] Bundle se.eman.path.to.my.package:common:bundle:1.0.0-SNAPSHOT : Split package, multiple jars provide the same package:com/sun/xml/bind/v2 Use Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning Package found in [Jar:jaxb-impl, Jar:jaxb-core] Class path [Jar:., Jar:camel-core

Error starting bundle in karaf: “via two dependency chains”

跟風遠走 提交于 2020-01-17 06:32:39
问题 I am currenty developing a camel route which reads from a netty4/mllp endpoint and store the hl7 message to a amqp queue. This is my environment: apache-maven-3.3.9 apache-karaf-4.1.1 apache-camel-2.18.3 apache-artemis-2.0.0 this is my pom.xml <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>****

Does Karaf support downloading of transitive dependencies from maven central?

拥有回忆 提交于 2020-01-13 20:40:49
问题 I am trying to use Karaf and I was wondering if it is possible to configure it to pull the transitive dependencies from the Apache Maven Central repository. Without having to use "embedded bundles" I already know you can pull explicit dependencies, the key part of the the question is the "transitive" ones. I also know you can use OBR to read from a repository.xml file in a deployed site, but I can't find one for Maven central. A possible answer to the question would be to add the URL, but I

Logging camel exceptions and sending to the dead letter channel

不羁岁月 提交于 2020-01-13 09:43:30
问题 I have a Camel route, running within Karaf, for which I've added a Dead Letter Channel. This is to handle cases where the route fails and I want to keep the problem message and log the cause. I can't throw the exception back to the calling application as I'm handling some processing asynchronously. From reading the documentation and trying a number of cases, it's not clear to me how to both log the exception into Karaf's log and deposit the original message onto the dead letter queue. Here's

Redhat Fuse updated features repo list?

冷暖自知 提交于 2020-01-11 14:17:28
问题 I have Red Hat Fuse and AMQ running in a docker. The Fuse and AMQ are baked into the docker from a directory, with shared volumes. They're not being downloaded. The version is v7.0 or v7.1. I have been away for about 3 weeks and the JVM crashed for some reason. I rebuilt the docker for good measure and started it up, and our services are failing now. From what I can tell, the issue is that the feature:repo-list has updated itself. ( It has broken production, and people are freaking out. ) Is

How to deploy Osgi Compendium Services in Karaf 4?

こ雲淡風輕ζ 提交于 2020-01-07 03:05:17
问题 I got this error when I tried to deploy a bundle that uses Compendium service: Error executing command: Unable to resolve root: missing requirement [root] ... osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.component)(version>=1.1.0) (!(version>=2.0.0)))"]] My bundle is configured so it uses: <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.compendium</artifactId> <version>5.0.0</version> </dependency> And acording to karaf 4 depts documenation. Osgi

How to deploy Osgi Compendium Services in Karaf 4?

空扰寡人 提交于 2020-01-07 03:05:06
问题 I got this error when I tried to deploy a bundle that uses Compendium service: Error executing command: Unable to resolve root: missing requirement [root] ... osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.component)(version>=1.1.0) (!(version>=2.0.0)))"]] My bundle is configured so it uses: <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.compendium</artifactId> <version>5.0.0</version> </dependency> And acording to karaf 4 depts documenation. Osgi

Apache Karaf, can't inject entity manager

帅比萌擦擦* 提交于 2020-01-06 03:39:08
问题 I want to use entity manager from container, but when I try to access it I get java.lang.IllegalStateException: Need active coordination persistence.xml <persistence-unit name="data-point" transaction-type="JTA"> <jta-data-source>osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=dvdrental)</jta-data-source> <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL82Dialect"/> <property name="hibernate.show_sql" value="true"/> <property name="hibernate

how do i call jsf template from different xhtml (another bundle) in OSGi

荒凉一梦 提交于 2020-01-06 02:36:11
问题 I want to call xhtml template from another xhtml but this xhtml is in different project(different jar). I'm using OSGi with karaf. This is my master.xhtml ; <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui" xmlns:ui="http://java