Re: Karaf Tutorial Part 4 - CXF Services in OSGi

2014-06-26 Thread parker
Hi , Thank you for the answer. I have add the project personservice-message for provider and the project personservice-bundlelogv11 for consumer like in the screen shot . http://karaf.922171.n3.nabble.com/file/n4033806/scshot20140626.png if I do mvn clean install without the project

Re: NoClassDefFoundError: org/apache/log4j/Layout

2014-06-26 Thread Achim Nierbeck
Well, Pax Logging does provide a couple of different APIs for logging: log4j, slf4j commons-logging, etc.. So actually it's a service that hides a lot of details from you. As it is using log4j as the underlying logging infrastructure you most likely are tempted to use a lot of it, though those

Re: Karaf Tutorial Part 4 - CXF Services in OSGi

2014-06-26 Thread parker
I think the problem come from here : inside the consumer I can't import the provider project. package com.bw.osgi.consumer; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; *import

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: Karaf Tutorial Part 4 - CXF Services in OSGi

2014-06-26 Thread Jean-Baptiste Onofré
You should create a common project containing just the service interface. Anyway, producer doesn't depend to consumer (it's the opposite). Regards JB On 06/26/2014 11:22 AM, parker wrote: I think the problem come from here : inside the consumer I can't import the provider project. package

Re: Karaf Tutorial Part 4 - CXF Services in OSGi

2014-06-26 Thread Christian Schneider
Unfortunately I have not got the initial mail so I respond to the one from JB. If you simply want to work wirh OSGi services take a look at the first tutorial: http://www.liquid-reality.de/display/liquid/2011/02/15/Karaf+Tutorial+Part+1+-+Installation+and+First+application

Re: NoClassDefFoundError: org/apache/log4j/Layout

2014-06-26 Thread loky
Thanks Achim ! I am a bit lost in all thanks... Karaf use pax-loggin-api which declare org.apache.log4j.Logger which is more an fork/implementation /rewriting is it write ? I have the feeling that I should investigate more with pax-loggin-api . I have removed my log4 dependancy and replace it

Re: Karaf Tutorial Part 4 - CXF Services in OSGi

2014-06-26 Thread parker
I don't understand how can I make a common project containing just the service interface. For me this is a good answer, what more ? Thank you for your answer that is my provider : ProviderActivator.java ** package com.bw.osgi.provider; import

feature load sequence

2014-06-26 Thread Laci Gaspar
Hi A question about the load sequence of karaf 2.3.3: 1. I have a feature.xml: configfile finalname=etc/MspEtgCommon.cfg override=truemvn:${project.groupId}/MspEtgCommon/${project.version}/cfg/development/configfile bundlemvn:ch.curabill.msp.etg/MspEtgCommon/${project.version}/bundle

Re: feature load sequence

2014-06-26 Thread Achim Nierbeck
No, and it actually shouldn't matter since the service in your bundle will be re-configured the minute a new configuration is present. regards, Achim 2014-06-26 13:54 GMT+02:00 Laci Gaspar laci...@gmail.com: Hi A question about the load sequence of karaf 2.3.3: 1. I have a feature.xml:

Re: NoClassDefFoundError: org/apache/log4j/Layout

2014-06-26 Thread Achim Nierbeck
Yep, that's the only constraint, practically for standard logging you usually shouldn't care much. For example if you take only the slf4j API as your logging api, you don't really care if it is log4j or logback that does the actuall logging for you. So basically Pax Logging tries to do the same

Re: feature load sequence

2014-06-26 Thread Laci Gaspar
ok, thanks. I seem to have a different issue, which I didn't notice, sorry. We want to have two configfiles for our bundle (a common and specific one). So in the features.xml we have: configfile finalname=etc/${project.artifactId}.cfg

Re: feature load sequence

2014-06-26 Thread Achim Nierbeck
No, one service, one cfg file. You need to make sure you have a different service for it or use a ManagedService Factory for it. In that case you'll have a new service instance connected to another cfg file. For example: org.whatever.package-one.cfg org.whatever.package-two.cfg will result in

Re: Karaf Tutorial Part 4 - CXF Services in OSGi

2014-06-26 Thread parker
Hi, Thank you for your answer, I understand than the problem come from maven , I have never used maven and I would like to know how I can answer to the challenge, the challenge is to use a project inside an other project. I am really new with OSGi and new with maven. Then to do it , step by

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-06-26 Thread asookazian2
I installed successfully: feature:install cellar-webconsole admin@NextGate () list START LEVEL 33 , List Threshold: 50 ID | State| Lvl | Version | Name - 376 | Resolved | 80 | 3.0.0 |

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-06-26 Thread asookazian2
Now I have two Win7 VMs. I was able to feature:install two feature sets on node A but the bundle:list on node A B were different. One had more bundles installed after the feature:install runs. There are no helpful exceptions in the karaf log related to cellar/hazelcast. Any idea why this

Super-Newbie - How to add a plugin to a Hello World app

2014-06-26 Thread Bob Futrelle
Say, I write a tiny Hello World app - a few lines. What might be a simple example of a plugin that I could add to it? Though this is a super-simple question, I can't find any discussion that describes how I might go about doing this. I figure that any technology should be capable of describing

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-06-26 Thread Jean-Baptiste Onofré
Hi, which features are you installing ? Could you send to me the log files ? Regarding the commands, cluster:feature-install is the same as feature:install but it allows you to specify the cluster group (cluster:group-list). The feature:install will deploy to all local cluster groups (where

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-06-26 Thread Jean-Baptiste Onofré
Cellar sync ConfigAdmin. If a new node join, it will sync the resources (it's the purpose of the Synchronizers), as long as it's not blacklisted (as describe in the etc/org.apache.karaf.cellar.groups.cfg). Did you read the Cellar user guide because it's explained there. Regards JB On