Custom Karaf with Apache Camel

2014-01-14 Thread niels
Hey, I'm trying to create a custom distribution of Karaf with Apache Camel. I tried building a distribution with several different version of Apache Camel without any luck. I first tried the version used by ServiceMix: Camel - 2.10.7 without any luck. Maven was complaining: [WARNING] could

Re: Custom Karaf with Apache Camel

2014-01-14 Thread Jean-Baptiste Onofré
Hi Niels, I gonna take a look but it sounds like missing artifacts. We got an issue on Central with some artifacts in ActiveMQ. Let me check if it's not something similar. Regards JB On 01/14/2014 10:06 AM, niels wrote: Hey, I'm trying to create a custom distribution of Karaf with Apache

OSGi Compendium APIs

2014-01-14 Thread agrz
Hi, I want to deploy some services implementing APIs from OSGi Compendium (Preferences and UserAdmin) and followed the instructions in this post: http://karaf.922171.n3.nabble.com/Newbie-question-Useradmin-service-dependency-from-where-td4026903.html I added the package org.osgi.service.useradmin

Re: JPA with Karaf

2014-01-14 Thread Jean-Baptiste Onofré
Hi Nicolas, could you try with OpenJPA 2.2.2 ? AFAIR it seems OpenJPA 2.3.0 has an issue. Regards JB On 01/14/2014 10:33 AM, Dutertry Nicolas wrote: Hi, I am trying to use JPA with Karaf 3.0.0 but it does not work. First of all I have installed the following features : karaf@root()

Re: OSGi Compendium APIs

2014-01-14 Thread Jean-Baptiste Onofré
Hi Alex, is your bundle import the packages correctly ? Regards JB On 01/14/2014 11:34 AM, agrz wrote: Hi, I want to deploy some services implementing APIs from OSGi Compendium (Preferences and UserAdmin) and followed the instructions in this post:

Re: OSGi Compendium APIs

2014-01-14 Thread agrz
Hi JB yes the import is correct. The bundle is resolved and gets an error during runtime. In fact trying with felix UserAdmin implementation is the same behavior. Trying to deploy version 1.0.3 of Felix UserAdmin I get the following error: org.osgi.framework.BundleException: Activator start

Re: JPA with Karaf

2014-01-14 Thread Achim Nierbeck
Yes I'm able to confirm, the openjpa 2.3.0 feature does have an issue. If you take a look at how the openjpa requirements for 2.2.0 are defined in camel you'll find a working sample :) regards, Achim 2014/1/14 Jean-Baptiste Onofré j...@nanthrax.net Hi Nicolas, could you try with OpenJPA

Re: JPA with Karaf

2014-01-14 Thread Christoph Gritschenberger
Hi, Try adding providerorg.apache.openjpa.persistence.PersistenceProviderImpl/provider to your persistence-unit. I got a working setup with OpenJPA 2.3.0. kind regards, christoph On 2014-01-14 12:01, Jean-Baptiste Onofré wrote: Hi Nicolas, could you try with OpenJPA 2.2.2 ? AFAIR it seems

Re: JPA with Karaf

2014-01-14 Thread Achim Nierbeck
btw. this is a working feature, I used in a sample with Karaf 3.0 feature name='Karaf-JPA-OpenJPA' version='${project.version}' !-- Container dependencies -- featuretransaction/feature featurejpa/feature featurejndi/feature !-- Dependencies for OpenJPA

Re: Please help to fix karaf cluster issue

2014-01-14 Thread simafengyun1984
Hi JB, regarding the below, I didn't very understand. could you give more detail? Thank you it's where cluster group can help: you can target the deployment of some resources to only some subset of

Re: OSGi Compendium APIs

2014-01-14 Thread David Bosschaert
It sounds like you're manually adding a package to the system bundle exports without actually providing the package classes. Would it not be better to simply install a bundle that exports the package you need? That means that you don't need to manually edit config files etc... While it's

Re: OSGi Compendium APIs

2014-01-14 Thread agrz
Yes, this is what I did to get it running. But I was wondering if there is another way in karaf providing standard osgi apis. This is what I understood reading this post: http://karaf.922171.n3.nabble.com/Newbie-question-Useradmin-service-dependency-from-where-td4026903.html Thanks anyways Alex

