Re: Service org.springframework.transaction.PlatformTransactionManager missing after restart

2023-02-15 Thread Ephemeris Lappis
Hello.

I don't know if it's a question of start level. I attach the output of
the command "la" just after installing my features.
The bundle that provides the PlatformTransactionManager is 127
"pax-transx-tm-geronimo".

With the command "ls -n | grep Platform", I get :

org.springframework.transaction.PlatformTransactionManager (1)

and if I inspect the services in detail, I can see that the bundle 127
indeed provides services for multiple interfaces, among them, the PTM.

After stopping and restarting Karaf, the command "ls -n" doesn't list
the PTM anymore, and in the services provided by the bundle 127 it's
actually missing :

[javax.transaction.TransactionManager,
javax.transaction.TransactionSynchronizationRegistry,
javax.transaction.UserTransaction,
org.apache.geronimo.transaction.manager.RecoverableTransactionManager]

This looks like an issue I saw in a very old post about a similar
behavior on Fuse, losing the PTM at restarting a container.

Any ideas ?

Thanks a lot.

Regards.

Le mer. 15 févr. 2023 à 06:41, Jean-Baptiste Onofré  a écrit 
:
>
> Hi,
>
> Did you check the start-level in the features ?
>
> Regards
> JB
>
> On Tue, Feb 14, 2023 at 10:50 AM Ephemeris Lappis
>  wrote:
> >
> > Hello again.
> >
> > After testing "refresh" or "restart" of bundles around transaction
> > management, with no success, I've tried a "feature:refresh" that seems
> > to have restarted the PlatformManager that was missing, and the
> > bundles that were waiting for it. In fact, I don't understand neither
> > what was failing nor why this "feature:refresh" has fixed it...
> >
> > An explanation should really be welcome : I think these days I'm going
> > to see and learn more things than ever in many years using SMX, Fuse
> > or karaf :) ...
> >
> > Thanks in advance.
> >
> > Regards.
> >
> > Le mar. 14 févr. 2023 à 10:07, Ephemeris Lappis
> >  a écrit :
> > >
> > > Hello.
> > >
> > > When installing our applicative features that pull the dependent
> > > transaction features the service
> > > "org.springframework.transaction.PlatformTransactionManager" is up,
> > > provided by the Geronimo TM, and our bundles resolve it and work as
> > > expected.
> > >
> > > After stopping and restarting Karaf, the same bundles fail because the
> > > service is missing. Indeed, listing services do not show it anymore.
> > >
> > > I've seen very old messages about similar issues on Fuse. Is this
> > > issue still impacting Karaf 4.4.3, and in this case, what can we do to
> > > ensure all the services are present after a reboot ?
> > >
> > > Thanks for your help.
> > >
> > > Regards.
START LEVEL 100 , List Threshold: 0
 ID │ State│ Lvl │ Version│ Name
┼──┼─┼┼
  0 │ Active   │   0 │ 7.0.5  │ System Bundle, Fragments: 1
  1 │ Resolved │   1 │ 4.4.3  │ Apache Karaf :: Features :: 
Extension, Hosts: 0
  2 │ Active   │   5 │ 2.6.12 │ OPS4J Pax Url - mvn:
  3 │ Active   │  30 │ 1.2.4  │ Apache Felix Metatype Service
  4 │ Active   │   5 │ 4.4.3  │ Apache Karaf :: OSGi Services :: 
EventAdmin
  5 │ Active   │   8 │ 2.2.0  │ OPS4J Pax Logging - API
  6 │ Active   │   8 │ 2.4.0  │ jansi
  7 │ Active   │   8 │ 2.2.0  │ OPS4J Pax Logging - Log4Jv2 
implementation
  8 │ Active   │   9 │ 1.2.0.202109301733 │ org.osgi:org.osgi.util.function
  9 │ Active   │   9 │ 1.2.0.202109301733 │ org.osgi:org.osgi.util.promise
 10 │ Active   │   9 │ 1.0.2  │ Apache Felix Coordinator Service
 11 │ Active   │   9 │ 1.0.14 │ Apache Felix Converter
 12 │ Active   │  10 │ 1.9.26 │ Apache Felix Configuration Admin 
Service
 13 │ Active   │  11 │ 4.4.3  │ Apache Karaf :: ConfigAdmin :: Core
 14 │ Active   │  11 │ 1.0.16 │ Apache Felix Configurator Service
 15 │ Active   │  11 │ 1.2.6  │ Apache Felix Configuration Admin 
Values Interpolation Plugin
 16 │ Active   │  11 │ 1.2.14 │ Apache Sling Commons Johnzon 
