[jbosstools-issues] [JBoss JIRA] (JBIDE-27059) Server adapter: hot-deployment of SpringBoot app upon code changes for SpringBoot is broken

André Dietisheim (Jira) issues at jboss.org
Tue Feb 18 15:24:00 EST 2020


    [ https://issues.redhat.com/browse/JBIDE-27059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13975679#comment-13975679 ] 

André Dietisheim edited comment on JBIDE-27059 at 2/18/20 3:23 PM:
-------------------------------------------------------------------

[~jkopriva] I can't reproduce this. My spring boot app is restarted. Here are my steps:

Steps on command line:
# EXEC: in Eclipse: create a project *fuse-on-openshift* on your OS instance (used my local cdk 3.6)
# EXEC: download [fuse-on-openshift.zip|https://github.com/jbosstools/jbosstools-openshift/blob/master/itests/org.jboss.tools.openshift.ui.bot.test/resources/fuse-on-openshift.zip] && unzip it
# EXEC: in the new folder: run the following command line (using OS instance in the *kubernetes.master* parameter):
{code}
mvn clean install fabric8:deploy -Dkubernetes.master=https://192.168.64.171:8443/ -Dkubernetes.namespace=fuse-on-openshift -Dkubernetes.auth.basic.username=developer -Dkubernetes.auth.basic.password=XXXX -Dfabric8.mode=openshift -Dkubernetes.trust.certificates=true -Dfabric8.build.strategy=s2i -Dkubernetes.auth.tryServiceAccount=false -Dfabric8.generator.from=fabric8/s2i-java -Dfabric8.generator.fromMode=docker -Dkubernetes.auth.tryKubeConfig=false
{code}

# EXEC: import (maven) project into Eclipse
# ASSERT: in Explorer: service *camel-ose-springboot-xml-1* is visible & pod for it running
# EXEC: create a server adapter for it & start it
# ASSERT: old pod is killed and a new pod is re-created
# # EXEC: in ctx menu for pod: pick "Pod Log..."
# ASSERT: pod log shows up in "Console" view, streaming the log of the pod
# EXEC: change class *MyTransformer.java*
# ASSERT: server adapter syncs local changes to the pod

Result:
Springboot application is restarted visible by the following output in the log - notice the initial output 
{code}==== =====.hey I am{code}
and 
{code}==== =====.:::hey{code} after the automatic restart:
{code}
08:48:03.384 [Camel (camel) thread #0 - timer://foo] INFO  simple-route - ==== =====.hey I am a transformer!
08:48:05.384 [Camel (camel) thread #0 - timer://foo] INFO  simple-route - ==== =====.hey I am a transformer!
08:48:06.252 [Thread-10] INFO  o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 53e5bf89: startup date [Tue Feb 18 08:46:24 UTC 2020]; root of context hierarchy
08:48:06.253 [Thread-10] INFO  o.a.camel.spring.SpringCamelContext - Apache Camel 2.18.1.redhat-000021 (CamelContext: camel) is shutting down
08:48:06.253 [Thread-10] INFO  o.a.c.impl.DefaultShutdownStrategy - Starting to graceful shutdown 1 routes (timeout 300 seconds)
08:48:06.265 [Camel (camel) thread #1 - ShutdownTask] INFO  o.a.c.impl.DefaultShutdownStrategy - Route: simple-route shutdown complete, was consuming from: timer://foo?period=2000
08:48:06.267 [Thread-10] INFO  o.a.c.impl.DefaultShutdownStrategy - Graceful shutdown of 1 routes completed in 0 seconds
08:48:06.313 [Thread-10] INFO  o.a.camel.spring.SpringCamelContext - Apache Camel 2.18.1.redhat-000021 (CamelContext: camel) uptime 1 minute
08:48:06.313 [Thread-10] INFO  o.a.camel.spring.SpringCamelContext - Apache Camel 2.18.1.redhat-000021 (CamelContext: camel) is shutdown in 0.060 seconds
08:48:06.313 [Thread-10] INFO  o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 47995857: startup date [Tue Feb 18 08:47:01 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 53e5bf89
08:48:08.082 [Thread-10] INFO  o.s.c.s.DefaultLifecycleProcessor - Stopping beans in phase 0
08:48:08.083 [Thread-10] INFO  o.s.b.a.e.jmx.EndpointMBeanExporter - Unregistering JMX-exposed beans on shutdown
08:48:08.086 [Thread-10] INFO  o.s.b.a.e.jmx.EndpointMBeanExporter - Unregistering JMX-exposed beans
08:48:08.086 [Thread-10] INFO  o.s.j.e.a.AnnotationMBeanExporter - Unregistering JMX-exposed beans on shutdown
  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.4.1.RELEASE)
08:48:08.486 [restartedMain] INFO  org.mycompany.Application - Starting Application on camel-ose-springboot-xml-2-57gsk with PID 1 (/deployments/BOOT-INF/classes started by jboss in /deployments)
08:48:08.487 [restartedMain] INFO  org.mycompany.Application - No active profile set, falling back to default profiles: default
08:48:08.489 [restartedMain] INFO  o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 5edff792: startup date [Tue Feb 18 08:48:08 UTC 2020]; root of context hierarchy
08:48:09.371 [restartedMain] INFO  o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring/camel-context.xml]
08:48:10.104 [restartedMain] INFO  o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
08:48:10.113 [restartedMain] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.apache.camel.spring.boot.CamelAutoConfiguration' of type [class org.apache.camel.spring.boot.CamelAutoConfiguration$$EnhancerBySpringCGLIB$$80976802] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
08:48:10.290 [restartedMain] INFO  o.s.b.c.e.t.TomcatEmbeddedServletContainer - Tomcat initialized with port(s): 8080 (http)
08:48:10.291 [restartedMain] INFO  o.a.catalina.core.StandardService - Starting service Tomcat
08:48:10.293 [restartedMain] INFO  o.a.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/8.0.36
08:48:10.317 [localhost-startStop-1] INFO  o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
08:48:10.318 [localhost-startStop-1] INFO  o.s.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 1829 ms
08:48:10.435 [localhost-startStop-1] INFO  o.s.b.w.s.ServletRegistrationBean - Mapping servlet: 'dispatcherServlet' to [/]
08:48:10.435 [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'metricsFilter' to: [/*]
08:48:10.436 [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'characterEncodingFilter' to: [/*]
08:48:10.436 [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
08:48:10.437 [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'httpPutFormContentFilter' to: [/*]
08:48:10.437 [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'requestContextFilter' to: [/*]
08:48:10.437 [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'webRequestLoggingFilter' to: [/*]
08:48:10.437 [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'applicationContextIdFilter' to: [/*]
08:48:10.701 [restartedMain] INFO  o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 5edff792: startup date [Tue Feb 18 08:48:08 UTC 2020]; root of context hierarchy
08:48:10.710 [restartedMain] INFO  o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
08:48:10.711 [restartedMain] INFO  o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
08:48:10.724 [restartedMain] INFO  o.s.w.s.h.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
08:48:10.724 [restartedMain] INFO  o.s.w.s.h.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
08:48:10.789 [restartedMain] INFO  o.s.w.s.h.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
08:48:10.922 [restartedMain] INFO  o.a.c.i.c.DefaultTypeConverter - Loaded 190 type converters
08:48:11.307 [restartedMain] INFO  o.s.b.d.a.OptionalLiveReloadServer - LiveReload server is running on port 35729
08:48:11.695 [restartedMain] INFO  o.s.j.e.a.AnnotationMBeanExporter - Registering beans for JMX exposure on startup
08:48:11.702 [restartedMain] INFO  o.s.b.a.e.jmx.EndpointMBeanExporter - Registering beans for JMX exposure on startup
08:48:11.705 [restartedMain] INFO  o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 5edff792
08:48:11.801 [restartedMain] INFO  o.s.b.f.s.DefaultListableBeanFactory - Overriding bean definition for bean 'handlerExceptionResolver' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration; factoryMethodName=handlerExceptionResolver; initMethodName=null; destroyMethodName=(inferred); defined in org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=endpointWebMvcChildContextConfiguration; factoryMethodName=compositeHandlerExceptionResolver; initMethodName=null; destroyMethodName=(inferred); defined in org.springframework.boot.actuate.autoconfigure.EndpointWebMvcChildContextConfiguration]
08:48:11.822 [restartedMain] INFO  o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
08:48:11.889 [restartedMain] INFO  o.s.b.c.e.t.TomcatEmbeddedServletContainer - Tomcat initialized with port(s): 8081 (http)
08:48:11.889 [restartedMain] INFO  o.a.catalina.core.StandardService - Starting service Tomcat
08:48:11.890 [restartedMain] INFO  o.a.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/8.0.36
08:48:11.901 [localhost-startStop-1] INFO  o.a.c.c.C.[Tomcat-1].[localhost].[/] - Initializing Spring embedded WebApplicationContext
08:48:11.901 [localhost-startStop-1] INFO  o.s.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 196 ms
08:48:11.910 [localhost-startStop-1] INFO  o.s.b.w.s.ServletRegistrationBean - Mapping servlet: 'dispatcherServlet' to [/]
08:48:12.012 [restartedMain] INFO  o.s.b.a.e.mvc.EndpointHandlerMapping - Mapped "{[/health || /health.json],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.HealthMvcEndpoint.invoke(java.security.Principal)
08:48:12.018 [restartedMain] INFO  o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error]}" onto public java.util.Map<java.lang.String, java.lang.Object> org.springframework.boot.actuate.endpoint.mvc.ManagementErrorEndpoint.invoke()
08:48:12.026 [restartedMain] INFO  o.s.w.s.h.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
08:48:12.026 [restartedMain] INFO  o.s.w.s.h.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
08:48:12.091 [restartedMain] INFO  o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 5edff792
08:48:12.215 [restartedMain] INFO  o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-0.0.0.0-8081"]
08:48:12.216 [restartedMain] INFO  o.a.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-0.0.0.0-8081"]
08:48:12.221 [restartedMain] INFO  o.a.tomcat.util.net.NioSelectorPool - Using a shared selector for servlet write/read
08:48:12.234 [restartedMain] INFO  o.s.b.c.e.t.TomcatEmbeddedServletContainer - Tomcat started on port(s): 8081 (http)
08:48:12.241 [restartedMain] INFO  o.s.c.s.DefaultLifecycleProcessor - Starting beans in phase 0
08:48:12.242 [restartedMain] INFO  o.s.b.a.e.jmx.EndpointMBeanExporter - Located managed bean 'healthEndpoint': registering with JMX server as MBean [org.springframework.boot:type=Endpoint,name=healthEndpoint]
08:48:12.296 [restartedMain] INFO  o.a.c.spring.boot.RoutesCollector - Loading additional Camel XML routes from: classpath:camel/*.xml
08:48:12.296 [restartedMain] INFO  o.a.c.spring.boot.RoutesCollector - Loading additional Camel XML rests from: classpath:camel-rest/*.xml
08:48:12.296 [restartedMain] INFO  o.a.camel.spring.SpringCamelContext - Apache Camel 2.18.1.redhat-000021 (CamelContext: camel) is starting
08:48:12.296 [restartedMain] INFO  o.a.c.m.ManagedManagementStrategy - JMX is enabled
08:48:12.338 [restartedMain] INFO  o.a.c.i.DefaultRuntimeEndpointRegistry - Runtime endpoint registry is in extended mode gathering usage statistics of all incoming and outgoing endpoints (cache limit: 1000)
08:48:12.402 [restartedMain] INFO  o.a.camel.spring.SpringCamelContext - 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
08:48:12.417 [restartedMain] INFO  o.a.camel.spring.SpringCamelContext - Route: simple-route started and consuming from: timer://foo?period=2000
08:48:12.420 [restartedMain] INFO  o.a.camel.spring.SpringCamelContext - Total 1 routes, of which 1 are started.
08:48:12.420 [restartedMain] INFO  o.a.camel.spring.SpringCamelContext - Apache Camel 2.18.1.redhat-000021 (CamelContext: camel) started in 0.124 seconds
08:48:12.421 [restartedMain] INFO  o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-0.0.0.0-8080"]
08:48:12.422 [restartedMain] INFO  o.a.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-0.0.0.0-8080"]
08:48:12.422 [restartedMain] INFO  o.a.tomcat.util.net.NioSelectorPool - Using a shared selector for servlet write/read
08:48:12.442 [restartedMain] INFO  o.s.b.c.e.t.TomcatEmbeddedServletContainer - Tomcat started on port(s): 8080 (http)
08:48:12.444 [restartedMain] INFO  org.mycompany.Application - Started Application in 4.028 seconds (JVM running for 119.873)
-----------
08:48:13.421 [Camel (camel) thread #2 - timer://foo] INFO  simple-route - ==== =====.:::hey I am a transformer!
08:48:15.422 [Camel (camel) thread #2 - timer://foo] INFO  simple-route - ==== =====.:::hey I am a transformer!

{code}


was (Author: adietish):
[~jkopriva] I can't reproduce this. My spring boot app is restarted. Here are my steps:

Steps on command line:
# EXEC: in Eclipse: create a project *fuse-on-openshift* on your OS instance (used my local cdk 3.6)
# EXEC: download [fuse-on-openshift.zip|https://github.com/jbosstools/jbosstools-openshift/blob/master/itests/org.jboss.tools.openshift.ui.bot.test/resources/fuse-on-openshift.zip] && unzip it
# EXEC: in the new folder: run the following command line (using OS instance in the *kubernetes.master* parameter):
{code}
mvn clean install fabric8:deploy -Dkubernetes.master=https://192.168.64.171:8443/ -Dkubernetes.namespace=fuse-on-openshift -Dkubernetes.auth.basic.username=developer -Dkubernetes.auth.basic.password=XXXX -Dfabric8.mode=openshift -Dkubernetes.trust.certificates=true -Dfabric8.build.strategy=s2i -Dkubernetes.auth.tryServiceAccount=false -Dfabric8.generator.from=fabric8/s2i-java -Dfabric8.generator.fromMode=docker -Dkubernetes.auth.tryKubeConfig=false
{code}

# EXEC: import (maven) project into Eclipse
# ASSERT: in Explorer: service *camel-ose-springboot-xml-1* is visible & pod for it running
# EXEC: create a server adapter for it & start it
# ASSERT: old pod is killed and a new pod is re-created
# # EXEC: in ctx menu for pod: pick "Pod Log..."
# ASSERT: pod log shows up in "Console" view, streaming the log of the pod
# EXEC: change class *MyTransformer.java*
# ASSERT: server adapter syncs local changes to the pod

Result:
Springboot application is restarted visible by the following output in the log - notice the initial output **==== =====.hey** and **==== =====.:::hey** after the automatic restart:
{code}
08:48:03.384 [Camel (camel) thread #0 - timer://foo] INFO  simple-route - ==== =====.hey I am a transformer!
08:48:05.384 [Camel (camel) thread #0 - timer://foo] INFO  simple-route - ==== =====.hey I am a transformer!
08:48:06.252 [Thread-10] INFO  o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 53e5bf89: startup date [Tue Feb 18 08:46:24 UTC 2020]; root of context hierarchy
08:48:06.253 [Thread-10] INFO  o.a.camel.spring.SpringCamelContext - Apache Camel 2.18.1.redhat-000021 (CamelContext: camel) is shutting down
08:48:06.253 [Thread-10] INFO  o.a.c.impl.DefaultShutdownStrategy - Starting to graceful shutdown 1 routes (timeout 300 seconds)
08:48:06.265 [Camel (camel) thread #1 - ShutdownTask] INFO  o.a.c.impl.DefaultShutdownStrategy - Route: simple-route shutdown complete, was consuming from: timer://foo?period=2000
08:48:06.267 [Thread-10] INFO  o.a.c.impl.DefaultShutdownStrategy - Graceful shutdown of 1 routes completed in 0 seconds
08:48:06.313 [Thread-10] INFO  o.a.camel.spring.SpringCamelContext - Apache Camel 2.18.1.redhat-000021 (CamelContext: camel) uptime 1 minute
08:48:06.313 [Thread-10] INFO  o.a.camel.spring.SpringCamelContext - Apache Camel 2.18.1.redhat-000021 (CamelContext: camel) is shutdown in 0.060 seconds
08:48:06.313 [Thread-10] INFO  o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 47995857: startup date [Tue Feb 18 08:47:01 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 53e5bf89
08:48:08.082 [Thread-10] INFO  o.s.c.s.DefaultLifecycleProcessor - Stopping beans in phase 0
08:48:08.083 [Thread-10] INFO  o.s.b.a.e.jmx.EndpointMBeanExporter - Unregistering JMX-exposed beans on shutdown
08:48:08.086 [Thread-10] INFO  o.s.b.a.e.jmx.EndpointMBeanExporter - Unregistering JMX-exposed beans
08:48:08.086 [Thread-10] INFO  o.s.j.e.a.AnnotationMBeanExporter - Unregistering JMX-exposed beans on shutdown
  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.4.1.RELEASE)
08:48:08.486 [restartedMain] INFO  org.mycompany.Application - Starting Application on camel-ose-springboot-xml-2-57gsk with PID 1 (/deployments/BOOT-INF/classes started by jboss in /deployments)
08:48:08.487 [restartedMain] INFO  org.mycompany.Application - No active profile set, falling back to default profiles: default
08:48:08.489 [restartedMain] INFO  o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 5edff792: startup date [Tue Feb 18 08:48:08 UTC 2020]; root of context hierarchy
08:48:09.371 [restartedMain] INFO  o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring/camel-context.xml]
08:48:10.104 [restartedMain] INFO  o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
08:48:10.113 [restartedMain] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.apache.camel.spring.boot.CamelAutoConfiguration' of type [class org.apache.camel.spring.boot.CamelAutoConfiguration$$EnhancerBySpringCGLIB$$80976802] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
08:48:10.290 [restartedMain] INFO  o.s.b.c.e.t.TomcatEmbeddedServletContainer - Tomcat initialized with port(s): 8080 (http)
08:48:10.291 [restartedMain] INFO  o.a.catalina.core.StandardService - Starting service Tomcat
08:48:10.293 [restartedMain] INFO  o.a.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/8.0.36
08:48:10.317 [localhost-startStop-1] INFO  o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
08:48:10.318 [localhost-startStop-1] INFO  o.s.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 1829 ms
08:48:10.435 [localhost-startStop-1] INFO  o.s.b.w.s.ServletRegistrationBean - Mapping servlet: 'dispatcherServlet' to [/]
08:48:10.435 [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'metricsFilter' to: [/*]
08:48:10.436 [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'characterEncodingFilter' to: [/*]
08:48:10.436 [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
08:48:10.437 [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'httpPutFormContentFilter' to: [/*]
08:48:10.437 [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'requestContextFilter' to: [/*]
08:48:10.437 [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'webRequestLoggingFilter' to: [/*]
08:48:10.437 [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'applicationContextIdFilter' to: [/*]
08:48:10.701 [restartedMain] INFO  o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 5edff792: startup date [Tue Feb 18 08:48:08 UTC 2020]; root of context hierarchy
08:48:10.710 [restartedMain] INFO  o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
08:48:10.711 [restartedMain] INFO  o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
08:48:10.724 [restartedMain] INFO  o.s.w.s.h.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
08:48:10.724 [restartedMain] INFO  o.s.w.s.h.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
08:48:10.789 [restartedMain] INFO  o.s.w.s.h.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
08:48:10.922 [restartedMain] INFO  o.a.c.i.c.DefaultTypeConverter - Loaded 190 type converters
08:48:11.307 [restartedMain] INFO  o.s.b.d.a.OptionalLiveReloadServer - LiveReload server is running on port 35729
08:48:11.695 [restartedMain] INFO  o.s.j.e.a.AnnotationMBeanExporter - Registering beans for JMX exposure on startup
08:48:11.702 [restartedMain] INFO  o.s.b.a.e.jmx.EndpointMBeanExporter - Registering beans for JMX exposure on startup
08:48:11.705 [restartedMain] INFO  o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 5edff792
08:48:11.801 [restartedMain] INFO  o.s.b.f.s.DefaultListableBeanFactory - Overriding bean definition for bean 'handlerExceptionResolver' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration; factoryMethodName=handlerExceptionResolver; initMethodName=null; destroyMethodName=(inferred); defined in org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=endpointWebMvcChildContextConfiguration; factoryMethodName=compositeHandlerExceptionResolver; initMethodName=null; destroyMethodName=(inferred); defined in org.springframework.boot.actuate.autoconfigure.EndpointWebMvcChildContextConfiguration]
08:48:11.822 [restartedMain] INFO  o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
08:48:11.889 [restartedMain] INFO  o.s.b.c.e.t.TomcatEmbeddedServletContainer - Tomcat initialized with port(s): 8081 (http)
08:48:11.889 [restartedMain] INFO  o.a.catalina.core.StandardService - Starting service Tomcat
08:48:11.890 [restartedMain] INFO  o.a.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/8.0.36
08:48:11.901 [localhost-startStop-1] INFO  o.a.c.c.C.[Tomcat-1].[localhost].[/] - Initializing Spring embedded WebApplicationContext
08:48:11.901 [localhost-startStop-1] INFO  o.s.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 196 ms
08:48:11.910 [localhost-startStop-1] INFO  o.s.b.w.s.ServletRegistrationBean - Mapping servlet: 'dispatcherServlet' to [/]
08:48:12.012 [restartedMain] INFO  o.s.b.a.e.mvc.EndpointHandlerMapping - Mapped "{[/health || /health.json],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.HealthMvcEndpoint.invoke(java.security.Principal)
08:48:12.018 [restartedMain] INFO  o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/error]}" onto public java.util.Map<java.lang.String, java.lang.Object> org.springframework.boot.actuate.endpoint.mvc.ManagementErrorEndpoint.invoke()
08:48:12.026 [restartedMain] INFO  o.s.w.s.h.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
08:48:12.026 [restartedMain] INFO  o.s.w.s.h.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
08:48:12.091 [restartedMain] INFO  o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext at 5edff792
08:48:12.215 [restartedMain] INFO  o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-0.0.0.0-8081"]
08:48:12.216 [restartedMain] INFO  o.a.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-0.0.0.0-8081"]
08:48:12.221 [restartedMain] INFO  o.a.tomcat.util.net.NioSelectorPool - Using a shared selector for servlet write/read
08:48:12.234 [restartedMain] INFO  o.s.b.c.e.t.TomcatEmbeddedServletContainer - Tomcat started on port(s): 8081 (http)
08:48:12.241 [restartedMain] INFO  o.s.c.s.DefaultLifecycleProcessor - Starting beans in phase 0
08:48:12.242 [restartedMain] INFO  o.s.b.a.e.jmx.EndpointMBeanExporter - Located managed bean 'healthEndpoint': registering with JMX server as MBean [org.springframework.boot:type=Endpoint,name=healthEndpoint]
08:48:12.296 [restartedMain] INFO  o.a.c.spring.boot.RoutesCollector - Loading additional Camel XML routes from: classpath:camel/*.xml
08:48:12.296 [restartedMain] INFO  o.a.c.spring.boot.RoutesCollector - Loading additional Camel XML rests from: classpath:camel-rest/*.xml
08:48:12.296 [restartedMain] INFO  o.a.camel.spring.SpringCamelContext - Apache Camel 2.18.1.redhat-000021 (CamelContext: camel) is starting
08:48:12.296 [restartedMain] INFO  o.a.c.m.ManagedManagementStrategy - JMX is enabled
08:48:12.338 [restartedMain] INFO  o.a.c.i.DefaultRuntimeEndpointRegistry - Runtime endpoint registry is in extended mode gathering usage statistics of all incoming and outgoing endpoints (cache limit: 1000)
08:48:12.402 [restartedMain] INFO  o.a.camel.spring.SpringCamelContext - 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
08:48:12.417 [restartedMain] INFO  o.a.camel.spring.SpringCamelContext - Route: simple-route started and consuming from: timer://foo?period=2000
08:48:12.420 [restartedMain] INFO  o.a.camel.spring.SpringCamelContext - Total 1 routes, of which 1 are started.
08:48:12.420 [restartedMain] INFO  o.a.camel.spring.SpringCamelContext - Apache Camel 2.18.1.redhat-000021 (CamelContext: camel) started in 0.124 seconds
08:48:12.421 [restartedMain] INFO  o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-0.0.0.0-8080"]
08:48:12.422 [restartedMain] INFO  o.a.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-0.0.0.0-8080"]
08:48:12.422 [restartedMain] INFO  o.a.tomcat.util.net.NioSelectorPool - Using a shared selector for servlet write/read
08:48:12.442 [restartedMain] INFO  o.s.b.c.e.t.TomcatEmbeddedServletContainer - Tomcat started on port(s): 8080 (http)
08:48:12.444 [restartedMain] INFO  org.mycompany.Application - Started Application in 4.028 seconds (JVM running for 119.873)
-----------
08:48:13.421 [Camel (camel) thread #2 - timer://foo] INFO  simple-route - ==== =====.:::hey I am a transformer!
08:48:15.422 [Camel (camel) thread #2 - timer://foo] INFO  simple-route - ==== =====.:::hey I am a transformer!

{code}

> Server adapter: hot-deployment of SpringBoot app upon code changes for SpringBoot is broken
> -------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-27059
>                 URL: https://issues.redhat.com/browse/JBIDE-27059
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.14.0.AM1
>            Reporter: Josef Kopriva
>            Assignee: André Dietisheim
>            Priority: Major
>              Labels: openshift_v3, server_adapter
>             Fix For: 4.14.0.Final
>
>
> Important: the demo project used for this fuse-on-openshift only works with *Java 8* (wont with java 11).
> I am using this class for testing: all source is there:
> https://github.com/jbosstools/jbosstools-openshift/blob/master/itests/org.jboss.tools.openshift.ui.bot.test/src/org/jboss/tools/openshift/ui/bot/test/application/v3/adapter/SpringBootTest.java
> Everything works as expected, until I change the code, afterwards code is synching to pod, but the the log for pod is not changing accordingly to code changes.
> Project:
> https://github.com/jbosstools/jbosstools-openshift/blob/master/itests/org.jboss.tools.openshift.ui.bot.test/resources/fuse-on-openshift.zip
> mvn parameters:
> -Dkubernetes.master=https://api.openshift4-crs.crs.codereadyqe.com:6443/
> -Dkubernetes.namespace=fuse-on-openshift
> -Dkubernetes.auth.basic.username=xxx
> -Dkubernetes.auth.basic.password=xxx
> -Dfabric8.mode=openshift
> -Dkubernetes.trust.certificates=true
> -Dfabric8.build.strategy=s2i
> -Dkubernetes.auth.tryServiceAccount=false
> -Dfabric8.generator.from=fabric8/s2i-java
> -Dfabric8.generator.fromMode=docker
> -Dkubernetes.auth.tryKubeConfig=false
> Tested in:
> Red Hat CodeReady Studio
> Version: 12.14.0.AM1
> Build id: AM1-v20200123-0055-B5802
> Build date: 20200123-0055



--
This message was sent by Atlassian Jira
(v7.13.8#713008)



More information about the jbosstools-issues mailing list