karaf

jboss-fuse-6.3.0.redhat-187 Fabric ssh script Error - Command not found: function

戏子无情 提交于 2020-01-06 06:42:19
问题 Created a Fabric Root started ./fuse and then executed bellow command fabric:create --wait-for-provisioning --verbose --clean --new-user admin --new-user-role admin --new-user-password admin --zookeeper-password zoopassword --resolver manualip --manual-ip 127.0.0.1 Started another fuse server ./fuse with ssh listening on 8102 Executed bellow command in the root console(fuse running at step 1 as root) fabric:container-create-ssh --host 127.0.0.1 --user admin --password admin --port 8102 --new

jboss-fuse-6.3.0.redhat-187 Fabric ssh script Error - Command not found: function

两盒软妹~` 提交于 2020-01-06 06:42:09
问题 Created a Fabric Root started ./fuse and then executed bellow command fabric:create --wait-for-provisioning --verbose --clean --new-user admin --new-user-role admin --new-user-password admin --zookeeper-password zoopassword --resolver manualip --manual-ip 127.0.0.1 Started another fuse server ./fuse with ssh listening on 8102 Executed bellow command in the root console(fuse running at step 1 as root) fabric:container-create-ssh --host 127.0.0.1 --user admin --password admin --port 8102 --new

How can I install postgresqljdbc to work in Karaf OSGi?

丶灬走出姿态 提交于 2020-01-02 09:26:22
问题 I want to install org.postgresql/postgresql/9.4-1201-jdbc41 in Karaf but I get errors. How can I resolve these errors? Strangely on Windows my Karaf doesn't have errors with this Postgres jdbc but on Ubuntu it has these errors. Any clues appreciated. Install Kar feature social_importer.kar/1.0-SNAPSHOT java.lang.Exception: Could not start bundle mvn:org.postgresql/postgresql/9.4-1201-jdbc41 in feature(s) T: Unresolved constraint in bundle org.postgresql.jdbc41 [127]: Unable to resolve 127.0:

karaf not displaying any error while component factory example

纵饮孤独 提交于 2019-12-31 04:25:08
问题 i have tried component factory example from this link. interface: package com.java.examplefactoryservice; public interface ExampleFactoryService { public void start(); public void stop(); } factory provider: package com.java.examplecomponentfactoryserviceprovider; import java.util.Map; import org.apache.felix.scr.annotations.Activate; import org.apache.felix.scr.annotations.Component; import com.java.examplefactoryservice.ExampleFactoryService; @Component(name =

How to work with frequent local snapshot bundle deployments on Karaf?

浪子不回头ぞ 提交于 2019-12-29 19:00:06
问题 I decided to build an application on top of OSGI and Karaf - I really like this stuff. However, I'm struggling a bit with a daily deployment on my local, development machine. I mean.. I make a change and then I would like to test it on my local Karaf instance. And it can happen like couple times per hour. The way I'm doing it now is a maven build that creates a JAR bundle and then it's copied into the Karaf's deploy directory. I think that it isn't elegant at all. I was trying to find a way

Error after converting org.pbjar library to OSGi bundle

扶醉桌前 提交于 2019-12-25 07:09:03
问题 I'm trying to convert org.pbjar.jxlayer library to an OSGi bundle, I already succeeded in that but when I try to install it in Karaf container, the container claims that there is a missing requirement needed by this bundle: Unable to resolve 312.0: missing requirement [312.0] osgi.wiring.package; (osgi.wiring.package=com.sun.java.swing) I also put the javax.swing in the bundle import directive but the problem persists I changed the version of JDK (1.5, 1.6, 1.7) but no luck Can you help me

How to test if a feature is installed in a karaf console script?

笑着哭i 提交于 2019-12-25 06:38:34
问题 I need to write a karaf console script that uninstalls a feature, if it is present on karaf 3.0.4. So far I have not found any direct references mentionend in the documentation (https://karaf.apache.org/manual/latest-3.0.x/developers-guide/scripting.html). Using shell:env ? always returns null as the value and I'm not sure if ? is a supported environment variable name in karaf. So how can execute a karaf command if a feature is present? 回答1: It is not possible to test if a feature is

implementing component factory for multiple class with same names and retrieving through property/filter values

泪湿孤枕 提交于 2019-12-25 00:38:09
问题 I am working on OSGi(Rev 4) project in which i have to use karaf registry. Either i can declare my implementation as Component or Service. ie) I can register my component/service in karaf with component factory/service Factory to produce objects of Component/Service. I am having multiple class implementations, so with Service factory i hope it is achievable with single class ie) by registering all the services with the same name with different property/filter values.While retrieving service i

CXF in Karaf: how to configure bean validation on subresources (preferably using Blueprint)?

淺唱寂寞╮ 提交于 2019-12-22 11:33:54
问题 I'm using Dinamics Features of CXF in Karaf and faced with the issue that Bean Validation does not work for subresources. E.g. in the following code: @Path("services") public interface Service { @Path("{id}/orders") public Order getOrderForService(@PathParam("id") int serviceId); } @Path("orders") public interface Order { @POST Product getProduct(@NotNull @Valid Product product); } when Order is root resource, bean validation works fine, but when it is invoked as a subresource of Service,

How to install Hibernate 5 into Apache Karaf v4

家住魔仙堡 提交于 2019-12-21 20:23:51
问题 I've installed Apache Karaf v4.03 and queried the list of available features for Hibernate, as listed below. Unfortunately, I am using Hibernate v5. hibernate | 3.3.2.GA | | Uninstalled | enterprise-4.0.3 | Hibernate 3.x JPA persistence engine support hibernate | 4.2.15.Final | | Uninstalled | enterprise-4.0.3 | Hibernate 4.2.x JPA persistence engine support hibernate-envers | 4.2.15.Final | | Uninstalled | enterprise-4.0.3 | Hibernate Envers 4.2.x hibernate | 4.3.6.Final | | Uninstalled |