Wrapper Library
 17 │ Active   │  11 │ 1.0.6  │ Apache Felix Configuration Json
 18 │ Active   │  12 │ 3.7.4  │ Apache Felix File Install
 19 │ Active   │  15 │ 4.4.3  │ Apache Karaf :: Features :: Core
 20 │ Active   │  30 │ 1.70   │ bcpkix
 21 │ Active   │  30 │ 1.70   │ bcprov
 22 │ Active   │  30 │ 1.70   │ bcutil
 23 │ Active   │  30 │ 1.1.5  │ Apache Aries JMX API
 24 │ Active   │  30 │ 1.1.8  │ Apache Aries JMX Core
 25 │ Active   │  30 │ 1.2.0  │ Apache Aries Whiteboard support for 
JMX DynamicMBean services
 26 │ Active   │  20 │ 1.1.3  │ Apache Aries Util
 27 │ Active   │  30 │ 4.4.3  │ Apache Karaf :: Bundle :: Core
 28 │ Active   │  26 │ 4.4.3   

Re: Service org.springframework.transaction.PlatformTransactionManager missing after restart

2023-02-14 Thread Jean-Baptiste Onofré
Hi,

Did you check the start-level in the features ?

Regards
JB

On Tue, Feb 14, 2023 at 10:50 AM Ephemeris Lappis
 wrote:
>
> Hello again.
>
> After testing "refresh" or "restart" of bundles around transaction
> management, with no success, I've tried a "feature:refresh" that seems
> to have restarted the PlatformManager that was missing, and the
> bundles that were waiting for it. In fact, I don't understand neither
> what was failing nor why this "feature:refresh" has fixed it...
>
> An explanation should really be welcome : I think these days I'm going
> to see and learn more things than ever in many years using SMX, Fuse
> or karaf :) ...
>
> Thanks in advance.
>
> Regards.
>
> Le mar. 14 févr. 2023 à 10:07, Ephemeris Lappis
>  a écrit :
> >
> > Hello.
> >
> > When installing our applicative features that pull the dependent
> > transaction features the service
> > "org.springframework.transaction.PlatformTransactionManager" is up,
> > provided by the Geronimo TM, and our bundles resolve it and work as
> > expected.
> >
> > After stopping and restarting Karaf, the same bundles fail because the
> > service is missing. Indeed, listing services do not show it anymore.
> >
> > I've seen very old messages about similar issues on Fuse. Is this
> > issue still impacting Karaf 4.4.3, and in this case, what can we do to
> > ensure all the services are present after a reboot ?
> >
> > Thanks for your help.
> >
> > Regards.


Re: Service org.springframework.transaction.PlatformTransactionManager missing after restart

2023-02-14 Thread Ephemeris Lappis
Hello again.

After testing "refresh" or "restart" of bundles around transaction
management, with no success, I've tried a "feature:refresh" that seems
to have restarted the PlatformManager that was missing, and the
bundles that were waiting for it. In fact, I don't understand neither
what was failing nor why this "feature:refresh" has fixed it...

An explanation should really be welcome : I think these days I'm going
to see and learn more things than ever in many years using SMX, Fuse
or karaf :) ...

Thanks in advance.

Regards.

Le mar. 14 févr. 2023 à 10:07, Ephemeris Lappis
 a écrit :
>
> Hello.
>
> When installing our applicative features that pull the dependent
> transaction features the service
> "org.springframework.transaction.PlatformTransactionManager" is up,
> provided by the Geronimo TM, and our bundles resolve it and work as
> expected.
>
> After stopping and restarting Karaf, the same bundles fail because the
> service is missing. Indeed, listing services do not show it anymore.
>
> I've seen very old messages about similar issues on Fuse. Is this
> issue still impacting Karaf 4.4.3, and in this case, what can we do to
> ensure all the services are present after a reboot ?
>
> Thanks for your help.
>
> Regards.


Service org.springframework.transaction.PlatformTransactionManager missing after restart

2023-02-14 Thread Ephemeris Lappis
Hello.

When installing our applicative features that pull the dependent
transaction features the service
"org.springframework.transaction.PlatformTransactionManager" is up,
provided by the Geronimo TM, and our bundles resolve it and work as
expected.

After stopping and restarting Karaf, the same bundles fail because the
service is missing. Indeed, listing services do not show it anymore.

I've seen very old messages about similar issues on Fuse. Is this
issue still impacting Karaf 4.4.3, and in this case, what can we do to
ensure all the services are present after a reboot ?

Thanks for your help.

Regards.