Re: kahadb-store for ActiveMQ on Karaf 4

2021-06-09 Thread Jean-Baptiste Onofre
Activemq-kahadb-store is not a bundle. You should rather using activemq-osgi 
which contain kahadb.

Regards
JB

> Le 9 juin 2021 à 17:08, Richard Hierlmeier  a 
> écrit :
> 
> 
> I have upgraded a Karaf 3 application to Karaf 4.3.2. This application needs 
> the kahadb-store from ActiveMq.
> It seems that this store is no longer supported. The  activemq-kahadb-store 
> is no longer included into the ActiveMq features.
> 
> When installing the activemq-kahadb-store bundle manually I get the following 
> error:
> 
> de@root()> bundle:install mvn:org.apache.activemq/activemq-kahadb-store/5.16.2
> Bundle IDs:
> Error executing command: Error installing bundles:
> Unable to install bundle 
> mvn:org.apache.activemq/activemq-kahadb-store/5.16.2: 
> org.osgi.framework.BundleException: OSGi R3 bundle not supported
> 
> How can I solve this problem?
> 
> Regards 
> 
>   Richard



kahadb-store for ActiveMQ on Karaf 4

2021-06-09 Thread Richard Hierlmeier
I have upgraded a Karaf 3 application to Karaf 4.3.2. This application
needs the kahadb-store from ActiveMq.
It seems that this store is no longer supported. The  activemq-kahadb-store
is no longer included into the ActiveMq features.

When installing the activemq-kahadb-store bundle manually I get the
following error:

de@root()> bundle:install
mvn:org.apache.activemq/activemq-kahadb-store/5.16.2
Bundle IDs:
Error executing command: Error installing bundles:
Unable to install bundle
mvn:org.apache.activemq/activemq-kahadb-store/5.16.2:
org.osgi.framework.BundleException: OSGi R3 bundle not supported

How can I solve this problem?

Regards

  Richard


Re: Bundle restart on feature install with wrong order

2021-06-09 Thread Andre Schlegel-Tylla
Hello JB,

did you find the problem? Would be great to avoid these unnecessary bundle
restarts.

Regards
Andre

Am Mi., 6. Jan. 2021 um 10:23 Uhr schrieb Jean-Baptiste Onofre <
j...@nanthrax.net>:

