Re: bin/client fails to connect when called via ansible.builtin.shell

2022-01-18 Thread Freeman Fang
Yes, this is the TTY thing and I ran into the same thing before. On Tue, Jan 18, 2022 at 5:51 PM VIEILLARD Francois < francois.vieill...@soprasteria.com> wrote: > Hi Ralf > > I had the exact same problem as you and I found that the script fails > because there is no TTY in the remote session

Re: Karaf 4.2.11 - "maven:repository-remove -id central" fails with NPE. Why?

2021-04-12 Thread Freeman Fang
gt; Le 12 avr. 2021 à 21:00, Freeman Fang a écrit : > >  > Hi Paul, > > This is caused by that you don't have ~/.m2/settings.xml, so mavenSettings > is null. We need to add a NPE guard here. > > Freeman > > On Mon, Apr 12, 2021 at 2:43 PM Paul Spencer > wrote:

Re: Karaf 4.2.11 - "maven:repository-remove -id central" fails with NPE. Why?

2021-04-12 Thread Freeman Fang
Hi Paul, This is caused by that you don't have ~/.m2/settings.xml, so mavenSettings is null. We need to add a NPE guard here. Freeman On Mon, Apr 12, 2021 at 2:43 PM Paul Spencer wrote: > Karaf 4.2.11 > Java 1.8.0_282 > OSRedhat 8.2 > > Starting with a virgin Karaf 4.2.11 installation, I

Re: Add library to jdk9plus with karaf-maven-plugin

2020-08-13 Thread Freeman Fang
Hi Guillaume, Could you please fill an enhancement jira ticket for this? We can track it there. Thanks! Freeman On Wed, Aug 12, 2020 at 4:45 PM Guillaume Girard wrote: > Hi all, > > I am trying to use the karaf-maven-plugin to customize a distribution and > more specifically to add bouncy

Re: Karaf 4.2.7 + Servlet Multipart java.lang.NoClassDefFoundError: org/eclipse/jetty/util/MultiPartInputStreamParser

2020-06-07 Thread Freeman Fang
Hi, I believe this is fixed in Karaf 4.2.8 https://issues.apache.org/jira/browse/KARAF-6597 So give it a try with Karaf 4.2.8 Cheers Freeman On Sun, Jun 7, 2020 at 11:38 AM Davi Baldin Tavares wrote: > Hi Karafers, > > A) In case I use Annotation: > > @WebServlet(name = "Sendgrid Inbound

Re: "Error downloading mvn:org.apache.camel/camel-commands-core/3.2.0" installing any camel 3.2.0 feature

2020-04-15 Thread Freeman Fang
g.apache.karaf.features.xml > > > originalUri="mvn:org.apache.camel/camel-commands-core/3.2.0" > replacement="mvn:org.apache.camel.karaf/camel-commands-core/3.2.0"/> > > > > > On Apr 15, 2020, at 9:38 AM, Freeman Fang > wrote: > &

Re: "Error downloading mvn:org.apache.camel/camel-commands-core/3.2.0" installing any camel 3.2.0 feature

2020-04-15 Thread Freeman Fang
Hi, This is a known issue, please see the discussion and solution here Cheers Freeman On Wed, Apr 15, 2020 at 9:33 AM Paul Spencer wrote: > Karaf 4.2.0 > Java 1.8 > > I am receiving the following error

Re: Camel 3.2.0 install on Karaf 4.2.8

2020-04-10 Thread Freeman Fang
Hi, This is a known issue caused by karaf related stuff in camel being moved to camel-karaf sub-project and this already get fixed at camel. Please take a look at the discussion here to get the idea how to

Re: CNF javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:50)

2020-03-14 Thread Freeman Fang
And for the Provide-Capability requirements, I think we need to release jaxrs-api-2.1 from Servicemix which will contain the fix. So far you can use the snapshot version of it to give it a quick shot. Freeman On Sat, Mar 14, 2020 at 12:00 PM Freeman Fang wrote: > Hi, > > Please see my

Re: CNF javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:50)

2020-03-14 Thread Freeman Fang
Hi, Please see my comments inline On Sat, Mar 14, 2020 at 11:54 AM Alex Weirig wrote: > Hi Tim, > > thanks for your answer, that was what I was looking at to begin, this was > my initial code > > @Reference ClientBuilder clientBuilder; > > Client client =

Re: CNF javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:50)

