Re: Karaf 4.2.7 shutdown unexpected

2020-01-23 Thread Jean-Baptiste Onofré
Hi, can you simulate the feature installation with feature:install -t -v ? You should have the resolver output identifying the cause of the refresh. Regards JB On 23/01/2020 22:44, Zhendong Chen wrote: > Thanks François, I used "-v" option, but still don't get more information. :( > > > > --

Re: Karaf 4.2.7 shutdown unexpected

2020-01-23 Thread Zhendong Chen
Thanks François, I used "-v" option, but still don't get more information. :( -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Karaf 4.2.8-SNAPSHOT - pax-jdbc 1.4.4 - prehook not working

2020-01-23 Thread Erwin Hogeweg
Hi Alex, Below a similar sequence from my log. From your log it seems that the Derby DataSourceFactory is not resolved. I remember that at some point I changed the driver.name entry in the config to a driver.class entry. That is for a mySQL database though but but maybe… Another silly question

Re: Karaf 4.2.7 shutdown unexpected

2020-01-23 Thread Francois Papon
Hi, It seems like you have the system bundle (0) restarted because of the refresh. You can use the "-v" option with "feature:install" to have more informations. regards, François fpa...@apache.org Le 23/01/2020 à 19:28, Zhendong Chen a écrit : > Hi all, > > we are using Karaf 4.2.7 with Spring

Re: Karaf 4.2.8-SNAPSHOT - pax-jdbc 1.4.4 - prehook not working

2020-01-23 Thread Alex Soto
Yes, the migration service is being registered: Obtained service dependency: (objectClass=org.ops4j.pax.jdbc.config.ConfigLoader) Waiting for service dependency: (objectClass=org.ops4j.pax.jdbc.config.ConfigLoader) Waiting for service dependency: (&(pool=*)(!(pax.jdbc.managed=true))(|(objectC

Karaf 4.2.7 shutdown unexpected

2020-01-23 Thread Zhendong Chen
Hi all, we are using Karaf 4.2.7 with Spring 5.1.9 and Hibernate 5.3.14. After Karaf Started, we trying install a new feature, and Karaf shutdown with no Exception. By using Hibernate 5.2.12 everything is ok. How can I find out or which logger should I use, why Karaf did that? org.apache.karaf.f

Re: Karaf 4.2.8, karaf-maven-plugin verify exception

2020-01-23 Thread Alex Soto
Thanks JB! > On Jan 23, 2020, at 12:38 PM, Jean-Baptiste Onofré wrote: > > I agree, that's why I created > https://issues.apache.org/jira/browse/KARAF-6320 > ;) > > I will improve this. > > Regards > JB > > On 23/01/2020 18:36, Alex Soto w

Re: Karaf 4.2.8, karaf-maven-plugin verify exception

2020-01-23 Thread Jean-Baptiste Onofré
I agree, that's why I created https://issues.apache.org/jira/browse/KARAF-6320 ;) I will improve this. Regards JB On 23/01/2020 18:36, Alex Soto wrote: > Somehow I fixed my features.xml, so it is no longer happening; however I > was hoping that the plugin would tell me what the problem is.  The

Re: Karaf 4.2.8, karaf-maven-plugin verify exception

2020-01-23 Thread Alex Soto
Somehow I fixed my features.xml, so it is no longer happening; however I was hoping that the plugin would tell me what the problem is. The error message does not clarify what is wrong. > On Jan 23, 2020, at 12:18 PM, Jean-Baptiste Onofré wrote: > > The resolver is performing a refresh to u

Re: Karaf 4.2.8, karaf-maven-plugin verify exception

2020-01-23 Thread Jean-Baptiste Onofré
The resolver is performing a refresh to uninstall which is bad. You have to check your feature XML to avoid the refresh. Regards JB On 23/01/2020 17:25, Alex Soto wrote: > Migrating to Karaf 4.2.8, the verify goal of the karaf-maven-plugin > fails to validate my  feature.xml with this exception:

Re: Karaf 4.2.8, karaf-maven-plugin verify exception

2020-01-23 Thread Alex Soto
With debug information, I see the lines: [DEBUG] Usage for bundle org.apache.geronimo.specs.geronimo-jta_1.1_spec/1.1.1 is 0 [DEBUG] Selected bundles [org.apache.geronimo.specs.geronimo-jta_1.1_spec/1.1.1] for destroy (no services in use) Uninstall bundle is not supported in the static installe

Karaf 4.2.8, karaf-maven-plugin verify exception

2020-01-23 Thread Alex Soto
Migrating to Karaf 4.2.8, the verify goal of the karaf-maven-plugin fails to validate my feature.xml with this exception: at org.apache.karaf.tooling.VerifyMojo.verifyResolution(VerifyMojo.java:506) at org.apache.karaf.tooling.VerifyMojo.doExecute(VerifyMojo.jav

Re: Karaf 4.2.8-SNAPSHOT - pax-jdbc 1.4.4 - prehook not working

2020-01-23 Thread stefang
Hi JB, can your share your working example? Regards Stefan jbonofre wrote > I will add an example in Karaf internal using PreHook but it works for > me on my own example. > > Regards > JB > > On 23/01/2020 10:45, stefang wrote: >> Hi Erwin, >> >> can you please check the reference example

Re: Karaf 4.2.8-SNAPSHOT - pax-jdbc 1.4.4 - prehook not working

2020-01-23 Thread Jean-Baptiste Onofré
I will add an example in Karaf internal using PreHook but it works for me on my own example. Regards JB On 23/01/2020 10:45, stefang wrote: > Hi Erwin, > > can you please check the reference example from Christian in your > environment ? > > https://github.com/cschneider/Karaf-Tutorial/blob/mas

Re: Karaf 4.2.8-SNAPSHOT - pax-jdbc 1.4.4 - prehook not working

2020-01-23 Thread stefang
Hi Erwin, can you please check the reference example from Christian in your environment ? https://github.com/cschneider/Karaf-Tutorial/blob/master/liquibase/service/src/main/java/net/lr/tutorial/db/service/Migrator.java regards Stefan Erwin Hogeweg wrote > Just this week I upgraded from kara

[ANN] Apache Karaf (runtime) 4.2.8 has been released!

2020-01-23 Thread Jean-Baptiste Onofré
The Apache Karaf team is pleased to announce Apache Karaf runtime 4.2.8 release! Apache Karaf runtime 4.2.8 is a maintenance release on the 4.2.x series. It brings improvements and bug fixes especially: * fix on bat script for Windows platform * several updates for CVE security fixes * add JMXMP