Re: log not generated in a active OSGI bundle in Karaf 4.2.0

2018-06-14 Thread XiLai Dai
Hi, Looks like your bundle is in Active but the spring configuration is not loaded, you have to install the spring/camel-spring feature using feature:install command, before you install/deploy your bundle. One problem I noticed is, the Karaff 4.2.0 includes the spring 5.x by default, but

Re: Karaf distributions and system repository

2018-02-26 Thread XiLai Dai
I think it's the normal behavior as by default karaf adds the system folder as a repo (see the org.ops4j.pax.url.mvn.defaultRepositories property in the etc/org.ops4j.pax.url.mvn.cfg), so the search order is system folder -> local maven repo -> remote maven repo. We also build karaf

Wrong bundle.id, bundle.name are logged using pax-logging-log4j2 in case of the log from embeded jar of the bundle

2017-10-30 Thread XiLai Dai
Hi, With karaf 4.1.x, the pax-logging impl is changed to pax-logging-log4j2, but after that, we have wrong bundle.id, bundle.name in the logs in case of the log is come from the embeded jar of the bundle. We have a CommonLoggingBean inside the common jar. {code} package beans; import

Spring and blueprint co-existing in the same bundle

2017-10-16 Thread XiLai Dai
Hi, there, After karaf 4.1.2, the spring-dm has been removed. but we had lots of spring xml configuration which highly depends on org.springframework.* classes, they are not easy to be transfered to "blueprint" based configuration. on the other hand, the osgix:... (OSGi service/reference

How to replace the Spring jmx bean with Blueprint

2017-09-11 Thread XiLai Dai
Hi there, Does anyone has experience/suggestions on how to replace the Spring jmx bean with Blueprint? {code} * * * connector:name=rmi * * * service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jmxrmi *

Re: UnsupportedCharsetException: cp65001 and unprintable characters from karaf 4.1.2 console

2017-08-29 Thread XiLai Dai
ct: Re: UnsupportedCharsetException: cp65001 and unprintable characters from karaf 4.1.2 console Hi Xilai, thanks for the report. Let me try to reproduce on a VM. Regards JB On 08/29/2017 08:46 AM, XiLai Dai wrote: > Hi there, > > > In case of Windows OS and the cp6500

UnsupportedCharsetException: cp65001 and unprintable characters from karaf 4.1.2 console

2017-08-29 Thread XiLai Dai
Hi there, In case of Windows OS and the cp65001 CodePage setting, there is UnsupportedCharsetException: cp65001 happening and the console display really not good many of the unprintable characters showing ... 2017-08-29 11:34:41,204 CM Configuration Updater (Update:

CM property in OSGi service reference filter attribute doesn't works

2017-07-17 Thread XiLai Dai
Hi, there The cm property in OSGi service reference filter attribute doesn't works, e.g. we have: in the blueprint xml, but the ${db.datasource} can't be resolved as the actual value provided by cm:property-placeholder. Could someone karaf/aries expert give light if there is any

Re: Release 4.1.1 binary

2017-04-01 Thread XiLai Dai
Hi, Oleg, You could download the karaf 4.1.1 in the Maven centre http://search.maven.org/remotecontent?filepath=org/apache/karaf/apache-karaf/4.1.1/apache-karaf-4.1.1.tar.gz, until the offical release is available on karaf website. Regards. Xilai From: Oleg

Re: Release 4.1.1 binary

2017-04-01 Thread XiLai Dai
Hi, Oleg, You could download the karaf 4.1.1 in the Maven centre http://search.maven.org/remotecontent?filepath=org/apache/karaf/apache-karaf/4.1.1/apache-karaf-4.1.1.tar.gz, until the offical release is available on karaf website. Regards. Xilai From:

Re: The source command behaviour in karaf 4.1.0

2017-03-08 Thread XiLai Dai
Xilai, It's indeed a change to allow to support any kind of URI/URL. However, we can re-introduce relative path support by checking prefix. Can you create a Jira about that ? Thanks, Regards JB On 03/09/2017 06:36 AM, XiLai Dai wrote: > Hi, there > > > With karaf 4.0.x or even

The source command behaviour in karaf 4.1.0

2017-03-08 Thread XiLai Dai
Hi, there With karaf 4.0.x or even previous versions, karaf@root()>source myscripts/abc.source it works well. but in case of karaf 4.1.0, it doesn't work anymore karaf@trun()> source scripts/abc.source Error executing command: URI is not absolute there are workarounds: 1) source

Re: Fail to execute macro-command e.g. la by client with karaf 4.1.0

2017-02-27 Thread XiLai Dai
s. Regards. Xilai ________ From: XiLai Dai <xl...@talend.com> Sent: Monday, February 27, 2017 4:55:31 PM To: user@karaf.apache.org Subject: Re: Fail to execute macro-command e.g. la by client with karaf 4.1.0 JB, yes, exactly, it's only about aliases commands defined in

Re: Fail to execute macro-command e.g. la by client with karaf 4.1.0

2017-02-27 Thread XiLai Dai
.g. la by client with karaf 4.1.0 Hi Xilai, I guess that client.bat "bundle:list" works ? I suspect something about the aliases. Regards JB On 02/27/2017 08:50 AM, XiLai Dai wrote: > Hi, > > > On karaf 4.1.0, the macro-commands defined in the etc/shell.init.script > failed to

Fail to execute macro-command e.g. la by client with karaf 4.1.0

2017-02-26 Thread XiLai Dai
Hi, On karaf 4.1.0, the macro-commands defined in the etc/shell.init.script failed to execute from client/client.bat. For example even with the "la" command: G:\download\apache-karaf-4.1.0\bin>client.bat -h localhost -u karaf "la" Logging in as karaf Password: Command not found: la

Re: The client.bat doesn't show as expected in karaf 4.1.0 on Windows

2017-02-23 Thread XiLai Dai
Seems I found the problem in the client/client.bat, missing the jansi on the CLASSPATH, after adding: set CLASSPATH=%CLASSPATH%;%KARAF_HOME%\system\org\fusesource\jansi\jansi\1.14\jansi-1.14.jar then it works well as before. From: XiLai Dai <xl...@talend.

Re: The client.bat doesn't show as expected in karaf 4.1.0 on Windows

2017-02-23 Thread XiLai Dai
Thanks JB, Chris, With putty, the branding/prompt works well, but the seperator looks like: {code} START LEVEL 100 , List Threshold: 50 ID ▒▒ State▒▒ Lvl ▒▒ Version ▒▒ Name ▒੤▒▒▒੤▒੤

The client.bat doesn't show as expected in karaf 4.1.0 on Windows

2017-02-23 Thread XiLai Dai
Hi, there The client.bat is not working as expected in karaf 4.1.0 on Windows, especially the branding and prompt {code} G:\download\apache-karaf-4.1.0\bin>client.bat -h localhost Logging in as karaf __ __   / //_/ __ _/ __/

Re: Error starting bundle Pax Logging Logback in karaf

2015-10-13 Thread XiLai Dai
Have you put the pax-logging-logback-1.8.3.jar into system/org/ops4j/pax/logging/pax-logging-logback/1.8.3/ manually? I did it and then start karaf and see Logback bundle is Active: 4 | Active | 8 | 1.8.3 | OPS4J Pax Logging - Logback Service Regards. Xilai

RE: ClassCastException, cannot be cast to org.apache.felix.gogo.commands.Action

2015-04-15 Thread XiLai Dai
? regards JB On 04/14/2015 11:44 AM, XiLai Dai wrote: Hi, The custom console commands we developed on karaf 2.x don't work anymore on the karaf 4.0 The code used on 2.x: import org.apache.felix.gogo.commands.Command; import org.apache.karaf.features.command.FeaturesCommandSupport

ClassCastException, cannot be cast to org.apache.felix.gogo.commands.Action

2015-04-14 Thread XiLai Dai
(ConsoleSessionImpl.java:262)[50:org.apache.karaf.shell.core:4.0.0.SNAPSHOT] at java.lang.Thread.run(Thread.java:744)[:1.7.0_51] any idea/suggestion about this? Thanks. Xilai Dai

RE: Problem connecting to Karaf/ServiceMix after upgrade from 2.3.x to 2.4.x

2015-02-02 Thread XiLai Dai
(karaf.etc), org.apache.karaf.shell.cfg)); String host = shellCfg.getProperty(sshHost, localhost); int port = Integer.parseInt(shellCfg.getProperty(sshPort, 8101)); it looks like a bug from regression, maybe it’s better to create a jira. Regards. Xilai Dai From: Michael Täschner

