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é <[email protected]> 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
> <[email protected]> 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
> > <[email protected]> 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              │ Apache Karaf :: Deployer :: Features
 29 │ Active   │  24 │ 4.4.3              │ Apache Karaf :: Deployer :: Karaf 
Archive (.kar)
 30 │ Active   │  24 │ 4.4.3              │ Apache Karaf :: Deployer :: Wrap 
Non OSGi Jar
 31 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Diagnostic :: Core
 32 │ Active   │  80 │ 4.4.3              │ Apache Karaf :: OSGi Services :: 
Event
 33 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Features :: Command
 34 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Instance :: Core
 35 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: JAAS :: Command
 36 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: JAAS :: Config
 37 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: JAAS :: Modules
 38 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: KAR :: Core
 39 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Log :: Core
 40 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Management
 41 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Package :: Core
 42 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Service :: Core
 43 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Shell :: Various 
Commands
 44 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Shell :: Core
 45 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Shell :: SSH
 46 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: System :: Core
 47 │ Active   │  30 │ 2.9.2              │ Apache Mina SSHD :: OSGi
 48 │ Active   │  30 │ 2.9.2              │ Apache Mina SSHD :: SCP
 49 │ Active   │  30 │ 2.9.2              │ Apache Mina SSHD :: SFTP
 50 │ Active   │  30 │ 3.21.0             │ JLine Bundle
 51 │ Active   │  10 │ 2.6.12             │ OPS4J Pax Url - wrap:
 52 │ Active   │  30 │ 4.0.0              │ Jakarta Servlet, Fragments: 68
 53 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: HTTP :: Core
 54 │ Active   │  30 │ 9.4.50.v20221201   │ Jetty :: Asynchronous HTTP Client
 55 │ Active   │  30 │ 9.4.50.v20221201   │ Jetty :: Continuation
 56 │ Active   │  30 │ 9.4.50.v20221201   │ Jetty :: Http Utility
 57 │ Active   │  30 │ 9.4.50.v20221201   │ Jetty :: IO Utility
 58 │ Active   │  30 │ 9.4.50.v20221201   │ Jetty :: JAAS
 59 │ Active   │  30 │ 9.4.50.v20221201   │ Jetty :: JMX Management
 60 │ Active   │  30 │ 9.4.50.v20221201   │ Jetty :: Security
 61 │ Active   │  30 │ 9.4.50.v20221201   │ Jetty :: Server Core
 62 │ Active   │  30 │ 9.4.50.v20221201   │ Jetty :: Servlet Handling
 63 │ Active   │  30 │ 9.4.50.v20221201   │ Jetty :: Utility Servlets and 
Filters
 64 │ Active   │  30 │ 9.4.50.v20221201   │ Jetty :: Utilities
 65 │ Active   │  30 │ 9.4.50.v20221201   │ Jetty :: Utilities :: Ajax(JSON)
 66 │ Active   │  30 │ 9.4.50.v20221201   │ Jetty :: XML utilities
 67 │ Active   │  30 │ 8.0.15             │ OPS4J Pax Web - API
 68 │ Resolved │  30 │ 8.0.15             │ OPS4J Pax Web - Servlet API 3.1 
compatibility, Hosts: 52
 69 │ Active   │  30 │ 8.0.15             │ OPS4J Pax Web - Jetty
 70 │ Active   │  30 │ 8.0.15             │ OPS4J Pax Web - Runtime
 71 │ Active   │  30 │ 8.0.15             │ OPS4J Pax Web - Service SPI 
(internal)
 72 │ Active   │  30 │ 8.0.15             │ OPS4J Pax Web - Tomcat Common
 73 │ Active   │  80 │ 1.7.1              │ Jolokia Agent
 74 │ Active   │  30 │ 1.1.8              │ Apache Felix Web Console Event 
Plugin
 75 │ Active   │  30 │ 1.0.10             │ Apache Felix Web Console Memory 
Usage Plugin
 76 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Web Console :: 
Console
 77 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Web Console :: 
Features Plugin
 78 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Web Console :: Gogo 
Plugin
 79 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Web Console :: HTTP 
Plugin
 80 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Web Console :: 
