Configuring a JAAS PropertyLoginModule using karaf.home system property fails on Windows

2019-09-17 Thread cniehues
Hello, I have the same problem than described in https://issues.jboss.org/browse/ENTESB-5359 The linked solution is only available for Red Hat subcribers so it would be helpful if anyone can say me how to fix it. Thanks Christian -- Sent from:

Re: Installing drools-module causing infinite karaf restart

2016-11-23 Thread cniehues
I created KARAF-4839 for it -- View this message in context: http://karaf.922171.n3.nabble.com/Installing-drools-module-causing-infinite-karaf-restart-tp4048644p4048785.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Installing drools-module causing infinite karaf restart

2016-11-20 Thread cniehues
Still same issue with Felix 5.6.1 if I've done the upgrade right. This is what I've done: - downloaded Apache Framework Distribution 5.6.1 - renamed jar in /bin in the downloaded archive to org.apache.felix.framework-5.6.1.jar - copied the jar to ${karaf-home}/system/org/apache/felix/org.apache.fe

Re: Installing drools-module causing infinite karaf restart

2016-11-18 Thread cniehues
Ok that seems to work. I can also see that it has 1 bundle less in comparison to the deploy folder approach but I can't see which one. But I wonder you don't have the restart issue when using the deploy folder. I've done the following: * unzip the karaf 4.0.7 distribution * copied the feature

Re: Installing drools-module causing infinite karaf restart

2016-11-18 Thread cniehues
I just deployed the feature by dropping it in the deploy folder, maybe that's the problem. How do I reference the feature descriptor from the org.apache.karaf.features.cfg? -- View this message in context: http://karaf.922171.n3.nabble.com/Installing-drools-module-causing-infinite-karaf-restart

Re: Installing drools-module causing infinite karaf restart

2016-11-18 Thread cniehues
That's the output for drools-module: Changes to perform: Region: root Bundles to uninstall: org.apache.servicemix.bundles.javax-inject/1.0.0.2 Bundles to install: wrap:mvn:org.codehaus.janino/janino/2.5.16$Bundle-SymbolicName=Codehaus-Janino&Bundle-Version=2.5.16 mvn:co

Re: Installing drools-module causing infinite karaf restart

2016-11-17 Thread cniehues
But javax.mail is also present without drools-module and I don't understand why it should cause a restart. And isn't no-auto-refresh disabled by default when using feature:install? -- View this message in context: http://karaf.922171.n3.nabble.com/Installing-drools-module-causing-infinite-karaf

Installing drools-module causing infinite karaf restart

2016-11-17 Thread cniehues
Hello, when I install the drools-module 5.2.3.Final feature in karaf 4.0.7 beside jpa, hibernate and camel-cxf it will cause infinite restart loop after the first restart. The strange thing about it is that this behaviour only occurs when I deploy it with a feature file. If I do it with manual ste

Re: Karaf 4.0.5 jdbc-config

2016-10-27 Thread cniehues
I am also using in my feature-file with karaf 4.0.7 and when I install the feature I get 4 equal datasources. So it seems like it is not completely fixed. -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-5-jdbc-config-tp4046858p4048504.html Sent from the Karaf - Use

Re: Best practice for context-specific service instances?

2016-10-20 Thread cniehues
Hi Tim, You are right, maybe the thread node was a little bit too confusing. Here is a concrete example: I am receiving SOAP messages with camel cxf endpoints that will result in some complex operations lasting some time. To reach a quick processing of the messages I use camel:seda with concurren

Re: Best practice for context-specific service instances?

2016-10-19 Thread cniehues
I am still asking me the question: is it possible to have multiple equal instances of a service or is this breaking the principle rules of OSGI? Because beside my wish of context specific instances I also see the need of parallel processing of messages. How do you do this with a single service inst

Re: Best practice for context-specific service instances?

2016-10-19 Thread cniehues
Thanks for the help, i will have a closer look to the tx-control -- View this message in context: http://karaf.922171.n3.nabble.com/Best-practice-for-context-specific-service-instances-tp4048410p4048430.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Best practice for context-specific service instances?

2016-10-19 Thread cniehues
I want to ensure that changes in the database/persistence-unit that have not been committed are only visible to the instances handling the same request. But the EntityManager is only an example, I am looking for something like a context singleton scope for service instances. Think about a service t

Best practice for context-specific service instances?

2016-10-18 Thread cniehues
Is there a way to get context specific service instances in karaf? For example if I process SOAP-Messages concurrently I want to ensure that the underlying DAO services will use the same EntityManager for each specific request. -- View this message in context: http://karaf.922171.n3.nabble.com/

Re: How to add a new JAAS realm in karafa 4.0.5