2020-03-14 Thread Freeman Fang
Hi, This javax.ws.rs.client.ClientFinder is suspicious. Could you please use find-class javax.ws.rs.client.ClientFinder to see which bundle contains this class? In CXF, we use Servicemix wrapped jaxrs spec bundle which doesn't use javax.ws.rs.client.ClientFinder at all. My gut is that somehow

Re: Karaf 4.2.8 and Java 13 (Was: Error parsing system bundle export statement (Java 13))

2020-02-24 Thread Freeman Fang
Hi Alex, Thanks for the detailed feedback. Would you please create a jira ticket so that we can have better track there. Thanks! Freeman On Mon, Feb 24, 2020 at 12:02 PM Alex Soto wrote: > I tested with JDK 11 and it worked, but it does not work with JDK 13. > I hope I can migrate to 13

Re: javax.xml.bind.annotation issue with Karaf-4.2.5 with Java-8

2019-05-29 Thread Freeman Fang
Hi Erwin, Actually you can always specify jaxb version like javax.xml.bind*;version=“[2,3)”, in your bundle pom.xml maven-bundle-plugin configuration, to make it work both with jaxb2.2 and 2.3 Cheers - Freeman(Yue) Fang Red Hat, Inc. > On May 29, 2019, at 9:42 PM, Erwin

Re: Exception starting HttpContext registration java.lang.NullPointerException: null

2019-05-17 Thread Freeman Fang
Hi, Please use JDK11 if you could to see if there’s any difference, JDK9 isn’t a LTS version. Cheers - Freeman(Yue) Fang Red Hat, Inc. > On May 15, 2019, at 9:50 AM, Krenn Daniel wrote: > > Hi Jean-Baptiste, > > Apache Camel Version: 3.0.0-M1 > Apache Karaf Version: 4.2.4

Re: karaf 4.2.2 with OpenJDK 11 on windows

2019-03-05 Thread Freeman Fang
Hi Doug, Karaf 4.2.3 fixed several jdk11 related issues and we strongly recommend you to switch to Karaf 4.2.3 if you want to use JDK11. Cheers - Freeman(Yue) Fang Red Hat, Inc. > On Mar 6, 2019, at 7:46 AM, Jackson, Douglas > wrote: > > Hi! > The OOTB karaf 4.2.2 does not

Re: Any plans for supporting JDK 11 ?

2019-01-24 Thread Freeman Fang
;> <http://www.jahia.com/vcard/HuberSerge.vcf> >> >> > JOIN OUR COMMUNITY <http://www.jahia.com/> to evaluate, get trained and to >> > discover why Jahia is a leading User Experience Platform (UXP) for Digital >> > Transformation. >> &

Re: Problems with SAXParserFactory in Karaf 4.2.1

2019-01-09 Thread Freeman Fang
Hi Richard, Would you please test Karaf 4.2.2, I believe this issue has already get fixed. If not, please append a reproducer testcase so that we can reproduce and investigate it. Thanks! - Freeman(Yue) Fang Red Hat, Inc. > On Jan 9, 2019, at 7:33 PM, Richard Hierlmeier >

Re: Update

2018-12-26 Thread Freeman Fang
Hi Scott, Thanks for the update! Cheers - Freeman(Yue) Fang Red Hat, Inc. > On Dec 27, 2018, at 7:06 AM, Leschke, Scott wrote: > > For what it’s worth, a few weeks ago I reported that I was seeing the Karaf > console hang with version 4.2.1 under Windows. I far as I can

Re: Karaf 4.2.2, Java 11, OpenJFX 11 and PaxExam

