apache-karaf

Karaf exception is thrown while installing org.fusesource.leveldbjni

大兔子大兔子 提交于 2019-12-11 01:56:39
问题 Hi i am trying to install the below dependency in karaf <dependency> <groupId>org.fusesource.leveldbjni</groupId> <artifactId>leveldbjni-all</artifactId> <version>1.8</version> </dependency> I am getting the below Exception Exception caught while executing command org.apache.karaf.shell.console.MultiException: Error executing command on bundles: Unable to execute command on bundle 564: The bundle "org.fusesource.leveldbjni.leveldbjni-all_1.8.0 [564]" could not be resolved. Reason: No match

ActiveMQ remote connections refused despite 0.0.0.0 in broker URL

与世无争的帅哥 提交于 2019-12-11 01:31:41
问题 I have an ActiveMQ v5.7.0 broker, running in Karaf v2.3.3, that I want to enable for remote connections. I've set the broker URL to 0.0.0.0:61616, to enable it to listen to network traffic. I've opened the firewall to allow the traffic from the client machines. However, all remote connections are being refused. A quick netstat seems to tell me that the broker isn't listening outside of localhost. jeremy@server:~$ netstat -pan | grep 61616 tcp6 0 0 127.0.0.1:61616 :::* LISTEN - Looking at the

Override Require-Capability in Maven-Bundle-Plugin

被刻印的时光 ゝ 提交于 2019-12-10 19:27:07
问题 My question is similar to this one but I am using the Maven bundle plugin to achieve the same end result. I am building a bundle that contains a persistence.xml file and I have found that the maven-bundle-plugin automatically generates the following headers in the manifest: Require-Capability:osgi.service;effective:=active;objectClass=javax.persistence.spi.PersistenceProvider;javax.persistence.provider=org.apache.openjpa.persistence.PersistenceProviderImpl, Require-Capability: osgi.extender

Apache camel soap request type conversion error

China☆狼群 提交于 2019-12-10 18:11:25
问题 I'm trying to send a soap request in apache camel running on an osgi enviroment (karaf). Until now I got this code public void start(BundleContext context) throws Exception { LOGGER.log(Level.INFO, "START"); MyRouteBuilder routeBuilder = new MyRouteBuilder(); camelContext = new DefaultCamelContext(); StreamComponent stream = new StreamComponent(); camelContext.addComponent("stream", stream); camelContext.addRoutes(routeBuilder); CxfComponent cxf = new CxfComponent(); camelContext.addComponent

OSGI service JPA PersistenceContext not injected

不打扰是莪最后的温柔 提交于 2019-12-10 18:10:09
问题 I have a core library that has an interface that I want to expose as an OSGI service in Fuse ESB (Apache ServiceMix and Karaf). The goal is to allow other bundles to use it. The service uses JPA (OpenJPA) and Spring. The following is the interface: public interface PatientService { public Patient find(Integer id); } and the class: @Repository public class PatientServiceJpaImpl implements PatientService { @PersistenceContext(unitName="psu") private EntityManager entityManager; @Override public

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

How to add a SSL connector for apache karaf?

旧时模样 提交于 2019-12-10 11:57:51
问题 While searching for an answer to this question I stumbled upon http://blog.nanthrax.net/2013/02/multiple-http-connectors-in-apache-karaf/ and Jetty SSL configuration Apache karaf but this information is outdated. I found the new documentation at https://www.eclipse.org/jetty/documentation/current/configuring-connectors.html and the examples differ from proposed configurations. Apache Karaf 4.0.2 seems to use Jetty 9. I already have a keystore at ${karaf.home}/etc/keystores/keystore.jks and

Jetty SSL configuration Apache karaf

别来无恙 提交于 2019-12-10 10:30:27
问题 I am trying to configure the jetty to work with SSL in Apache Karaf OSGI container. http works, but https does not work. What could be the problem? My configuration details below: etc/jetty.xml <Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> <Set name="host"> <Property name="jetty.host" /> </Set> <Set name="port"> <Property name="jetty.port" default="8282" /> </Set> <Set name="maxIdleTime">300000</Set> <Set name="Acceptors">2</Set> <Set name=

How Apache Karaf sorts bundles to install and start?

青春壹個敷衍的年華 提交于 2019-12-10 10:05:18
问题 I have defined four bundles: bundle 1 : export package x version 1 bundle 2 : import package x ver [1,2] and export package y;y uses x bundle 3 : export package x version 2 bundle 4 : import package y and also import package x version 2 Using apache felix (distribuable binary), I found that I should manually impose to not resolve (or start) the bundle 1 and then bundle 2 before starting the bundle 3 (otherwise a uses constraint problem appears because bundle 2 will use package x version 1 and

Why bgp open and notification packets is only flowing in ODL

爱⌒轻易说出口 提交于 2019-12-08 07:52:27
问题 I need to establish a bgp session with route reflector running with odl and my router and so far i have done the following. Installed opendaylight karaf ,nitrogen version . Installed bgp features (feature:install odl-restconf odl-bgpcep-bgp,odl-bgpcep-bgp). Configured parameters using advanced rest client till bgp peer section following the official site (http://docs.opendaylight.org/en/stable-nitrogen/user-guide/bgp-user-guide.html). when i checked the status of my router ,i saw that bgp