apache-karaf

Karaf stops unexpectedly

限于喜欢 提交于 2019-12-12 02:37:40
问题 After upgrading Karaf from 2.2.11 to 4.0.3 with log4j2 support and running load tests of our Karaf based application, Karaf unexpectedly starts shutdown process. We increased most of memory options but it did not help. No info in logs - just "Stopping blueprint extender" and "Unregistering bundles...". Above these messages there was debug info from my bundles. In manifest files of our bundles old OSGI container is used (org.osgi.framework;version="1.3.0"). This occurs for single threaded

Karaf Pax Exam fails with Unknown protocol: wrap

做~自己de王妃 提交于 2019-12-11 19:12:18
问题 Hi my pax exam fails with the error Unknown protocol: wrap org.apache.karaf.features.internal.util.MultiException: Error at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:84)[9:org.apache.karaf.features.core:4.0.4] at org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:72)[9:org.apache.karaf.features.core:4.0.4] at org.apache.karaf.features.internal.region

Fuse dead after restart

一个人想着一个人 提交于 2019-12-11 18:28:14
问题 I rebuilt my docker with Fuse (Red Hat Fuse (7.0.0.fuse-000191-redhat-1) ) on Centos 7, and everything is broken now. I didn't change anything. Could a yum update cause this? Exception caught while executing command org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=jline; type=karaf.feature; version="[3.6.2,3.6.2]"; filter:="(&(osgi.identity=jline) (type=karaf.feature)(version>=3.6.2)(version<=3.6.2))" [caused by:

Karaf add additional property to existing config file

天大地大妈咪最大 提交于 2019-12-11 12:49:11
问题 I have a bundle which uses a configuration file org.jemz.karaf.tutorial.hello.service.config.cfg with one property: org.jemz.karaf.tutorial.hello.service.msg="I am a HelloServiceConfig!!" My blueprint for using ConfigAdmin is like: <cm:property-placeholder persistent-id="org.jemz.karaf.tutorial.hello.service.config" update-strategy="reload" > <cm:default-properties> <cm:property name="org.jemz.karaf.tutorial.hello.service.msg" value="Hello World!"/> </cm:default-properties> </cm:property

Startup for bundles placed in the deploy folder of Karaf

岁酱吖の 提交于 2019-12-11 10:40:19
问题 I have two bundles - bundle-A exports bnd.a.* packages and bundle-B imports bnd.a.*; I keep these bundles in the deploy folder; it works but there are times when bundle-B comes first before bundle-A and fails! Is there a way to set the start up order for bundles kept in the deploy folder? Please note that we got it working using feature's start level but not right in the deploy folder. 回答1: No, as the deploy folder is just another way of deploying bundles during development time. For

How to inject apache karaf bundles as a service in the web application using aries blue print?

有些话、适合烂在心里 提交于 2019-12-11 10:37:27
问题 I have servlet web application and want to inject apache karaf bundles as a service in the web application using aries blueprint. These are the Steps followed for injecting the bundles: 1) added reference tag with id and interface values in the blueprint.xml sample code is here <reference id="jsonStore" interface="com.test.test.jsonstore.service.JsonClientStore" /> 2) added bean tag with ref attribute as reference id, of bundles what we are injecting in the blueprint.xml file. sample code is

usecase of metatype attribute in felix scr annotations

点点圈 提交于 2019-12-11 10:08:23
问题 I am using scr annotations in my project. Can anybody explain the usecase of metatype attribute in @Component annotation? import org.apache.felix.scr.annotations.Activate; import org.apache.felix.scr.annotations.Component; import org.apache.felix.scr.annotations.Reference; import org.apache.felix.scr.annotations.ReferenceCardinality; import org.apache.felix.scr.annotations.ReferencePolicy; import org.apache.felix.scr.annotations.Service; @Component (name = "SampleComponent", label =

Use Spring AOP in OSGi bundle

 ̄綄美尐妖づ 提交于 2019-12-11 04:19:09
问题 I am trying to use the Spring AOP for logging purposes. I have set up the logging bundle, and the OSGi service in it. I have other OSGi bundle which uses the service from logging bundle as a OSGi reference. The logging bundle is deployed into Apache Karaf and running. I can not get my other bundle deployed. The spring configuration in my bundle is like that: <osgi:reference id="loggingIterceptor" interface="com.groupgti.commons.log.LoggingInterceptorAdvice"/> <aop:config> <aop:pointcut id=

Increasing Jetty ThreadPool size in Karaf

微笑、不失礼 提交于 2019-12-11 03:24:36
问题 Trying to increase the number of threads in embedded jetty running in karaf .Im changing the jetty.xml with the following properties as described in the POST . <Configure class="org.eclipse.jetty.server.Server"> <Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.util.thread.QueuedThreadPool"> <Set name="minThreads">10</Set> <Set name="maxThreads">1000</Set> </New> </Arg> </Call> </Configure> And also having org.ops4j.pax.web.cfg file in karaf ,with below properties : org.ops4j.pax

Install ActiveMq in Apache Karaf 4.0.0.M2

泄露秘密 提交于 2019-12-11 02:39:15
问题 I'm trying to Install ActiveMQ in Karaf 4.0.0M2. But it always fails with an error. Please see console below. Please help me to resolve this problem. karaf@root()> feature:install jms karaf@root()> feature:repo-add activemq Adding feature url mvn:org.apache.activemq/activemq-karaf/LATEST/xml/features karaf@root()> feature:install activemq-broker Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=activemq-web-console ; type=karaf.feature;