RE: How to transfer Karaf installation and setup to offline server?

2014-08-14 Thread XiLai Dai
org.ops4j.pax.url.mvn.localRepository=file:${karaf.home}/${karaf.default.repository}@id=system.repository (with this configure, karaf will look up the system/ at first, and then local maven repo (.m2), then remote maven centre) Regards. Xilai Dai -Original Message- From: petertirrell [mailto:ptirr

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

2014-06-27 Thread XiLai Dai
. Regards. Xilai Dai From: Freeman Fang [mailto:freeman.f...@gmail.com] Sent: Thursday, June 26, 2014 5:33 PM To: user@karaf.apache.org Subject: Re: How to config jmx ACL for javax.management.MBeanServer Hi, How you run this code? This error generally means you don't have correct credential

How to config jmx ACL for javax.management.MBeanServer

2014-06-25 Thread XiLai Dai
$MBeanInvocationHandler.invoke(KarafMBeanServerBuilde r.java:63) Any ideas? Regards. Xilai Dai

RE: Help with property-placeholder and blueprint.

2014-06-05 Thread XiLai Dai
Hi, Maybe you should use meaningful word to define the prefix, e.g ${proxy and ${local. And also there was a typo as I can find in your blueprint xml: property name=httpPort value=${http.port) / Regards. From: Javier Delgadillo [mailto:jdelgadi...@esri.com] Sent: Friday, June 06, 2014

re: services published and unpublished in karaf 3.0.0

2014-04-04 Thread XiLai Dai
Hi, Have you tried to add cm:default-properties into cm:property-placeholder ? for example, cm:property-placeholder persistent-id=org.opennaas update-strategy=reload cm:default-properties cm:property name=abc value=../ cm:property name=efg value=.../

RE: creating features for own bundles and making the accessible

2013-07-23 Thread XiLai Dai
Maybe adding repository of your nexus into the repositories of the pom.xml. for example: repository idnexus repo/id urlhttps://localhost:8080:/./url nameNexus Repo/name snapshots enabledtrue/enabled

RE: Macro commands which defined in the etc/shell.init.script executed fail from ssh client of 2.2.9

2013-07-03 Thread XiLai Dai
branch, but not on 2.2.x. Do you want this fix on 2.2.x as well ? Regards JB On 07/03/2013 03:44 AM, XiLai Dai wrote: Hi, Don't know if it's a known issue, the macro commands which defined in the etc/shell.init.script executed fail from ssh client of 2.2.9. D:\downloads\apache-karaf-2.2.9

RE: Macro commands which defined in the etc/shell.init.script executed fail from ssh client of 2.2.9

2013-07-03 Thread XiLai Dai
JB On 07/03/2013 09:13 AM, XiLai Dai wrote: Thanks! JB, Seems the latest release version for 2.2.x branch is 2.2.11. so if you backport this fix to 2.2.x branch, then, we need to upgrade karaf to 2.2.12-snapshot, is right? And when the 2.2.12 is supposed to be released? Thanks! Xilai

Macro commands which defined in the etc/shell.init.script executed fail from ssh client of 2.2.9

2013-07-02 Thread XiLai Dai
Hi, Don't know if it's a known issue, the macro commands which defined in the etc/shell.init.script executed fail from ssh client of 2.2.9. D:\downloads\apache-karaf-2.2.9\binclient.bat -a 8101 -h localhost -u karaf -p karaf osgi:list START LEVEL 100 , List Threshold: 50 ID State

RE: kar files and external dependencies

2013-05-22 Thread XiLai Dai
Maybe using groupIdorg.apache.karaf.tooling/groupId artifactIdfeatures-maven-plugin/artifactId And groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId Plugins in the pom of your project to create the

how to control auto refresh when deploy a kar

2013-05-20 Thread XiLai Dai
Hi, May I have a quick question about auto refresh in case deploy a kar file into deploy folder? There is an option (-r --no-auto-refresh) on features:install command used to control whether auto refresh bundles. Is there also a way to control this behavior with kar file deployment? Thanks!

RE: NoSuchComponentException when set update-strategy=reload on cm:property-placeholder

2013-01-21 Thread XiLai Dai
://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: @Freeman小屋 On 2013-1-21, at 下午3:04, XiLai Dai wrote: Hi, Given a blueprint xml likes this: blueprint xmlns=http://www.osgi.org/xmlns/blueprint/v1.0.0; xmlns:cm=http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0; cm:property

NoSuchComponentException when set update-strategy=reload on cm:property-placeholder

2013-01-20 Thread XiLai Dai
Hi, Given a blueprint xml likes this: blueprint xmlns=http://www.osgi.org/xmlns/blueprint/v1.0.0; xmlns:cm=http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0; cm:property-placeholder persistent-id=abc update-strategy=reload cm:default-properties

RE: same feature name exists in multi feature repo url

2012-10-24 Thread XiLai Dai
Environment the University of Virginia Library On Oct 23, 2012, at 11:03 PM, XiLai Dai wrote: Hi, My question is not about the version of feature, there is only one feature of version 1.0 (name='myfeature' version='1.0') defined in both two different features xml which I provided

when karaf.home in the cm property of blueprint configuration

2012-07-30 Thread XiLai Dai
Hi, In the blueprint xml of the bundle we have cm:property-placeholder and bean configuration like this: cm:property-placeholder persistent-id=x.y.z update-strategy=reload cm:default-properties cm:property name=myapp.home value=${karaf.home}/myapp /

about Packages Exported by Multiple Bundles

2012-04-05 Thread XiLai Dai
Hello, Got a problem about Packages Exported by Multiple Bundles. There are 2 bundles exported org.apache.derby.jdbc package. karaf@truninstall -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.derbynet/10.8.1.2_1 karaf@truninstall -s mvn:org.apache.derby/derbyclient/10.8.1.2

RE: about Packages Exported by Multiple Bundles

2012-04-05 Thread XiLai Dai
Packages Exported by Multiple Bundles Hi, You really shouldn't install multiple bundles with same package and same version, otherwise you'll encounter the well-known split-package issue in OSGi container. Freeman On 2012-4-5, at 下午4:39, XiLai Dai wrote: Hello, Got a problem about Packages Exported

Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/osgi]

2012-03-29 Thread XiLai Dai
Hi, There is a osgi:reference definition in the spring configuration file of the application. But got an exception when this Bean got initiate: Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Un able to locate Spring NamespaceHandler

RE: About karaf upgrade

2012-02-21 Thread XiLai Dai
would win by this approach. Maybe you can describe how you're using Karaf (and what you modify in the distribution for your setup) a little bin in more detail? Kind regards, Andreas On 02/16/2012 08:39 AM, XiLai Dai wrote: Hello, Just a question from user/production point of view, what

About karaf upgrade

2012-02-15 Thread XiLai Dai
Hello, Just a question from user/production point of view, what is a better way to get karaf container upgrade to a new version with all of the features/bundles/config files existing in the old version karaf container? E.g. from karaf 2.2.2 - karaf 2.2.5. it's really boring to redeploy these

RE: How to blacklist specific feature with cellar

2012-02-13 Thread XiLai Dai
be done before the features install (else, it's assigned to the local node cluster group). Anyway, your configuration is correct. Regards JB On 02/14/2012 04:58 AM, XiLai Dai wrote: Hi, Just want to make some specific feature (eg. http) disabled sync between the nodes. For example, start two

About cluster:node-ping command in Cellar

2012-02-09 Thread XiLai Dai
Hi, When I try to run cluster:node-ping command with Karaf + Cellar cluster env, it always give a reply with about 10 seconds delay time if the target node is on the other machine. karaf@trun cluster:node-ping 192.168.2.104:5701 Pinging node 192.168.2.104:5701 PING 1 192.168.2.104:5701

RE: About cluster:node-ping command in Cellar

2012-02-09 Thread XiLai Dai
of discover used (static, unicast/multicast) ? If you do a system ping, what kind of latency do you have ? I tried on my VM without problem. Regards JB On 02/09/2012 10:52 AM, XiLai Dai wrote: Hi, When I try to run cluster:node-ping command with Karaf + Cellar cluster env, it always give a reply

RE: How to set up the remote debug with karaf in eclipse indigo

2011-12-15 Thread XiLai Dai
: Re: How to set up the remote debug with karaf in eclipse indigo Hi, How you enable karaf debug? Did you export KARAF_DEBUG=true in the shell before you launch Karaf? Freeman On 2011-12-15, at 下午4:20, XiLai Dai wrote: Hello, Does anybody has the experience which setting up the debug environment

RE: How to set up the remote debug with karaf in eclipse indigo

2011-12-15 Thread XiLai Dai
4:44, XiLai Dai wrote: Hi, Freeman, Run with bin\karaf.bat debug, and got: TCP0.0.0.0:5005 0.0.0.0:0 LISTENING 3288 When execute netstat –ano Thanks. Xilai From: Freeman Fang [mailto:freeman.f...@gmail.com] Sent: Thursday, December 15, 2011 4:34 PM To: user

RE: How to set up the remote debug with karaf in eclipse indigo

2011-12-15 Thread XiLai Dai
set. Freeman On 2011-12-15, at 下午4:44, XiLai Dai wrote: Hi, Freeman, Run with bin\karaf.bat debug, and got: TCP0.0.0.0:5005 0.0.0.0:0 LISTENING 3288 When execute netstat –ano Thanks. Xilai From: Freeman Fang [mailto:freeman.f...@gmail.com] Sent: Thursday

RE: How to set up the remote debug with karaf in eclipse indigo

2011-12-15 Thread XiLai Dai
Finally, the error gone after I replaced the eik-0.5.2 with eik-0.5.3 manually. Seems the eik plugin which installed from update site is not up-to-date. Thanks Freeman, Lukasz! Xilai From: XiLai Dai [mailto:xl...@talend.com] Sent: Thursday, December 15, 2011 5:32 PM To: user@karaf.apache.org