2018-12-26 Thread Freeman Fang
changed (I've previously had the tests working under earlier versions of > Karaf and Java) > > > Kerry > On 23/12/2018 23:21, Freeman Fang wrote: >> >> - >> Freeman(Yue) Fang >> >> Red Hat, Inc. >> >> >> >> >> &

Re: Karaf 4.2.2 with jdk 11

2018-12-26 Thread Freeman Fang
the script to set the classpath. > > Regards > JB > > > On Wednesday, December 26, 2018 08:08 CET, Freeman Fang > wrote: > >> >> > tracked and fixed by > > https://issues.apache.org/jira/browse/KARAF-6062 > <https://issues.apache.org

Re: Karaf 4.2.2 with jdk 11

2018-12-25 Thread Freeman Fang
using karaf.bat on a VM, probably forgot to cherry-pick the > change. > > Regards > JB > > On 24/12/2018 00:15, Freeman Fang wrote: >> Jaxb module was removed since JDK11 and we need those jaxb jars from >> jdk9plus folder. >> >> Seems on windows thos

Re: Karaf 4.2.2, Java 11, OpenJFX 11 and PaxExam

2018-12-23 Thread Freeman Fang
- Freeman(Yue) Fang Red Hat, Inc. > On Dec 24, 2018, at 4:38 AM, Kerry wrote: > > Hi, > > I'm trying to to get my project FlexFx to work on Java 11 with OpenJFX 11 > inside Karaf 4.2.2 and have so far managed to get it to work by manually > deploying the OpenJFX jars to

Re: Karaf 4.2.2 with jdk 11

2018-12-23 Thread Freeman Fang
Jaxb module was removed since JDK11 and we need those jaxb jars from jdk9plus folder. Seems on windows those jars are not on CLASSPATH, should be something wrong in karaf.bat script. I will take a close look. - Freeman(Yue) Fang Red Hat, Inc. > On Dec 23, 2018, at 12:44 PM,

Re: Running Karaf 4.2.1 with OpenJDK 11

2018-11-30 Thread Freeman Fang
Hi, FYI, we have better JDK11 support for the coming Karaf 4.2.2. Could you please try with Karaf 4.2.2-SNAPSHOT for now to see if you still have issue? Thanks! - Freeman(Yue) Fang Red Hat, Inc. > On Dec 1, 2018, at 2:51 AM, Javier Delgadillo wrote: > > Hello everyone, >

Re: karaf-maven-plugin version 4.2.2?

2018-11-21 Thread Freeman Fang
Hi Alex, FYI, Karaf 4.2.2 isn't released yet, should be available in coming weeks. Cheers Freeman - Freeman(Yue) Fang Red Hat, Inc. > On Nov 22, 2018, at 4:41 AM, Alex Soto wrote: > > I am starting to upgrade Karaf to version 4.2.2, plugin karaf-maven-plugin > is missing:

Re: Error while sending email because of javax.activation

2018-10-25 Thread Freeman Fang
Thanks for reporting this. Could you please create a jira ticket and I will take care of it. - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat > On Oct 25, 2018, at 8:20 PM, DUTERTRY Nicolas > wrote: > > Hi, > > It is not possible to send email in Karaf

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-17 Thread Freeman Fang
Yes, as JB said, you should use spec bundles from Apache Servicemix which support OSGi locator which means can find spec impls in OSGi container. As to which spec bundles you should have for your case, if it’s web service endpoint, you actually can draw on cxf-specs features shipped with Apache

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Freeman Fang
t; > If you don't mind, I will add a note in the documentation, as some users > might be "lost". > > Regards > JB > > On 14/09/2018 16:06, Freeman Fang wrote: >> Hi JB, >> >> Those packages are already removed from Karaf 4.2.1(etc/jre.properties) &

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Freeman Fang
s and let the user install the spec bundle ? > Maybe, we can also do it by default in the Karaf standard distribution. > > Thoughts ? > > Regards > JB > > On 14/09/2018 15:51, Freeman Fang wrote: >> Hi, >> >> For Java 9,10,11, we handle those vers

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Freeman Fang
the API into your framework. The > latter solution is better. > > Also, Karaf needs to fix its platform definition as it incorrectly states > that the system bundle provides the package. This package should only be > advertised if the relevant JPMS module is also deployed. > > Tim

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Freeman Fang
Hi, For Java 9,10,11, we handle those versions in same way. Since several EE related jigsaw modules including javax.xml.ws will be removed from Java11 eventually, override it and let system bundle 0 expose those packages makes less sense IMO, you need install jax-ws api bundle by yourself.

Re: Karaf 4.2.1: cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor

2018-09-14 Thread Freeman Fang
Hi, This should be fixed by KARAF-5912[1] [1]https://issues.apache.org/jira/browse/KARAF-5912 Cheers Freeman - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat > On Sep 14, 2018, at 8:58 PM, lechlukasz wrote:

Re: Karaf 4.2.1: cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor

2018-09-12 Thread Freeman Fang
m > lib/boot. What are the risks of not having them ? > > -- > Nicolas Dutertry > > De : Freeman Fang [mailto:freeman.f...@gmail.com > <mailto:freeman.f...@gmail.com>] > Envoyé : mercredi 12 septembre 2018 09:32 > À : user@karaf.apache.org <ma

Re: Karaf 4.2.1: cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor

2018-09-12 Thread Freeman Fang
> sporadically. > > IMO it might also be worth a try to remove the JAXB bundles from the lib/boot > directory before starting karaf. Having JAXB in the JDK and the boot > classpath might also cause issues. > > Best regards > Stephan > > > From: F

Re: Karaf 4.2.1: cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor

2018-09-12 Thread Freeman Fang
Hello, This ClassCastException normally means you have two jaxb-impl bundles(with different version) installed in the Karaf container. Could you please double check it? You can use Karaf command package:exports |grep com.sun.xml.bind And paste what the output you get here Thanks!

Re: Startup error using JRE 10 with 4.2.0

2018-07-11 Thread Freeman Fang
Hi, FYI, the upcoming Karaf 4.2.1 will start to support Java 10. The error you see comes from that the the asm6.0(used in Karaf 4.2) can’t work with JAVA10. Cheers - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat > On Jul 10, 2018, at 10:51 PM, Leschke, Scott

Re: Any plans for supporting JDK 11 ?

2018-06-07 Thread Freeman Fang
Please see the patch and my comment on KARAF-5764, I think we need more change to support java11 in KARAF. As XBean also embed asm source, so we need a new XBean release which build against ASM6.2, as well as a new easymock release. Besides, Since JDK11, those modules get removed from JDK *

Re: Karaf and SSH timeouts

2018-01-05 Thread Freeman Fang
Seems we already have a jira ticket for it KARAF-5473[1] [1]https://issues.apache.org/jira/browse/KARAF-5473 - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat > On Jan 5, 2018, at 5:36 AM, Ryan Moquin wrote: > > One more thing that might

Re: Encrypted keystore password

2017-05-21 Thread Freeman Fang
Hi, Yes, provided you are using Karaf 4.1.x, which in turn uses the pax.web 6.0.x. Basically we use jasypt to encrypt the sensitive string, hence introduce several more properties for pax web pid, such as enc.masterpassword, enc.algorithm, enc.enabled, enc.prefix, enc.suffix. Moreover, you can

Re: Invalid Bundle Context errors with 4.0.6, unpredictably

2016-09-19 Thread Freeman Fang
FWIW, for the upcoming pax-exam 4.10, we offer a chance to rerun the test if the testcase implements a retry TestRule, so that when the test failed first time with such bundle refresh problem, there’s another chance to rerun it with a refreshed Karaf container. PAXEXAM-795[1] tracked this.

Re: Breaking change in 4.0.6 bin/client login

2016-09-08 Thread Freeman Fang
Hi, IMO the username/password stored in etc/users.properties should be only used on the jaas server side with PropertiesLoginModule, that’s the backend storage for server side thing, so the bin/client which basically is a ssh client should never rely on it by default. Although we ship both

Re: CXF feature question

2015-09-29 Thread Freeman Fang
Hi, Those resource import are not needed for a while. - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat > On Sep 26, 2015, at 1:06 AM, Daniel McGreal wrote: > > Hi Karaf types, > > I’m using Karaf 3.0.1 and the cxf-jaxrs feature for

Re: CXF feature question

2015-09-29 Thread Freeman Fang
on what is required? > I'll be looking into the other suggestion today. > Dan. > > On 29 Sep 2015, at 08:11, Freeman Fang <freeman.f...@gmail.com > <mailto:freeman.f...@gmail.com>> wrote: > >> Hi, >> >> Those resource import are not ne

Re: karaf 3.0.4 problem with console client

2015-09-09 Thread Freeman Fang
Yeah, this is the bug we need fix. Create KARAF-3984[1] to track it. [1]https://issues.apache.org/jira/browse/KARAF-3984 - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat > On Sep 3, 2015, at 3:36 PM, ykruchko wrote: > > when I execute

Re: Cannot Deploy Spring Web Application

2015-04-29 Thread Freeman Fang
Hi, How you deploy the war bundle? Also, could you check the headers of the war? You can use the headers war_bundle_id to see the Import-Package part, as the exception suggest you should at least Import-Package org.springframework.web.context - Freeman(Yue) Fang Red Hat, Inc.

Re: javax.activation.DataHandler in OSGi

2015-04-22 Thread Freeman Fang
Hi David, Could you put that activation bundle into the endorsed dir so that all activation class and java.awt.datatransfer.DataFlavor could be loaded from system class loader to avoid this problem? That's what Karaf do currently, you can see

Re: CXF - No DestinationFactory for Http Transport

2015-01-08 Thread Freeman Fang
Hi, Yeah, this error means your bundle get started before the cxf-rt-transports-http bundle. You can make your bundle import an OSGi service(org.apache.cxf.transport.http.DestinationRegistry) which is exposed by the cxf-rt-transports-http bundle to ensure cxf bundle get started reliably

Re: Error message

2014-12-18 Thread Freeman Fang
Hi, That message is from Apache Felix but not Karaf. You may need post request there. - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-12-18, at 下午7:38, Milan Tomic wrote: Hi, If you could please change error message from: Unable to resolve

Re: 60,000+ org.apache.karaf.shell.security.impl.SecuredCommandProcessorImpl objects in the HeapDump. Why?

2014-12-16 Thread Freeman Fang
+ org.apache.karaf.shell.security.impl.SecuredCommandProcessorImpl objects in the HeapDump. Why? Hi I have reproduced it yesterday as well. Thanks for the Jira Freeman, I will try to work on it tonight or tomorrow. Regards JB Original message From: Freeman Fang

Re: 60,000+ org.apache.karaf.shell.security.impl.SecuredCommandProcessorImpl objects in the HeapDump. Why?

2014-12-15 Thread Freeman Fang
FYI, I can reproduce it and create KARAF-3415[1] to track it, and I'm on it [1]https://issues.apache.org/jira/browse/KARAF-3415 - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-12-11, at 下午10:54, Paul Spencer wrote: JB, Have you been able to

Re: Karaf 3.0.x and Bouncy Castle

2014-11-23 Thread Freeman Fang
Hi, Please take a look at [1] to get more details about how to add security providers for Karaf [1]http://karaf.apache.org/manual/latest/users-guide/security.html - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-11-22, at 上午8:27, Richard Snowden

Re: ScopedProxyMode ClassCastException when starting the bundle

2014-10-30 Thread Freeman Fang
Hi, This CCE error generally is caused by org.springframework.context.annotation.ScopedProxyMode was loaded by different classloaders, so you need check 1. if you have multiple spring-context bundles in container or 2. your customer bundle embed spring-context lib which isn't good practice in

Re: Blueprint bean error on startup

2014-10-30 Thread Freeman Fang
Hi, Are you sure BarImpl has a constructor with a single argument taking the Foo interface, your blueprint file doesn't match this. - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-10-30, at 下午4:32, Marcus Bond wrote: Hi, I have the following

Re: Missing requirement for org.apache.cxf.jaxrs.ext.multipart

2014-10-13 Thread Freeman Fang
Hi, You should install cxf feature where have all CXF related bundles for you. - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-10-4, at 上午3:42, petertirrell wrote: I'm trying to implement a bundle to handle uploading files; I have a REST web service

Re: Adding a Web Interface for a Legacy OSGi application

2014-09-17 Thread Freeman Fang
Hi, Actually no such standard approach, :-) However your approach sounds good to me, that said, has a webservice facade and your legacy application as a backend - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-9-17, at 下午3:12, Richard Snowden wrote:

