Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"

2017-03-03 Thread Olivier21
Christian, I found another solution to this problem. I added an element : osgi.service;effective:=active;objectClass=org.osgi.service.log.LogService in the the file "feature.xml" which allow to create my kar file. Good afternoon. Olivier -- View this message in

Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"

2017-02-22 Thread Olivier21
JB, I sent you the project by email. -- View this message in context: http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593p4049609.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"

2017-02-22 Thread Olivier21
Hi JB! In fact, I have a maven module to generate my custom distribution of Karaf and the pom.xml is : http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd;>

Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"

2017-02-22 Thread Olivier21
bundle:list -t 0 give me this result : karaf@root()> bundle:list -t 0 START LEVEL 100 , List Threshold: 0 ID | State| Lvl | Version | Name 0 | Active | 0 | 5.6.1| System Bundle

Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"

2017-02-22 Thread Olivier21
Thank you very much Christian. I just tried your first solution and the problem seems to be solved regarding LogService. I have no more the error message. Nevertheless, when i execute the command "bundle:list", I have no result. In the log file, i have 2 missing dependencies (that I have

Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"

2017-02-22 Thread Olivier21
Ok Thanks Tim! -- View this message in context: http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593p4049599.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"

2017-02-22 Thread Olivier21
Tim, Thank you for your answer. I discovered with the command : service:list LogService that the bundle OPS4J Pax-Logging provides the log service : karaf@root()> service:list LogService [org.apache.karaf.log.core.LogService] -- service.bundleid = 37

Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"

2017-02-22 Thread Olivier21
I forgot to say that in the file blueprint.xml, I have : -- View this message in context: http://karaf.922171.n3.nabble.com/missing-requirement-osgi-service-effective-active-filter-objectClass-org-osgi-service-log-LogService-tp4049593p4049594.html Sent from the Karaf - User

missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"

2017-02-22 Thread Olivier21
Hello, I developed a SOAP service which is encapsulated in a kar archive. Then, I made a custom karaf distribution from Karaf 4.0.4. Everything works fine (no error message in the log files and the service works fine). The problem is when I try to do the same thing with Karaf 4.0.8, I got this

Re: Problem with a tutorial of Christian Schneider

2017-02-08 Thread Olivier21
I found my mistake: In fact, in order to learn to do an application based on CXF Service and which used the best practice, I decided to start from zero in Eclipse and try to do the same projects that Christian had done. The problem was that when I created the project called "model", I have

Re: Problem with a tutorial of Christian Schneider

2017-02-08 Thread Olivier21
Good morning JB, In addition, in the karaf log file, I have this message when I type the URL "http://localhost:8181/personui; 2017-02-08 09:51:00,484 | ERROR | lixDispatchQueue | webui | 103 - net.lr.tutorial.karaf.cxf.personservice.webui - 1.0.0 | FrameworkEvent

Re: Problem with a tutorial of Christian Schneider

2017-02-07 Thread Olivier21
Hi Jean-Baptiste, Thank you for your answers. For your fiirst answer, here, you can see the result of the ls command for the projects which are in the tutorial : [javax.servlet.ServletContext] -- osgi.web.contextpath = / osgi.web.symbolicname =

Re: Problem with a tutorial of Christian Schneider

2017-02-07 Thread Olivier21
Hi Christian, Thank you for your answer. I made a file called "module-kar-1.0.0.kar". I try to join this file to this post. Do you think the problem can come from that? In fact, I do like this : 1) I download Karaf Container 4.0.8 2) I change the file "pom.xml" to add org.slf4j

Problem with a tutorial of Christian Schneider

2017-02-07 Thread Olivier21
Hello, I'm testing the tutorial http://www.liquid-reality.de/display/liquid/2011/12/22/Karaf+Tutorial+Part+4+-+CXF+Services+in+OSGi that Christian wrote. This tutorial show us a best practice. I got the projects : - Model - proxy - server - webui I didn't retrieve the "proxy-rest" project at

Re: JPA and Hibernate

2016-05-11 Thread Olivier21
Hello Christian, I found why it didn't work when I tried to install hibernate-osgi via a feature.xml file. In fact, in a feature.xml file, you must write : *mvn:org.hibernate/hibernate-osgi/5.1.0.Final/xml/karaf* and then : *hibernate-orm* My problem was I wrote : hibernate-osgi Thank you

Re: Re: Bundle versioning