> Yes, I think the problem is in pax-jdbc-config or pax-jdbc-core bundles.
> Probably an optional or range here.
>
> Let me take a look.
>
> By the way, I will share on the mailing list (and blog) soon:
> 1. The new option to disable auto refresh on the current features service
> 2. The new "simple" features service (optional)
>
> Regards
> JB
>
> Le 6 janv. 2021 à 09:46, Andre Schlegel-Tylla 
> a écrit :
>
> Hi JB,
>
> thank you for the fast response.
>
> It's not only the pax-jdbc-sqlite feature. We have faced this issue with
> all tested pax-jdbc-* features. At least oracle, mysql, postgresql and
> derby.
>
> Regards
> Andre
>
> Am Mi., 6. Jan. 2021 um 07:51 Uhr schrieb Jean-Baptiste Onofre <
> j...@nanthrax.net>:
>
>> Hi
>>
>> According to the resolver output, it seems you install a new jetty
>> version, causing refresh of jetty.security, cascading refresh of CXF and
>> your bundles.
>>
>> The start level doesn’t matter here: whatever the start level is, you
>> will have the refresh happening.
>>
>> The refresh can be caused:
>>
>> 1. By an optional import
>> 2. By a "bad" import range
>>
>> I will check pax-jdbc-sqlite feature and bundles to see the optional
>> import and the range.
>>
>> Anyway, just to let you know that I’ve worked on a new features service
>> to avoid this case (automatic cascading refresh) and Karaf5 extension
>> (alternative to features) will not cause this kind of refresh.
>>
>> Regards
>> JB
>>
>> Le 6 janv. 2021 à 06:37, Andre Schlegel-Tylla <
>> andre.schlegel-ty...@virtimo.de> a écrit :
>>
>> Hello,
>>
>> we have noticed when switching from Karaf 4.0.10 to 4.2.8 that when
>> installing PAX JDBC features, significantly more bundles are restarted.
>> This causes problems for us because our bundles are also restarted and then
>> an error occurs because the CXF is not yet available.
>>
>> 1) Why are now significantly more bundles restarted?
>> 2) Shouldn't the start level of the bundles prevent the problem at that
>> point?
>> 3) Do we need to specify the dependency on CXF differently?
>>
>> Here for comparison:
>>
>> Karaf 4.0.10
>>
>>> virtimo@bpc()> feature:install -v pax-jdbc-sqlite
>>> Adding features: pax-jdbc-sqlite/[1.0.1,1.0.1]
>>> Changes to perform:
>>>   Region: root
>>> Bundles to install:
>>>   mvn:org.ops4j.pax.jdbc/pax-jdbc-sqlite/1.0.1
>>>   mvn:org.xerial/sqlite-jdbc/3.16.1
>>> Installing bundles:
>>>   mvn:org.ops4j.pax.jdbc/pax-jdbc-sqlite/1.0.1
>>>   mvn:org.xerial/sqlite-jdbc/3.16.1
>>> Starting bundles:
>>>   org.xerial.sqlite-jdbc/3.16.1
>>>   org.ops4j.pax.jdbc.sqlite/1.0.1
>>> Done.
>>
>>
>> Karaf 4.2.8
>>
>> virtimo@bpc()> feature:install -v pax-jdbc-sqlite
>>> Adding features: pax-jdbc-sqlite/[1.4.4,1.4.4]
>>> Changes to perform:
>>>   Region: root
>>> Bundles to install:
>>>   mvn:org.ops4j.pax.jdbc/pax-jdbc-sqlite/1.4.4
>>>   mvn:org.xerial/sqlite-jdbc/3.28.0
>>> Stopping bundles:
>>>   de.virtimo.bpc-be-analysis/4.0.0.SNAPSHOT
>>>   de.virtimo.bpc-be-core/4.0.0.SNAPSHOT
>>>   org.apache.cxf.karaf.cxf-karaf-commands/3.3.5
>>>   org.apache.cxf.cxf-rt-wsdl/3.3.5
>>>   org.apache.cxf.cxf-rt-ws-security/3.3.5
>>>   org.apache.cxf.cxf-rt-ws-rm/3.3.5
>>>   org.apache.cxf.cxf-rt-ws-policy/3.3.5
>>>   org.apache.cxf.cxf-rt-ws-mex/3.3.5
>>>   org.apache.cxf.cxf-rt-ws-addr/3.3.5
>>>   org.apache.cxf.cxf-rt-transports-udp/3.3.5
>>>   org.apache.cxf.cxf-rt-transports-local/3.3.5
>>>   org.apache.cxf.cxf-rt-transports-jms/3.3.5
>>>   org.apache.cxf.cxf-rt-transports-http-jetty/3.3.5
>>>   org.apache.cxf.cxf-rt-security-saml/3.3.5
>>>   org.apache.cxf.cxf-rt-security/3.3.5
>>>   org.apache.cxf.cxf-rt-rs-service-description/3.3.5
>>>   org.apache.cxf.cxf-rt-rs-json-basic/3.3.5
>>>   org.apache.cxf.cxf-rt-rs-extension-search/3.3.5
>>>   org.apache.cxf.cxf-rt-rs-extension-providers/3.3.5
>>>   org.apache.cxf.cxf-rt-rs-client/3.3.5
>>>   org.apache.cxf.cxf-rt-management/3.3.5
>>>   org.apache.cxf.cxf-rt-javascript/3.3.5
>>>   org.apache.cxf.cxf-rt-frontend-simple/3.3.5
>>>   org.apache.cxf.cxf-rt-frontend-js/3.3.5
>>>   org.apache.cxf.cxf-rt-frontend-jaxws/3.3.5
>>>   org.apache.cxf.cxf-rt-frontend-jaxrs/3.3.5
>>>   org.apache.cxf.cxf-rt-features-throttling/3.3.5
>>>   org.apache.cxf.cxf-rt-features-metrics/3.3.5
>>>   org.apache.cxf.cxf-rt-features-logging/3.3.5
>>>   org.apache.cxf.cxf-rt-features-clustering/3.3.5
>>>   org.apache.cxf.cxf-rt-databinding-jaxb/3.3.5
>>>   org.apache.cxf.cxf-rt-databinding-aegis/3.3.5
>>>   org.apache.cxf.cxf-rt-bindings-xml/3.3.5
>>>   org.apache.cxf.cxf-rt-bindings-soap/3.3.5
>>>   org.apache.cxf.cxf-rt-bindings-corba/3.3.5
>>>   org.apache.cxf.cxf-rt-bindings-coloc/3.3.5
>>>   org.apache.cxf.cxf-core/3.3.5
>>>   org.apache.cxf.cxf-rt-transports-http/3.3.5
>>>   org.ops4j.pax.web.pax-web-jetty/7.2.14
>>>