RE: JPA with Karaf

2014-01-14 Thread Dutertry Nicolas
Thank you Achim, the feature with openjpa 2.2.2 you gave me works ! I'm wondering why Karaf 3.0.0 provide an openjpa feature if it does not work ? Regards -- Nicolas Dutertry From: Achim Nierbeck [mailto:bcanh...@googlemail.com] Sent: mardi 14 janvier 2014 12:20 To: user@karaf.apache.org

Re: JPA with Karaf

2014-01-14 Thread Achim Nierbeck
Looks like we've been to optimistic for the 2.3. version switch ... :/ sorry about that. regards, Achim 2014/1/14 Dutertry Nicolas nicolas.duter...@hraccess.com Thank you Achim, the feature with openjpa 2.2.2 you gave me works ! I’m wondering why Karaf 3.0.0 provide an openjpa feature if

Re: JPA with Karaf

2014-01-14 Thread Jean-Baptiste Onofré
FYI, Karaf 3.0.1 will provide both OpenJPA 2.2.2 and 2.3.0 features: The issue is in OpenJPA 2.3.0 and has been identified after the Karaf 3.0.0 release. Regards JB On 01/14/2014 02:36 PM, Dutertry Nicolas wrote: Thank you Achim, the feature with openjpa 2.2.2 you gave me works ! I’m

Re: JPA with Karaf

2014-01-14 Thread Jean-Baptiste Onofré
We actually didn't switch as we didn't provide any jpa features previously ;) Regards JB On 01/14/2014 02:39 PM, Achim Nierbeck wrote: Looks like we've been to optimistic for the 2.3. version switch ... :/ sorry about that. regards, Achim 2014/1/14 Dutertry Nicolas

Re: Monitoring config directory

2014-01-14 Thread Mansour Al Akeel
I am trying to monitor more than one directory. Please ignore my question. It's working now. I don't know why, but it is working. If I am able to regenerate the problem again, I will report it. The problem was that it doesn't monitor the second directory. Thank you. On Tue, Jan 14, 2014 at

issue about karaf cellar cluster

2014-01-14 Thread simafengyun1984
Hi JB, I have an issue about karaf cluster. I used karaf 2.3.3 and cellar 2.2.2. I have 2 nodes, node 1 and node 2. I put camel and spring related third-party bundles under the deploy folder of node 1 and put 3 application bundles jar files under the deploy folder of node 2

Re: issue about karaf cellar cluster

2014-01-14 Thread Jean-Baptiste Onofré
Hi, Generally speaking the deploy folder is not synchronized by Cellar. You have to share the artifacts using a repository known on all nodes. If the artifact location can be accessed on one node, Cellar won't be able to install the bundle on this node. I have a Jira to add sync of the

What is the Blueprint syntax to instantiate and initialize object properties when the command is executed?

2014-01-14 Thread Paul Spencer
Karaf 2.3.3 Karaf 2.3.3 What is the Blueprint syntax to instantiate and initialize object properties when the command is executed? The XML below will define the command and contains a reference to the interface of the service the command will use. I would like the syntax to instantiate and

Re: What is the Blueprint syntax to instantiate and initialize object properties when the command is executed?

2014-01-14 Thread Jean-Baptiste Onofré
Hi Paul, it depends of the xmlns version that you use. With shell xmlns 1.0.0, you have to use command name=command/doSomething/ where command corresponds to the scope and doSomething to the name. In Karaf 3.0.0, with namespace 1.1.0, you can use just command/, the scope and name are

Re: What is the Blueprint syntax to instantiate and initialize object properties when the command is executed?

2014-01-14 Thread Jean-Baptiste Onofré
Sorry Paul, I missed part of your question. The action class is like a bean, so you use property set on it. Regards JB On 01/14/2014 05:54 PM, Paul Spencer wrote: Karaf 2.3.3 Karaf 2.3.3 What is the Blueprint syntax to instantiate and initialize object properties when the command is

Re: What is the Blueprint syntax to instantiate and initialize object properties when the command is executed?