Instance Plugin
 81 │ Active   │  80 │ 3.0.3              │ Jakarta Expression Language 3.0 API
 82 │ Active   │  80 │ 2.0.0.SP1          │ CDI APIs
 83 │ Active   │  80 │ 1.2.2              │ javax.interceptor API
 84 │ Active   │  80 │ 2.0.1              │ JMS API
 85 │ Active   │  80 │ 1.2                │ javax.transaction API
 86 │ Active   │  80 │ 5.17.3             │ ActiveMQ :: OSGi bundle
 87 │ Active   │  20 │ 1.0.1              │ Apache Aries Blueprint API
 88 │ Active   │  20 │ 1.3.2              │ Apache Aries Blueprint CM
 89 │ Active   │  20 │ 1.10.3             │ Apache Aries Blueprint Core, 
Fragments: 90
 90 │ Resolved │  20 │ 1.0.0              │ Apache Aries Blueprint Core 
Compatiblity Fragment Bundle, Hosts: 89
 91 │ Active   │  30 │ 1.2.0              │ Apache Aries JMX Blueprint API
 92 │ Active   │  30 │ 1.2.0              │ Apache Aries JMX Blueprint Core
 93 │ Active   │  20 │ 1.1.13             │ Apache Aries Proxy Service
 94 │ Active   │  80 │ 2.11.1             │ Apache Commons Pool
 95 │ Active   │  80 │ 1.0.1              │ geronimo-j2ee-management_1.1_spec
 96 │ Active   │  30 │ 4.4.3              │ Apache Karaf :: Bundle :: 
BlueprintStateService
 97 │ Active   │  24 │ 4.4.3              │ Apache Karaf :: Deployer :: 
Blueprint
 98 │ Active   │  30 │ 1.0.0.6            │ Apache ServiceMix :: Bundles :: 
aopalliance
 99 │ Active   │  80 │ 1.9.3.1            │ Apache ServiceMix :: Bundles :: 
