apache-karaf

How to allow remote conection with Karaf (for doing remote debugging)?

℡╲_俬逩灬. 提交于 2019-12-08 07:33:19
问题 I need some help. I have a vmware virtual machine with a Karaf server and some java applications deployed. I've started karaf with debug flag and it opened port 5005 for debugging. What I want to do is connect to this port with eclipse to do remote debugging, but I am always refused to connect. I can access to the virtual from an external firefox using the VM IP, but when I enter the karaf port 8181 I'm not able to connect. Do you know how to enable Karaf to accept remote connections? Thanks

How to load external properties file through OSGi blueprint property-placeholder and Java DSL

依然范特西╮ 提交于 2019-12-08 04:43:20
问题 I have a bundle installed in Apache servicemix that is using apache blueprint for configuration. I am using an external properties file abc.cfg located in /config folder and is being loaded as follows: via blueprint <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel-cxf="http://camel.apache.org/schema/blueprint/cxf" xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:cxf="http://cxf.apache.org/blueprint/core" xsi

Karaf Cave vs org.apache.felix.bundlerepository

笑着哭i 提交于 2019-12-07 18:46:32
问题 Good day. I am trying to get the benefits of OBR in my application. I took Karaf Cave (4.0.0) as OBR implementation and org.apache.felix.bundlerepository (2.0.4) as OBR client. I successfully configured the repository itself but I can't properly use it. The problem is: when I install the bundle via OBR and all its dependencies are already installed in OSGI runtime, it is installed successfully. But if some of the requirements are missing, I got an "Unsatisfied requirements" error, which is

Can't capture Apache Karaf client output

一个人想着一个人 提交于 2019-12-07 03:09:54
问题 I started Apache Karaf 3.0.0 in server mode using $KARAF_HOME/bin/start in CentOS 6.5. Then I wanted to run several commands using $KARAF_HOME/bin/client and also capture the output of these commands, so as to make sure the commands ran successfully. The output did get spit out on my console but I was never able to redirect it into a file. Seems like Karaf doesn't write anything to the output stream or error stream. I tried the following: [apache-karaf-3.0.0]$ ./bin/start clean [apache-karaf

How to load external properties file through OSGi blueprint property-placeholder and Java DSL

你离开我真会死。 提交于 2019-12-06 16:37:41
I have a bundle installed in Apache servicemix that is using apache blueprint for configuration. I am using an external properties file abc.cfg located in /config folder and is being loaded as follows: via blueprint <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel-cxf="http://camel.apache.org/schema/blueprint/cxf" xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:cxf="http://cxf.apache.org/blueprint/core" xsi:schemaLocation=" http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd http://camel.apache.org

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

How to allow remote conection with Karaf (for doing remote debugging)?

孤街浪徒 提交于 2019-12-06 15:03:50
I need some help. I have a vmware virtual machine with a Karaf server and some java applications deployed. I've started karaf with debug flag and it opened port 5005 for debugging. What I want to do is connect to this port with eclipse to do remote debugging, but I am always refused to connect. I can access to the virtual from an external firefox using the VM IP, but when I enter the karaf port 8181 I'm not able to connect. Do you know how to enable Karaf to accept remote connections? Thanks a lot in advance! I've found the troubles, it was a combination of things. First of all, I used Bridged

Debug Karaf bundles in Eclipse: persist dev:watch URLs/IDs?

心已入冬 提交于 2019-12-06 14:28:36
I want to be able to easily debug an OSGi bundle running in Apache Karaf from Eclipse. The easiest way I've identified so far is to create a Java Application launcher that starts Karaf. If the bundle was previously installed then I can set breakpoints, even in the activator, and all is good. The issue is that when a change is made to the code, mvn install invoked, and then the Eclipse Karaf launcher invoked, I am running the old cached version of the bundle. I have played with running Karaf from the command line, installing my bundle with a Maven URL, and using dev:watch with success. But I

Karaf Cave vs org.apache.felix.bundlerepository

痴心易碎 提交于 2019-12-06 13:43:04
Good day. I am trying to get the benefits of OBR in my application. I took Karaf Cave (4.0.0) as OBR implementation and org.apache.felix.bundlerepository (2.0.4) as OBR client. I successfully configured the repository itself but I can't properly use it. The problem is: when I install the bundle via OBR and all its dependencies are already installed in OSGI runtime, it is installed successfully. But if some of the requirements are missing, I got an "Unsatisfied requirements" error, which is odd, since I know for sure that all the resources which resolves these requirements are present in the

How to run Vaadin 7 applications in Karaf?

寵の児 提交于 2019-12-06 13:09:18
I have been looking for days now, with lots of experiments, for an answer to this question. What do I need to do to be able to run applications, using version 7 of Vaadin Web framework, inside Karaf? There are some information about it but none of the solutions I read worked. The only related question I found on SO ( How to integrate Vaadin 7 with OSGi? ) does not really have an valid answer, at least for my question. Every time I follow a solution found by googling I always get lots of missing dependencies and I found myself indefinitely searching and installing bundles in order to satisfy