Re: How to config jmx ACL for javax.management.MBeanServer

2014-06-27 Thread Freeman Fang
will match all those JMX invocations which can't find more specific definition in ObjectName pattern acl configuration files As you login in as karaf which is admin role, so you can do any invocation here. Regards. Xilai Dai From: Freeman Fang [mailto:freeman.f...@gmail.com] Sent: Thursday

Re: How to config jmx ACL for javax.management.MBeanServer

2014-06-26 Thread Freeman Fang
Hi, How you run this code? This error generally means you don't have correct credential in the SecurityContext. Did you login in as Admin role? That's said, don't use the local process way to access the MBeanServer, or for the upcoming Karaf 3.0.2 you can edit etc/jmx.acl.whitelist.cfg to

Re: Creating instances on dedicated IP addresses rather than varying the ports

2014-05-19 Thread Freeman Fang
yep, something wrong on the Karaf 3.x, but it works with Karaf 2.x, I'm on it - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-5-16, at 下午5:39, Jim Talbut wrote: Continuing this: http://mail-archives.apache.org/mod_mbox/karaf-user/201402.mbox/browser

Re: Creating instances on dedicated IP addresses rather than varying the ports

2014-05-19 Thread Freeman Fang
Hi, Fixed by KARAF-2989. - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-5-20, at 上午11:00, Freeman Fang wrote: yep, something wrong on the Karaf 3.x, but it works with Karaf 2.x, I'm on it - Freeman(Yue) Fang Red Hat, Inc