jasypt
100 │ Active   │  80 │ 1.0.0.3            │ Apache ServiceMix :: Bundles :: 
javax.inject
101 │ Active   │  80 │ 2.3.2.1            │ Apache ServiceMix :: Bundles :: 
jaxb-runtime
102 │ Active   │  30 │ 5.3.23.1           │ Apache ServiceMix :: Bundles :: 
spring-aop
103 │ Active   │  30 │ 5.3.23.1           │ Apache ServiceMix :: Bundles :: 
spring-beans
104 │ Active   │  30 │ 5.3.23.1           │ Apache ServiceMix :: Bundles :: 
spring-context
105 │ Active   │  30 │ 5.3.23.1           │ Apache ServiceMix :: Bundles :: 
spring-context-support
106 │ Active   │  30 │ 5.3.23.1           │ Apache ServiceMix :: Bundles :: 
spring-core
107 │ Active   │  30 │ 5.3.23.1           │ Apache ServiceMix :: Bundles :: 
spring-expression
108 │ Active   │  80 │ 0.12.0             │ JAXB2 Basics - Runtime
109 │ Active   │  80 │ 1.2.3              │ PooledJMS Library
110 │ Active   │  20 │ 9.4.0              │ org.objectweb.asm
111 │ Active   │  20 │ 9.4.0              │ org.objectweb.asm.commons
112 │ Active   │  20 │ 9.4.0              │ org.objectweb.asm.tree
113 │ Active   │  20 │ 9.4.0              │ org.objectweb.asm.tree.analysis
114 │ Active   │  20 │ 9.4.0              │ org.objectweb.asm.util
115 │ Active   │  80 │ 1.1.2              │ OPS4J Pax JMS ActiveMQ Support
116 │ Active   │  80 │ 1.1.2              │ OPS4J Pax JMS API
117 │ Active   │  80 │ 1.1.2              │ OPS4J Pax JMS Config
118 │ Active   │  80 │ 1.1.2              │ OPS4J Pax JMS MessagingHub JMS Pool 
implementation
119 │ Active   │  80 │ 1.1.1              │ Apache Aries Transaction Blueprint
120 │ Active   │  80 │ 2.3.0              │ Apache Aries Transaction Blueprint
121 │ Active   │  80 │ 2.9.0              │ Apache Commons DBCP
122 │ Active   │  80 │ 3.3.0.1            │ Apache ServiceMix :: Bundles :: 
cglib
123 │ Active   │  80 │ 1.5.5              │ OPS4J Pax JDBC Config
124 │ Active   │  80 │ 1.5.5              │ OPS4J Pax JDBC Pooling Support Base
125 │ Active   │  80 │ 1.5.5              │ OPS4J Pax JDBC Pooling DBCP2
126 │ Active   │  80 │ 0.5.3              │ pax-transx-tm-api
127 │ Active   │  80 │ 0.5.3              │ pax-transx-tm-geronimo
128 │ Active   │  80 │ 1.0.1.202109301733 │ org.osgi:org.osgi.service.jdbc
129 │ Active   │  80 │ 1.0.1              │ Apache Aries Transaction Control 
Service - Local Transactions
130 │ Active   │  80 │ 1.0.1              │ Apache Aries OSGi Transaction 
Control Service - XA Transactions
131 │ Active   │  80 │ 42.5.3             │ PostgreSQL JDBC Driver
132 │ Active   │  50 │ 2.14.1             │ Jackson-annotations
133 │ Active   │  50 │ 2.14.1             │ Jackson-core
134 │ Active   │  50 │ 2.14.1             │ jackson-databind
135 │ Active   │  80 │ 3.1.2              │ com.github.ben-manes.caffeine
136 │ Active   │  50 │ 3.20.2             │ camel-api
137 │ Active   │  50 │ 3.20.2             │ camel-attachments
138 │ Active   │  50 │ 3.20.2             │ camel-base
139 │ Active   │  50 │ 3.20.2             │ camel-base-engine
140 │ Active   │  50 │ 3.20.2             │ camel-bean
141 │ Active   │  50 │ 3.20.2             │ camel-browse
142 │ Active   │  50 │ 3.20.2             │ camel-cloud
143 │ Active   │  50 │ 3.20.2             │ camel-cluster
144 │ Active   │  50 │ 3.20.2             │ camel-console
145 │ Active   │  50 │ 3.20.2             │ camel-controlbus
146 │ Active   │  50 │ 3.20.2             │ camel-core-catalog
147 │ Active   │  50 │ 3.20.2             │ camel-core-engine
148 │ Active   │  50 │ 3.20.2             │ camel-core-languages
149 │ Active   │  50 │ 3.20.2             │ camel-core-model
150 │ Active   │  50 │ 3.20.2             │ camel-core-processor
151 │ Active   │  50 │ 3.20.2             │ camel-core-reifier
152 │ Active   │  50 │ 3.20.2             │ camel-core-xml
153 │ Active   │  50 │ 3.20.2             │ camel-dataformat
154 │ Active   │  50 │ 3.20.2             │ camel-dataset
155 │ Active   │  50 │ 3.20.2             │ camel-direct
156 │ Active   │  50 │ 3.20.2             │ camel-directvm
157 │ Active   │  50 │ 3.20.2             │ camel-file
158 │ Active   │  50 │ 3.20.2             │ camel-health
159 │ Active   │  50 │ 3.20.2             │ camel-http-base
160 │ Active   │  50 │ 3.20.2             │ camel-http-common
161 │ Active   │  50 │ 3.20.2             │ camel-jackson
162 │ Active   │  50 │ 3.20.2             │ camel-jetty
163 │ Active   │  50 │ 3.20.2             │ camel-jetty-common
164 │ Active   │  50 │ 3.20.2             │ camel-language
165 │ Active   │  50 │ 3.20.2             │ camel-log
166 │ Active   │  50 │ 3.20.2             │ camel-main
167 │ Active   │  50 │ 3.20.2             │ camel-management
168 │ Active   │  50 │ 3.20.2             │ camel-management-api
169 │ Active   │  50 │ 3.20.2             │ camel-master
170 │ Active   │  50 │ 3.20.2             │ camel-mock
171 │ Active   │  50 │ 3.20.2             │ camel-ref
172 │ Active   │  50 │ 3.20.2             │ camel-rest
173 │ Active   │  50 │ 3.20.2             │ camel-saga
174 │ Active   │  50 │ 3.20.2             │ camel-scheduler
175 │ Active   │  50 │ 3.20.2             │ camel-seda
176 │ Active   │  50 │ 3.20.2             │ camel-stub
177 │ Active   │  50 │ 3.20.2             │ camel-support
178 │ Active   │  50 │ 3.20.2             │ camel-timer
179 │ Active   │  50 │ 3.20.2             │ camel-tooling-model
180 │ Active   │  50 │ 3.20.2             │ camel-util
181 │ Active   │  50 │ 3.20.2             │ camel-util-json
182 │ Active   │  50 │ 3.20.2             │ camel-validator
183 │ Active   │  50 │ 3.20.2             │ camel-vm
184 │ Active   │  50 │ 3.20.2             │ camel-xml-io-util
185 │ Active   │  50 │ 3.20.2             │ camel-xml-jaxb
186 │ Active   │  50 │ 3.20.2             │ camel-xml-jaxp
187 │ Active   │  50 │ 3.20.2             │ camel-xpath
188 │ Active   │  50 │ 3.20.2             │ camel-xslt
189 │ Active   │  50 │ 3.20.2             │ camel-blueprint
190 │ Active   │  80 │ 3.20.2             │ camel-commands-core
191 │ Active   │  50 │ 3.20.2             │ camel-core-osgi
192 │ Active   │  80 │ 3.20.2             │ camel-karaf-commands
193 │ Active   │  10 │ 2.3.1.1            │ Apache ServiceMix :: Bundles :: 
jaxb-runtime
194 │ Active   │  10 │ 4.2.1              │ Stax2 API
195 │ Active   │  10 │ 4.4.1              │ Woodstox XML-processor
196 │ Active   │  80 │ 2.11.0             │ Apache Commons IO
197 │ Active   │  80 │ 0.0.1.SNAPSHOT     │ Caterpillar::Cache::API
198 │ Active   │  80 │ 0.0.1.SNAPSHOT     │ Caterpillar::Cache::Service
199 │ Active   │  80 │ 3.27.0             │ checker-qual
200 │ Active   │  80 │ 0                  │ 
wrap_file__home_felipe_.m2_repository_com_google_errorprone_error_prone_annotations_2.16_error_prone_annotations-2.16.jar
201 │ Active   │  30 │ 5.3.23.1           │ Apache ServiceMix :: Bundles :: 
spring-jdbc
202 │ Active   │  30 │ 5.3.23.1           │ Apache ServiceMix :: Bundles :: 
spring-tx
203 │ Active   │  80 │ 0.0.1.SNAPSHOT     │ Caterpillar::Data::API
204 │ Active   │  80 │ 0.0.1.SNAPSHOT     │ Caterpillar::Data::Service
205 │ Active   │  80 │ 0.0.1.SNAPSHOT     │ Caterpillar::Camel::API
206 │ Active   │  80 │ 0.0.1.SNAPSHOT     │ Caterpillar::Camel::Service
207 │ Active   │  80 │ 2.1.0              │ BeanIO
208 │ Active   │  80 │ 0.0.1.SNAPSHOT     │ Caterpillar::Buddy::API
209 │ Active   │  80 │ 0.0.1.SNAPSHOT     │ Caterpillar::Buddy::Service
210 │ Active   │  80 │ 0.0.1.SNAPSHOT     │ Caterpillar::Master::File
211 │ Active   │  50 │ 72.1               │ ICU4J
212 │ Active   │  50 │ 3.0.8              │ Groovy Runtime
213 │ Active   │  50 │ 3.20.2             │ camel-bindy
214 │ Active   │  50 │ 3.20.2             │ camel-csv
215 │ Active   │  50 │ 3.20.2             │ camel-groovy
216 │ Active   │  50 │ 3.20.2             │ camel-jaxb
217 │ Active   │  50 │ 3.20.2             │ camel-jms
218 │ Active   │  50 │ 3.20.2             │ camel-spring
219 │ Active   │  50 │ 3.20.2             │ camel-spring-xml
220 │ Active   │  50 │ 3.20.2             │ camel-sql
221 │ Active   │  50 │ 1.8.0              │ Apache Commons CSV
222 │ Active   │  50 │ 1.7.0.6            │ Apache ServiceMix :: Bundles :: ant
223 │ Active   │  30 │ 5.3.23.1           │ Apache ServiceMix :: Bundles :: 
spring-jms
224 │ Active   │  80 │ 1.15.0             │ Apache Commons Codec
225 │ Active   │  80 │ 4.4.0              │ Apache Commons Collections
226 │ Active   │  80 │ 3.12.0             │ Apache Commons Lang
227 │ Active   │  80 │ 3.6.1              │ Apache Commons Math
228 │ Active   │  80 │ 0                  │ 
wrap_file__home_felipe_.m2_repository_com_zaxxer_SparseBitSet_1.2_SparseBitSet-1.2.jar
229 │ Active   │  80 │ 0                  │ 
wrap_file__home_felipe_.m2_repository_org_apache_poi_poi_5.2.3_poi-5.2.3.jar
230 │ Active   │  80 │ 1.0.0.SNAPSHOT     │ Alice::ESB::bbbmmm999-f901-esb
231 │ Active   │  80 │ 1.0.0.SNAPSHOT     │ Alice::ESB::bbbmmm999-f902-esb

Reply via email to