2016-04-29 Thread Olivier21
Hi JB, I see an other strange thing between the version 1.0.1 and the version 1.1.0 In the 2 cases, I put the jar file in the deploy folder, then I execute Karaf which deployed my bundle. In the case of the version 1.1.0 of my bundle, you can see what is displayed below (bundle:update 215 allows

Re: Re: Bundle versioning

2016-04-28 Thread Olivier21
To test, you must create a datasource. -- View this message in context: http://karaf.922171.n3.nabble.com/Bundle-versioning-tp4046396p4046437.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Re: Bundle versioning

2016-04-28 Thread Olivier21
Message d'origine De : Olivier21 [via Karaf] <ml-node+s922171n4046435...@n3.nabble.com> À : Olivier21 <olivier.roz...@netcourrier.com> Objet : Re: Bundle versioning Date : 28/04/2016 15:35:18 CEST Thank you JB, "bundle:update id" give the same result : "

Re: Bundle versioning

2016-04-28 Thread Olivier21
Thank you JB, "bundle:update id" give the same result : "/bundle X started in version 1.0.0/" The activator code is : package org.omega.module.dao; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; public class Activator implements BundleActivator {

Re: Bundle versioning

2016-04-28 Thread Olivier21
Hi JB, I tried another way to deploy the version 1.0.1 of my bundle. I put the jar file in the maven repository (in the folder "apache-karaf-4.0.4/${user.home}/.m2/repository/org/omega/wsrest/omega-module-dao/1.0.1") and I execute the command : bundle:install -s

Re: Bundle versioning

2016-04-27 Thread Olivier21
JB, you can see the project in attached file above and you can see the explanations : /There is 5 modules : > - OMEGA_WSREST is the parent module > - omega-module-kar is the module which allows to generate the kar > archive > - omega-module-dao is the data access module > -

Re: Bundle versioning

2016-04-27 Thread Olivier21
JB, you can see the project in attached file above. -- View this message in context: http://karaf.922171.n3.nabble.com/Bundle-versioning-tp4046396p4046408.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Bundle versioning

2016-04-27 Thread Olivier21
Ok Thank Jean-Baptiste, I sent you the project to the email I receive in response of this post. Olivier -- View this message in context: http://karaf.922171.n3.nabble.com/Bundle-versioning-tp4046396p4046406.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Re: Bundle versioning

2016-04-27 Thread Olivier21
in Karaf was to generate a kar archive. Therefore, if you are a better way to install all my bundle easyly, I would like you show me. Thank you for your help. Olivier Message d'origine De : jbonofre [via Karaf] <ml-node+s922171n4046404...@n3.nabble.com> À : Olivier21 <olivier

Re: Bundle versioning

2016-04-27 Thread Olivier21
Ok thank you. I have multiple bundles. In eclipse, it's represented by multiple modules. I have a parent module and many child modules. Among these child modules, I have a module which contains a feature xml file and it's created via the archetype "karaf-feature-archetype". When I

Re: Bundle versioning

2016-04-27 Thread Olivier21
In fact I create the kar file with the maven archetype "org.apache.karaf.archetypes" in Eclipse groupId : org.apache.karaf.archetypes ArtefactId : karaf-feature-archetype Thank you for your help. Olivier -- View this message in context:

Re: Bundle versioning

2016-04-27 Thread Olivier21
Hi, Sorry I forgot the karaf version. This is the version 4.0.4... I didn't try to remove data or other folder. This is the default installation of Karaf. Have you an exemple to generate a feature from an eclipse project which is composed of many maven module? Thank you for your help.

Bundle versioning

2016-04-27 Thread Olivier21
Hello, I'm a newbie for Karaf and I have two problems. 1) I installed a kar archive in Karaf via the deploy folder. 2)After, I tested the Web Service and it works fine. The version of all the OSGI bundle in the archive is "1.0.0" and all the bundles have got a class "Activator" which display

Re: JPA and Hibernate

2016-03-23 Thread Olivier21
Yes Christian, this is the case but it works with the release 4.3.6.Final of hibernate. When I execute the command "feature:list" in the Karaf console, I can see "hibernate 4.3.6.Final" but I would like to have Hibernate 5. In order to install "hibernate 4.3.6.Final" from my feature.xml file, I

Re: JPA and Hibernate

2016-03-23 Thread Olivier21
It's solved! I changed my "pom.xml" to add : org.hibernate.proxy,javassist.util.proxy,* Christian, Now, Have you an idea to change my "feature.xml" file in order to install hibernate 5 automatically? Thank you for your help. -- View this message in context:

Re: JPA and Hibernate

2016-03-23 Thread Olivier21
Hello Christian, It works fine now with a Kar file. The "feature.xml" file to create the Kar file contains : http://karaf.apache.org/xmlns/features/v1.3.0;> mvn:org.apache.cxf.karaf/apache-cxf/3.1.5/xml/features mvn:org.ops4j.pax.jdbc/pax-jdbc-features/0.7.0/xml/features

Re: JPA and Hibernate

2016-03-10 Thread Olivier21
Christian, I'm completely lost... I'm a newbie for Karaf and Maven... You said "You should also not use the individual hibernate bundles but rather use their feature." Therefore, in the "feature.xml" file, I wrote : / http://karaf.apache.org/xmlns/features/v1.3.0;>

Re: JPA and Hibernate

2016-03-10 Thread Olivier21
Hello Christian, Thank you for your precision. In fact, I didn't know the difference between JPA and OpenJPA. I will try your solution then I will come back to you to say if I have other problems. Have a good day. Olivier -- View this message in context:

JPA and Hibernate

2016-03-09 Thread Olivier21
Hello, I created a datasource in Karaf 4.0.4. For that, I installed the features : feature:install pax-jdbc feature:install pax-jdbc-config feature:install pax-jdbc-pool-dbcp2 feature:install jdbc Everything works fine and I have a good result when I execute the command "jdbc:tables