Re: Not seeing services being exported via blueprint

2014-05-18 Thread Freeman Fang
Hi, What's the output of la command? What's your bundle status? - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-5-16, at 上午12:55, constv wrote: I have a bundle that should export references to shared services (in Karaf 3.0.1) This used to work fine

Re: start levels for datasource files in deploy dir

2014-05-18 Thread Freeman Fang
Hi, You just need use OSGi service pattern(normally osgi:service schema) for the JNDI name lookup in your spring context xml, please take a look at [1] to get more details. [1]http://karaf.apache.org/manual/latest/users-guide/jndi.html - Freeman(Yue) Fang Red Hat, Inc. FuseSource

Re: karaf using 100% cpu

2014-05-15 Thread Freeman Fang
Hi, I remember that some old jetty version have bugs can cause 100% CPU usage when use SSL, are you use jetty with SSL(through Camel/CXF/Pax-WEB,whatnot)? What's the jetty version in your container? - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On

Re: Waiting for dependent bundle

2014-03-27 Thread Freeman Fang
Hi, Could you please elaborate how you define the dependency between REST Service and ServiceImpl bundles? Using OSGi service? Using blueprint to refer the OSGi service? - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-3-26, at 下午8:07, Arun Manivannan

Re: bundle:refresh

2014-03-27 Thread Freeman Fang
Hi, If a bundle(Let's say bundleA) isn't self-contained, which means other bundles depend on this bundle, then install bundleA won't take effect immediately, you do need refresh bundleA, this will cause all bundles depending on bundleA refresh(re-resolved) also, so that your changes in bundleA

Re: refresh causes ClassCastException in 3.0.0

2014-03-27 Thread Freeman Fang
Hi, The solution here could be 1. simply eliminate multiple versions for com.nextgate.ms.component.adapter.listener.mm.impl.MMNotifyConfigurationImpl from your container or 2. correctly use use directive in OSGi headers so that the dependency chain could be resolved without any ambiguity

Re: Not able to reinstall custom feature in karaf 3.0.0

2014-03-20 Thread Freeman Fang
Hi, This is caused by you have multiple version of com.fasterxml.jackson.core.jackson-databind in your container, but some bundle's OSGi metadata header isn't so accurate, generally not use correct use directive which can cause this two dependency chains when refresh bundles(features:install

Re: Feature validation did not use jre properties?

2014-03-20 Thread Freeman Fang
Hi, Is there any bundle in your feature Import-Package javax.xml.bind* not compatible with the one exported by config.properties? What's it like? You may need change your bundle OSGi header accordingly. As the features-maven-plugin:validation is to validate the feature can deploy into Karaf

Re: using version=0 in Import-Package

2014-03-19 Thread Freeman Fang
Hi, Per the OSGi spec, the version=0 here means version=[0, infinite), actually it's default version range so you needn't explicitly have it. About the JDBC driver classname issue, I believe you run into a problem explained here[1], please take a look

Re: Feature validation did not use jre properties?

2014-03-12 Thread Freeman Fang
Hi, Yeah, please create a jira, the config.properties in features-maven-plugin is out-of-data - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-3-12, at 下午5:59, SvS wrote: Hi, Thank all for the reactions! Indeed, but my assumption was that the

Re: Feature validation did not use jre properties?

2014-03-11 Thread Freeman Fang
Hi, For the validation mojo, you can specify a karafConfig configuration for the plugin, where you can include the jre.properties see the related code /** * Karaf config.properties * * @parameter default-value=config.properties */ private String karafConfig;

Re: How do I configure the features-maven-plugin version 2.3.2 to include dependent features?

2014-03-06 Thread Freeman Fang
karafVersion2.3.4/karafVersion /configuration /execution /executions /plugin Paul Spencer On Mar 4, 2014, at 10:33 PM, Freeman Fang freeman.f...@gmail.com wrote: Hi, By default it will have all dependent features included

Re: How do I configure the features-maven-plugin version 2.3.2 to include dependent features?

2014-03-04 Thread Freeman Fang
Hi, By default it will have all dependent features included, what's the exact problem you encounter? If your features.xml have multiple cxf version, you may encounter a issue[1] get fixed very recently [1]https://issues.apache.org/jira/browse/KARAF-2791 - Freeman(Yue) Fang Red Hat,

Re: Problem installing cxf WebService

2014-02-12 Thread Freeman Fang
Hi, Could you please edit $KARAF_HOME/etc/jre.properties change javax.jws, \ javax.jws.soap, \ to javax.jws;version=2.0, \ javax.jws.soap;version=2.0, \ and cleanly restart karaf? - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-2-12, at 下午5:41,

Re: Problem installing cxf WebService

2014-02-12 Thread Freeman Fang
projects - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-2-12, at 下午6:58, Freeman Fang wrote: Hi, Could you please edit $KARAF_HOME/etc/jre.properties change javax.jws, \ javax.jws.soap, \ to javax.jws;version=2.0, \ javax.jws.soap;version=2.0

Re: How to connect Jetty JMX MBeans when running in Karaf?

2014-01-20 Thread Freeman Fang
Hi, The jetty.xml configuration to enable jetty MBean should be like !-- === -- New id=MBeanContainer class=org.eclipse.jetty.jmx.MBeanContainer Arg Ref id=MBeanServer / /Arg /New !-- Add to the Server to listen for object events -- Get

Re: karaf 2.3.3 java.io.IOException: Pipe closed

2014-01-08 Thread Freeman Fang
Hi, Servicemix wrap quartz as OSGi bundle, how about you use the one from servicemix[1]. something like install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.quartz/1.8.6_1 - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-1-8, at

Re: karaf 3.0 : hibernate 4 feature

2014-01-03 Thread Freeman Fang
Though it's a very useful feature, I'm not sure if we can add it in Karaf, as Hibernate is under LGPL license, can we? - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-1-3, at 下午6:19, Jean-Baptiste Onofré wrote: +1 I'm adding it (I create the

Re: karaf 3.0 : hibernate 4 feature

2014-01-03 Thread Freeman Fang
feature. Regards JB On 01/03/2014 11:46 AM, Freeman Fang wrote: Though it's a very useful feature, I'm not sure if we can add it in Karaf, as Hibernate is under LGPL license, can we? - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat On 2014-1-3, at 下午

Re: fail to install openejb-core on Karaf v3.0

2014-01-01 Thread Freeman Fang
Hi, Karaf export javax.xml.namespace package from system bundle with no version. And I'd say org.apache.geronimo.specs.geronimo-jaxb_2.2_spec bundle import javax.xml.namespace with version 1.0 is kind of bug, should be addressed from geronimo side, there's already a similar jira ticket on

Re: fail to install openejb-core on Karaf v3.0

2014-01-01 Thread Freeman Fang
On 02.01.2014 06:41, Freeman Fang wrote: Hi, Karaf export javax.xml.namespace package from system bundle with no version. And I'd say org.apache.geronimo.specs.geronimo-jaxb_2.2_spec bundle import javax.xml.namespace with version 1.0 is kind of bug, should be addressed from geronimo side

Re: Is there a way to automatically fire a Karaf shell script before shutting down Karaf?

2013-10-31 Thread Freeman Fang
Hi, You can install a bundle where add a shutdown hook and do whatever you want, code like Thread hook = new Thread() { @Override public void run() { //do what you want } }; Runtime.getRuntime().addShutdownHook(hook);

Re: Installing and Starting up bundle at startup

2013-10-16 Thread Freeman Fang
Hi, You can define a customer feature which refer your LDAP blueprint configuration file and then add this feature in etc/org.apache.karaf.features.cfg featuresBoot property, your customer feature would be like feature name=my-ldap-feature version=1.0.0 resolver=(obr) start-level='50'

Re: Blueprint XML Never Starts

2013-10-10 Thread Freeman Fang
http://blog.sina.com.cn/u/1473905042 weibo: @Freeman小屋 On 2013-10-11, at 下午12:02, Kevin Carr wrote: Here is the file that is being used. Usernames and passwords changed to protect the innocent. On Thu, Oct 10, 2013 at 10:53 PM, Freeman Fang freeman.f...@gmail.com wrote: Hi, Could

Re: custom properties file in karaf

2013-10-09 Thread Freeman Fang
Hi, Yes, use OSGi standard ConfigAdmin service you can do it. That said, you can configure your application bundle with property-placeholder and define necessary properties there, then you can have a persistent-id.cfg file in $KARAF_HOME/etc to specify the properties. -

Re: How can I enable reference URL handler?

2013-09-22 Thread Freeman Fang
the Karaf - User mailing list archive at Nabble.com. - Freeman Fang FuseSource Email:[hidden email][hidden email] Web: fusesource.com Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u

Re: Karaf 2.3.2: ClassNotFoundException for javax.* packages

2013-08-18 Thread Freeman Fang
FYI, we already have a jira[1] to track this issue [1]https://issues.apache.org/jira/browse/KARAF-2446 - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com

Re: Karaf 2.3.2: ClassNotFoundException for javax.* packages

2013-08-14 Thread Freeman Fang
Hi, I think the problem comes from that we endorse xercesImpl jar but not configure the org.osgi.framework.bootdelegation and org.osgi.framework.system.packages.extra correctly. We should endorse xercesImpl and add xerces related packages in org.osgi.framework.bootdelegation and

Re: Migrate from felix to apache karaf

2013-08-02 Thread Freeman Fang
Hi, Please elaborate your dynamic here. Anyway, business logic depend on bundle start sequence isn't good practice in OSGi container, you may need consider a refactor to avoid it. Also, specify start level isn't that reliable if you really need bundle start sequence, export|import OSGi service

Re: creating features for own bundles and making the accessible

2013-07-22 Thread Freeman Fang
Hi, Edit $KARAF_HOME/etc/org.ops4j.pax.url.mvn.cfg, add your local nexus url to org.ops4j.pax.url.mvn.repositories property - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog:

Re: SMX 4.4-Karaf -2.2.4 - JMX List Features

2013-07-01 Thread Freeman Fang
Hi, This should be in Karaf users list. Because there's no listFeatures operation in FeaturesServiceMBean at all. You can use getFeatures instead. TabularData getFeatures() throws Exception; - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat Web:

Re: Having custom features.xml in own bundles - how to?

2013-07-01 Thread Freeman Fang
Hi Claus, Seems you're looking for kar archive, a zip file which contains features descriptor and a bunch of bundles, please take a look at [1] to get more details. [1]http://karaf.apache.org/manual/latest-2.3.x/users-guide/kar.html - Freeman(Yue) Fang Red Hat, Inc. FuseSource is

Re: features-maven-plugin fails to download smooks dependencies

2013-06-12 Thread Freeman Fang
nameAlfresco Public Artifacts/name urlhttps://artifacts.alfresco.com/nexus/content/groups/public//url /repository /repositories On Fri, Jun 7, 2013 at 4:11 AM, Freeman Fang freeman.f...@gmail.com wrote: Hi, I can find one repo here[1], could you add it into your

Re: Need of complete network address isolation.

2013-06-08 Thread Freeman Fang
Hi, Yes, this is a known issue and already get resolved, KARAF-2291[1] tracked it, next Karaf 2.3.2 would pick up this fix. And you can find the commit change from [1] also, where you can build a jar with the fix yourself [1]https://issues.apache.org/jira/browse/KARAF-2291 -

Re: features-maven-plugin fails to download smooks dependencies

2013-06-06 Thread Freeman Fang
Hi, I can find one repo here[1], could you add it into your pom.xml? [1]https://maven.alfresco.com/nexus/content/repositories/com.springsource.repository.bundles.external/org/objectweb/asm/com.springsource.org.objectweb.asm.util/2.2.3/ - Freeman(Yue) Fang Red Hat, Inc. FuseSource

Re: Jetty and multiple jaxrs servers

2013-06-04 Thread Freeman Fang
Hi, Yes, pax-web can provide this flexibility IMO. You can configure pax-web to support SSL, even in another port.[1] And the http basic auth configuration actually is endpoint|bundle specific, not much about the transport level. For example, for cxf endpoint you can configure a

Re: Keep track of features installed in karaf 2.2.9

2013-06-03 Thread Freeman Fang
Hi, Does features:list work for you? - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: @Freeman小屋

Re: Encoding issue for Redis key using xml blueprint

2013-05-29 Thread Freeman Fang
, org.springframework.data.redis.serializer Best regards, Djee On 29 May 2013 03:14, Freeman Fang freeman.f...@gmail.com wrote: Hi, This could be caused by your customer bundle miss some package or your customer bundle embed spring jars. Please post the result of osgi:headers your_bundle_id - Freeman(Yue

Re: how to control auto refresh when deploy a kar

2013-05-21 Thread Freeman Fang
Hi, No, currently the car service/deployer won't support this configurable option. However I see this requirement is a good improvement, create KARAF-2320[1] to track it. [1]https://issues.apache.org/jira/browse/KARAF-2320 - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part

Re: use spring-data-mongodb in servicemix4.5.1

2013-05-17 Thread Freeman Fang
Hi, First of all, as I told you before, servicemix issue should go into servicemix mailing list, though this question looks more like a maven question Also you need elaborate your problem a little bit, likely how you see the error Missing artifact

Re: use apache-servicemix-5.0.0-SNAPSHOT in activemq

2013-05-15 Thread Freeman Fang
Indeed, this is a Servicemix related question to send to Servicemix Users mailing list. By default Servicemix 5.0 will start a secure Activemq broker which delegate to use Karaf JAAS realm, so you need provide username/password to connect to the broker. The default username/password is

  1   2   >