2016-08-29 Thread cniehues
I used the example from the documentation: http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.0.0"; xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0";> users = $[karaf.ba

Re: How to add a new JAAS realm in karafa 4.0.5

2016-08-29 Thread cniehues
Ok, if I drop the example blueprint from http://karaf.apache.org/manual/latest/#_security_framework in the karaf deploy folder the realm is available, but when I integrate it in a bundle I get following exception: 2016-08-29 12:51:01,529 | ERROR | nsole user karaf | BlueprintContainerImpl

Re: How to add a new JAAS realm in karafa 4.0.5

2016-08-29 Thread cniehues
Thanks JB. So I think I will have to get used to the differences between "User Guide" and "Administration Guide" because I looked here: http://karaf.apache.org/manual/latest/#_realms -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-add-a-new-JAAS-realm-in-karaf-4-0-5-tp

How to add a new JAAS realm in karafa 4.0.5

2016-08-29 Thread cniehues
Hi, I would like to know how to define a new JAAS realm in karaf. The documentation says: "You can manage an existing realm, login module, or create your own realm using the jaas:realm-manage command." but something like "jaas:realm-manage --realm myrealm" doesn't work. I would also like to know

Access to XSD files from other bundles

2016-07-07 Thread cniehues
I created a BPMN2 file with the corresponding eclipse plugin which results in a XML containing the following schemalocation: /xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"/ When the XML gets processed by the parser in karaf 4.0.5 it results in following error: /"Faile

Re: How to set service ranking with aries-blueprint-plugin

2016-01-18 Thread cniehues
I thought I could solve with problem with the starting level so that the custom implementation always has a lower starting level than the default implementation. I know that I have to restart the client bundle and that it's not very comfortable but anyway it's a solution at all for my example. But

Re: How to set service ranking with aries-blueprint-plugin

2016-01-18 Thread cniehues
Thanks for the info. I already know about this behavior. My intention was to provide a customer specific service implementation with a higher rank without changing/stopping the default implementation from an installed feature. Let's say there is a bundle in my product providing implementation for

How to set service ranking with aries-blueprint-plugin

2016-01-18 Thread cniehues
Hello, I use the aries-blueprint-plugin to generate my blueprint.xml and want to know how to set the ranking for my services. I noticed that the OsgiServiceProvider annotation has a ranking property in current version but the aries-blueprint-plugin uses an older version so it's not supported by no

Re: Injection Problem with JPA and Camel in Karaf 4.0.3

2016-01-12 Thread cniehues
Yes this file works for me. I also noticed some this issues but wasn't sure if it's wrong or right. -- View this message in context: http://karaf.922171.n3.nabble.com/Injection-Problem-with-JPA-and-Camel-in-Karaf-4-0-3-tp4044627p4044786.html Sent from the Karaf - User mailing list archive at Na

Re: Injection Problem with JPA and Camel in Karaf 4.0.3

2016-01-11 Thread cniehues
I tried to evaluate this and now I get the EntityManager without ServiceMix:ant installed. It's a little bit crazy but even after several retries with a fresh karaf I wasn't able to reproduce the behaviour I had before... -- View this message in context: http://karaf.922171.n3.nabble.com/Inject

Re: Injection Problem with JPA and Camel in Karaf 4.0.3

2016-01-08 Thread cniehues
It seems that the ServiceMix ant bundle is needed to get it working. I added the hibernate-orm feature provided by the hibernate-osgi-5.0.6.Final-karaf.xml from the official download to the enterprise-4.0.3-features.xml in karaf and also added the ServiceMix:ant bundle and now I get an EntityManag

Re: Injection Problem with JPA and Camel in Karaf 4.0.3

2016-01-08 Thread cniehues
I compared the DEBUG logs with and without the additional hibernate version and noticed that the last line was missing with hibernate 5 only. Maybe that gives a hint about the problem. /2016-01-08 12:40:28,868 | DEBUG | .aries.jpa.pra]) | LogHelper | 87 - org.jboss.logging.

Re: Injection Problem with JPA and Camel in Karaf 4.0.3

2016-01-08 Thread cniehues
I seems that it has to to with the hibernate version. With only hibernate 5 installed the processing of the datasource doesn't seem to work: 2016-01-08 09:44:23,710 | INFO | .aries.jpa.pra]) | ManagedEMF | 70 - org.apache.aries.jpa.container - 2.2.0 | Registering EntityMana

Re: Injection Problem with JPA and Camel in Karaf 4.0.3

2016-01-07 Thread cniehues
After repeating my installation steps with a fresh karaf and without the tasklist sample there is no EntityManager for my persistece unit. So I think I am still missing a bundle that comes with the tasklist sample. When I install tasklist sample features I will get the EntityManager. These are the

Re: Problems with Apache Aries Transaction Blueprint bundle start in Karaf 4.0.3

2016-01-07 Thread cniehues
I just faced the same error and created a JIRA ticket for it: ARIES-1483: NullPointerException in Blueprint with karaf 4.0.3 and Hibernate -- View this message in context: http://karaf.922171.n3.nabble.com/Problems-with-Apache-Aries-Transact

Re: Injection Problem with JPA and Camel in Karaf 4.0.3

2016-01-06 Thread cniehues
Now I figured out my problem: the blueprint-maven-plugin wasn't working at all. The problem is that the execution part was missing: blueprint-generate process-classes I think this results from your tasklist example where the execution part is missing in the p

Re: Injection Problem with JPA and Camel in Karaf 4.0.3

2016-01-06 Thread cniehues
Thanks for the quick response. Sounds good that you want to support both versions within the same Aries JPA version. So this will also include the mix of annotations and xml? And is this change planned for the next release 4.0.4? Regardss Christian -- View this message in context: http://kara

Injection Problem with JPA and Camel in Karaf 4.0.3

2016-01-06 Thread cniehues
Hello, I just started with karaf and try to investigate how to migrate a JMS/Camel/JPA related project to the OSGi world. So I created a little test-project with following bundles: - a bundle containing persistence.xml and the model - a bundle containing the DAO service interface - a bundle c