apache-servicemix

Using logback with Karaf 3.0.5 running under ServiceMix

馋奶兔 提交于 2020-01-05 18:01:08
问题 I am trying to use logback with Karaf 3.0.5 running under ServiceMix. This is what I have done till now as mentioned in this question. This is what I have done till now:- Removed pax-logging-service by doing uninstall <pax-logging-bundle-id> Removed lib/bin/karaf-client.jar Inside lib placed the following jars:- jcl-over-slf4j-1.7.13 , jul-to-slfj-17.13.jar , logback-classic-1.0.13.jar , logback-core-1.0.13.jar & osgi-over-slf4j-1.7.13.jar From /etc/startup.properties - removed references to

List bundle ID's only on servicemix

杀马特。学长 韩版系。学妹 提交于 2020-01-02 12:00:13
问题 I'm using ServiceMix and I was trying to list some bundles and retrieve only there bundle ID. I'm trying to do the following: osgi:list | grep -i | awk xxx I tried to use awk but that's not provided in ServiceMix. I also tried to use shell:exec like this: osgi:list | grep -i | shell:exec awk 'xxx' But that doesn't work either, maybe my approach is completely wrong. Does anybody else have some experience how I could achieve my goal of only retrieving the id's of a bundle? 回答1: You can always

Crash when calling autoSizeColumn on worksheet, when run under Linux (Servicemix)

会有一股神秘感。 提交于 2020-01-01 12:25:10
问题 I've written module that generates excel, and deployed it under Servicemix. In Windows environment everything is fine, but under Linux Servicemix unexpectedly crashes on following call: for (short i=0;i<=3;i++) { log.trace("AutoSize column {}", i); worksheet.autoSizeColumn(i); } I'm using POI version 4.2-FINAL, FuseESB 4.2, Java 5.0. There are, however, no hs_err*.pid files. Servicemix logs ends on first autoSizeColumn call. Did anyone met such behaviour and know, how it is caused and how to

unable to install activemq-web-console in Fuse service mix

最后都变了- 提交于 2019-12-25 08:16:03
问题 "Error executing command: URL [mvn:org.apache.activemq/activemq-web-console/5.4.0/war] could not be resolved." is thrown up when i do features:install activemq-web-console i am using fuse 4.3 回答1: removed the old Url for activemq from features:removeUrl and added the new one mvn:org.apache.activemq/activemq-karaf/5.4.0/xml/features and re-installed activemq features . if u are unable to install mvn url's then,u must add the fuse repo's to your maven settings xml. apart from this there is a

OSGi bundle access Spring context file from another bundle

大憨熊 提交于 2019-12-24 10:12:22
问题 I have an existing application that exists as multiple Spring projects. Project A's Spring context XML file improts B's Spring context XML file using <import resource="classpath*:/META-INF/spring/BContext.xml" /> However, it I get a FileNotFoundException . I assume this is caused by the fact that the resource is not exposed by project B's bundle. I can access the classes, but not the file. When researching this issue the common comment was to use OSGi services and inject the services instead

use a file in docker containers - windows

▼魔方 西西 提交于 2019-12-24 07:47:30
问题 This is a two part question. 1) In windows, can a folder form any drive apart from C drive be shared? While surfing the internet, I found that by default only C drive can be mounted in docker containers. (Users folder of C drive) 2) Now coming to the main part - I am working on a camel project where I am using a config file. In this config file, I am using two parameters for Servicemix keystore files. Now previously the keystores are located at path - D:\sandboxes\apache-servicemix-7.0.0.M3

Upgrade Servicemix 4 to Servicemix 7

坚强是说给别人听的谎言 提交于 2019-12-24 05:59:29
问题 We are using ServiceMix 4 in our company, now due to deprecation of Java 6 we are planning to upgrade both Java and ServiceMix to the latest version. But I can see lots of configuration changes included in Servicemix 7, so how can we upgrade from SMX4 TO SMX7? Also, where can I find tutorials to learn SMX7 completely? I've done a small search and all I end up is a simple intro as mentioned in SMXx. x quickstart.pdf. All the bundles that were built previously was done by different people and

org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: 30000 millis

只愿长相守 提交于 2019-12-23 18:31:44
问题 I'm trying to expose a web service using fuse esb + apache camel + seda/activemq and I'm facing to an issue returing a status message to the web service call. here is my simple camel route : <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://camel.apache.org/schema/cxf" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans

Dependency management in OSGI bundle ServiceMix

风格不统一 提交于 2019-12-23 01:28:30
问题 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

Proxy authentication with Camel using ProducerTemplate

℡╲_俬逩灬. 提交于 2019-12-20 05:43:08
问题 I have a project that's using Camel and running on a ServiceMix server, but I can't seem to get it to access external web services, and I suspect it's because I can't set the proxy authentication properly. Exchange exchange = producerTemplate.request(url, new Processor() { public void process(Exchange exchange) throws Exception { exchange.getIn().setHeader(Exchange.HTTP_METHOD, "POST"); exchange.getIn().setHeader(Exchange.CONTENT_TYPE, "application/json"); } }); response = exchange.getOut()