fabric8io / fabric8

fabric8 is an open source microservices platform based on Docker, Kubernetes and Jenkins
http://fabric8.io/
1.76k stars 504 forks source link

Quickstart camel-cdi does not start when deployed on Openshiftv3 #3967

Open cmoulliard opened 9 years ago

cmoulliard commented 9 years ago

The camel-cdi quickstart has been deployed successfully on openshiftv3 (pod is created). The camel route is started - see hereafter but no button appears in the Fabric8 console to access to jolokia gateway - screenshot 2015-05-20 14 23 27

[vagrant@fabric8-master ~]$ docker logs a28dc93c0014
I> No access restrictor found, access to all MBean is allowed
I> No suitable address found for listening on multicast discovery requests
Jolokia: Agent started with URL http://172.17.0.6:8778/jolokia/
2015-05-20 12:02:38,340 [main           ] INFO  Version                        - WELD-000900: 2.2.5 (Final)
2015-05-20 12:02:38,642 [main           ] INFO  Bootstrap                      - WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
2015-05-20 12:02:38,767 [main           ] WARN  Interceptor                    - WELD-001700: Interceptor annotation class javax.ejb.PostActivate not found, interception based on it is not enabled
2015-05-20 12:02:38,768 [main           ] WARN  Interceptor                    - WELD-001700: Interceptor annotation class javax.ejb.PrePassivate not found, interception based on it is not enabled
2015-05-20 12:02:38,963 [main           ] WARN  Event                          - WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltaspike.core.impl.exclude.extension.ExcludeExtension.vetoBeans(@Observes ProcessAnnotatedType<Object>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2015-05-20 12:02:38,990 [main           ] WARN  Event                          - WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.camel.cdi.internal.CamelExtension.detectRouteBuilders(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2015-05-20 12:02:39,000 [main           ] WARN  Event                          - WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltaspike.core.impl.message.MessageBundleExtension.detectInterfaces(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.scope.DeltaSpikeContextExtension activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.config.ConfigurationExtension activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exception.control.extension.ExceptionControlExtension activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.message.MessageBundleExtension activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.message.NamedMessageBundleInvocationHandler activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.extension.ExcludeExtension activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.CustomProjectStageBeanFilter activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.GlobalAlternative activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.jmx.MBeanExtension activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ProjectStageProducer initProjectStage
INFO: Computed the following DeltaSpike ProjectStage: Production
2015-05-20 12:02:39,911 [weld-worker-1  ] WARN  Validator                      - WELD-001473: javax.enterprise.inject.spi.Bean implementation org.apache.camel.cdi.internal.CamelContextBean@643a10e6 declared a normal scope but does not implement javax.enterprise.inject.spi.PassivationCapable. It won't be possible to inject this bean into a bean with a passivating scope (@SessionScoped, @ConversationScoped). This can be fixed by assigning the Bean implementation a unique id by implementing the PassivationCapable interface.
2015-05-20 12:02:40,270 [main           ] INFO  CdiCamelContext                - Apache Camel 2.15.2 (CamelContext: myCdiCamelContext) is starting
2015-05-20 12:02:40,271 [main           ] INFO  ManagedManagementStrategy      - JMX is enabled
2015-05-20 12:02:40,468 [main           ] INFO  DefaultTypeConverter           - Loaded 182 type converters
2015-05-20 12:02:40,507 [main           ] INFO  CdiCamelContext                - AllowUseOriginalMessage is enabled. If access to the original message is not needed, then its recommended to turn this option off as it may improve performance.
2015-05-20 12:02:40,507 [main           ] INFO  CdiCamelContext                - StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
2015-05-20 12:02:40,507 [main           ] INFO  CdiCamelContext                - Total 0 routes, of which 0 is started.
2015-05-20 12:02:40,509 [main           ] INFO  CdiCamelContext                - Apache Camel 2.15.2 (CamelContext: myCdiCamelContext) started in 0.238 seconds
2015-05-20 12:02:40,716 [main           ] INFO  FileEndpoint                   - Endpoint is configured with noop=true so forcing endpoint to be idempotent as well
2015-05-20 12:02:40,716 [main           ] INFO  FileEndpoint                   - Using default memory based idempotent repository with cache max size: 1000
2015-05-20 12:02:40,771 [main           ] INFO  CdiCamelContext                - Route: route1 started and consuming from: Endpoint[file://src/main/fabric8/data?noop=true]
2015-05-20 12:02:40,815 [main           ] INFO  MainSupport                    - Apache Camel 2.15.2 starting
[vagrant@fabric8-master ~]$ docker logs a28dc93c0014
I> No access restrictor found, access to all MBean is allowed
I> No suitable address found for listening on multicast discovery requests
Jolokia: Agent started with URL http://172.17.0.6:8778/jolokia/
2015-05-20 12:02:38,340 [main           ] INFO  Version                        - WELD-000900: 2.2.5 (Final)
2015-05-20 12:02:38,642 [main           ] INFO  Bootstrap                      - WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
2015-05-20 12:02:38,767 [main           ] WARN  Interceptor                    - WELD-001700: Interceptor annotation class javax.ejb.PostActivate not found, interception based on it is not enabled
2015-05-20 12:02:38,768 [main           ] WARN  Interceptor                    - WELD-001700: Interceptor annotation class javax.ejb.PrePassivate not found, interception based on it is not enabled
2015-05-20 12:02:38,963 [main           ] WARN  Event                          - WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltaspike.core.impl.exclude.extension.ExcludeExtension.vetoBeans(@Observes ProcessAnnotatedType<Object>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2015-05-20 12:02:38,990 [main           ] WARN  Event                          - WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.camel.cdi.internal.CamelExtension.detectRouteBuilders(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2015-05-20 12:02:39,000 [main           ] WARN  Event                          - WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltaspike.core.impl.message.MessageBundleExtension.detectInterfaces(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.scope.DeltaSpikeContextExtension activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.config.ConfigurationExtension activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exception.control.extension.ExceptionControlExtension activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.message.MessageBundleExtension activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.message.NamedMessageBundleInvocationHandler activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.extension.ExcludeExtension activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.CustomProjectStageBeanFilter activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.GlobalAlternative activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.jmx.MBeanExtension activated=true
May 20, 2015 12:02:39 PM org.apache.deltaspike.core.util.ProjectStageProducer initProjectStage
INFO: Computed the following DeltaSpike ProjectStage: Production
2015-05-20 12:02:39,911 [weld-worker-1  ] WARN  Validator                      - WELD-001473: javax.enterprise.inject.spi.Bean implementation org.apache.camel.cdi.internal.CamelContextBean@643a10e6 declared a normal scope but does not implement javax.enterprise.inject.spi.PassivationCapable. It won't be possible to inject this bean into a bean with a passivating scope (@SessionScoped, @ConversationScoped). This can be fixed by assigning the Bean implementation a unique id by implementing the PassivationCapable interface.
2015-05-20 12:02:40,270 [main           ] INFO  CdiCamelContext                - Apache Camel 2.15.2 (CamelContext: myCdiCamelContext) is starting
2015-05-20 12:02:40,271 [main           ] INFO  ManagedManagementStrategy      - JMX is enabled
2015-05-20 12:02:40,468 [main           ] INFO  DefaultTypeConverter           - Loaded 182 type converters
2015-05-20 12:02:40,507 [main           ] INFO  CdiCamelContext                - AllowUseOriginalMessage is enabled. If access to the original message is not needed, then its recommended to turn this option off as it may improve performance.
2015-05-20 12:02:40,507 [main           ] INFO  CdiCamelContext                - StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
2015-05-20 12:02:40,507 [main           ] INFO  CdiCamelContext                - Total 0 routes, of which 0 is started.
2015-05-20 12:02:40,509 [main           ] INFO  CdiCamelContext                - Apache Camel 2.15.2 (CamelContext: myCdiCamelContext) started in 0.238 seconds
2015-05-20 12:02:40,716 [main           ] INFO  FileEndpoint                   - Endpoint is configured with noop=true so forcing endpoint to be idempotent as well
2015-05-20 12:02:40,716 [main           ] INFO  FileEndpoint                   - Using default memory based idempotent repository with cache max size: 1000
2015-05-20 12:02:40,771 [main           ] INFO  CdiCamelContext                - Route: route1 started and consuming from: Endpoint[file://src/main/fabric8/data?noop=true]
2015-05-20 12:02:40,815 [main           ] INFO  MainSupport                    - Apache Camel 2.15.2 starting
davsclaus commented 9 years ago

I wonder if the fabric8-console uses all the latest hawtio releases?

@jstrachan @gashcrumb wonder if the bower.json file should point to evert last release or is that ~ really working? https://github.com/fabric8io/fabric8-console/blob/master/bower.json#L19