2014-01-14 Thread Paul Spencer
JB, Thank you for the help. Below is the resulting Blueprint.xml. Note: The reference is optional so the command will exist even if the service is not running. The command will need to check for null when using the service. command-bundle

Re: Getting a java.lang.SecurityException: Insufficient credentials.” error when executing various commands in Karaf 3.0.0

2014-01-14 Thread Jean-Baptiste Onofré
Hi Paul, take a look in the documentation: http://karaf.apache.org/manual/latest/users-guide/security.html in the console section. You will the explanations about etc/org.apache.karaf.command.acl.scope.cfg files. Regards JB On 01/14/2014 07:14 PM, Paul Spencer wrote: Karaf 3.0.0 running

Re: Getting a java.lang.SecurityException: Insufficient credentials.” error when executing various commands in Karaf 3.0.0

2014-01-14 Thread Paul Spencer
JB, - The use case is successful in 2.3.x, to this sounds like a regression issue. - Per etc/system.properties, the local user has admin and manage roles. karaf@root() jaas:realm-manage --index 1 karaf@root() jaas:user-list User Name | Group | Role karaf

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

2014-01-14 Thread Mansour Al Akeel
Hello Charles, Do you have any estimation for full openejb integration with karaf ?? Thank you. On Thu, Jan 2, 2014 at 10:10 AM, Charles Moulliard ch0...@gmail.com wrote: Even if you install openejb on Karaf, it will not scan your bundles to find classes annotated and inject them

Re: OSGi Compendium APIs

2014-01-14 Thread Ryan Moquin
I had gotten the User Admin service working correctly in Karaf 3.0.0. I can get the code pushed up in my github repo if you like, maybe it will help. It's pretty easy to do. Ryan On Jan 14, 2014 7:17 AM, agrz alexander.grze...@medisite.de wrote: Yes, this is what I did to get it running. But

Re: Getting a java.lang.SecurityException: Insufficient credentials.” error when executing various commands in Karaf 3.0.0

2014-01-14 Thread Jean-Baptiste Onofré
Hi Pauln it's not a regression: command, services, and JMX security don't exist at all in 2.3.x, it's a new feature from 3.0.0. The local roles are define in etc/system.properties: karaf.local.roles = admin,manager,viewer It's the roles used by the local console. When you use remote console

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

2014-01-14 Thread Jean-Baptiste Onofré
Hi Mansour, it's something that we plan for February. Regards JB On 01/14/2014 11:56 PM, Mansour Al Akeel wrote: Hello Charles, Do you have any estimation for full openejb integration with karaf ?? Thank you. On Thu, Jan 2, 2014 at 10:10 AM, Charles Moulliard ch0...@gmail.com wrote:

Re: JPA with Karaf

2014-01-14 Thread Jean-Baptiste Onofré
By the way, reviewing the OpenJPA feature, we found that the problem is in the feature itself. We fix both OpenJPA 2.2.2 and 2.3.0 features for the next Karaf release. Sorry about that. Regards JB On 01/14/2014 10:33 AM, Dutertry Nicolas wrote: Hi, I am trying to use JPA with Karaf 3.0.0

Question about Cellar 2.2.2

2014-01-14 Thread simafengyun1984
Hi JB, I used Karaf 2.3.3 and Cellar 2.2.2 I used the below command to install cellar for karaf cluster features:addurl mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.3.2/xml/features features:install cellar But I found the below bundles's status is Uninstalled cellar-dosgi

Re: Question about Cellar 2.2.2

2014-01-14 Thread Jean-Baptiste Onofré
Hi, Cellar is composed: - by core modules (features, config, bundles cluster support) - and optional modules The optional modules bring new features, not essential for the core behaviour, but they can be interesting for you. cellar-dosgi is an optional module providing Distributed OSGi

Re: OSGi Compendium APIs

2014-01-14 Thread agrz
That would be very helpfull. Even if I got it working too now by including the APIs in the jar. And also the Felix UserAdmin has them now included when building the latest verison from sources. rkmoquin wrote I had gotten the User Admin service working correctly in Karaf 3.0.0. I can get the