[JBoss JIRA] (JBIDE-26990) Hibernate Tools 4.12 not working with Eclipse 4.12 (or 4.13)
by Jeff MAURY (Jira)
[ https://issues.redhat.com/browse/JBIDE-26990?page=com.atlassian.jira.plug... ]
Jeff MAURY updated JBIDE-26990:
-------------------------------
Sprint: devex #179 Jan/Feb 2020, devex #180 Feb/Mar 2020 (was: devex #179 Jan/Feb 2020)
> Hibernate Tools 4.12 not working with Eclipse 4.12 (or 4.13)
> ------------------------------------------------------------
>
> Key: JBIDE-26990
> URL: https://issues.redhat.com/browse/JBIDE-26990
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: hibernate
> Affects Versions: 4.12.0.Final
> Reporter: Josef Kopriva
> Assignee: Josef Kopriva
> Priority: Major
> Fix For: 4.14.0.Final
>
>
> This is copied from thread: https://developer.jboss.org/message/991358?et=watches.email.thread#991358
> {code:java}
> Hi All,
> I installed the plugin and configured everything. Pretty simple. But it won’t work.
> No problems connecting to the database via JDBC.
> The problem is that I keep getting null pointer exceptions in Eclipse when I click on the Configuration and Session Factory.
> I have tried every configuration available, but no luck.
> If someone got it to work, I would appreciate a tip or five and maybe some screenshots. Or a link to some detailed configuration instructions.
>
> I’m running:
> Eclipse 2019-09 (4.13)
> JBoss Hibernate Tools Plugin 4.12
> Hibernate 5.4.2
> JPA 2.1
> MySQL 5.1
> I tried Eclipse 2019-06 (4.12) and that didn’t work, either.
> If there is more information that I could supply, I would be happy to post it, but I think I just need some detailed instructions.
> {code}
> cc: [~jeffmaury] [~koen.aers]
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (JBIDE-26987) Deprecate vpe/forge/jst components
by Jeff MAURY (Jira)
[ https://issues.redhat.com/browse/JBIDE-26987?page=com.atlassian.jira.plug... ]
Jeff MAURY updated JBIDE-26987:
-------------------------------
Sprint: devex #179 Jan/Feb 2020, devex #180 Feb/Mar 2020 (was: devex #179 Jan/Feb 2020)
> Deprecate vpe/forge/jst components
> ----------------------------------
>
> Key: JBIDE-26987
> URL: https://issues.redhat.com/browse/JBIDE-26987
> Project: Tools (JBoss Tools)
> Issue Type: Task
> Components: central, forge, jst, visual-page-editor-core
> Affects Versions: 4.13.0.Final
> Reporter: Stephane Bouchet
> Assignee: Jeff MAURY
> Priority: Major
> Fix For: 4.14.0.Final
>
> Attachments: Capture d’écran de 2019-12-19 10-55-02.png, Capture d’écran de 2019-12-19 10-55-16.png
>
>
> Mark following components as not fully tested anymore :
> - VPE
> - Forge
> - JST
> The task is to communicate theses components are not yet removed from JBossTools/Studio, but are not anymore fully tested.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (JBIDE-27016) Polish odo based explorer
by Jeff MAURY (Jira)
[ https://issues.redhat.com/browse/JBIDE-27016?page=com.atlassian.jira.plug... ]
Jeff MAURY updated JBIDE-27016:
-------------------------------
Sprint: devex #179 Jan/Feb 2020, devex #180 Feb/Mar 2020 (was: devex #179 Jan/Feb 2020)
> Polish odo based explorer
> -------------------------
>
> Key: JBIDE-27016
> URL: https://issues.redhat.com/browse/JBIDE-27016
> Project: Tools (JBoss Tools)
> Issue Type: Task
> Components: openshift
> Affects Versions: 4.14.0.AM1
> Reporter: Jeff MAURY
> Assignee: Jeff MAURY
> Priority: Major
> Fix For: 4.14.0.Final
>
>
> Tasks to be completed:
> * add icons to the tree
> * implement delete handlers
> * Update component state after push
> * OpenConsole DashBoard
> * Describe Application
> * Component
> ** Create URL
> ** Create Storage
> ** Describe
> ** Link Component
> ** Link Service
> ** Debug
> ** Undeploy
> ** Delete
> * Service
> ** Link Component
> ** Describe
> ** Delete
> * URL
> ** Open In Browser
> ** Delete
> * Storage
> ** Delete
> *
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (JBIDE-26893) Create universal template and label that would accommodate different rhel needed by interop testing team
by Jeff MAURY (Jira)
[ https://issues.redhat.com/browse/JBIDE-26893?page=com.atlassian.jira.plug... ]
Jeff MAURY updated JBIDE-26893:
-------------------------------
Sprint: devex #179 Jan/Feb 2020, devex #180 Feb/Mar 2020 (was: devex #179 Jan/Feb 2020)
> Create universal template and label that would accommodate different rhel needed by interop testing team
> --------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-26893
> URL: https://issues.redhat.com/browse/JBIDE-26893
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: integration-tests, qa
> Affects Versions: 4.13.0.Final
> Reporter: Ondrej Dockal
> Assignee: Ondrej Dockal
> Priority: Major
> Labels: jenkins
> Fix For: 4.14.0.Final
>
>
> We would like to use universal label that would cover different rhel versions that are required by interop testing. The idea is that we will keep one/two label for interop testing slave: rhel-interop (and possibly for both stream, so rhel7-interop and rhel8-interop), which would have used image: rhel-interop-7(8)-snapshot that would have actually needed rhel version to test. During provisioning we will replace snapshot with proper rhel. This way we can keep these two labels and do not need to change interop test job label all the time via PR in cci-config repo.
> Reqs:
> * UMB trigger for interop rhel to run provision job with
> * job will be parametrized based on rhel version given by umb message
> * jenkins provisioning job build description needs to be updated to have available info about rhel version
>
> Pros:
> * do not need to change code via PR every time there is new bits to test
> * probably can be fully automated
> Cons:
> * only one version to test at a time
> * complex and possibly unstable?
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (JBIDE-27059) Server adapter: hot-deployment of SpringBoot app upon code changes for SpringBoot is broken
by André Dietisheim (Jira)
[ https://issues.redhat.com/browse/JBIDE-27059?page=com.atlassian.jira.plug... ]
André Dietisheim edited comment on JBIDE-27059 at 2/18/20 4:27 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/...] && 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 a transformer!{code}
and
{code}==== =====.:::hey I am a transformer!{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@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@47995857: startup date [Tue Feb 18 08:47:01 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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@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@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@4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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@4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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}
[~jkopriva] What am I missing?
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/...] && 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 a transformer!{code}
and
{code}==== =====.:::hey I am a transformer!{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@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@47995857: startup date [Tue Feb 18 08:47:01 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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@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@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@4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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@4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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...
> 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...
> 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)
6 years, 1 month
[JBoss JIRA] (JBIDE-27059) Server adapter: hot-deployment of SpringBoot app upon code changes for SpringBoot is broken
by André Dietisheim (Jira)
[ https://issues.redhat.com/browse/JBIDE-27059?page=com.atlassian.jira.plug... ]
André Dietisheim edited comment on JBIDE-27059 at 2/18/20 3:24 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/...] && 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 a transformer!{code}
and
{code}==== =====.:::hey I am a transformer!{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@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@47995857: startup date [Tue Feb 18 08:47:01 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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@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@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@4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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@4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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/...] && 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@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@47995857: startup date [Tue Feb 18 08:47:01 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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@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@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@4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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@4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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...
> 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...
> 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)
6 years, 1 month
[JBoss JIRA] (JBIDE-27059) Server adapter: hot-deployment of SpringBoot app upon code changes for SpringBoot is broken
by André Dietisheim (Jira)
[ https://issues.redhat.com/browse/JBIDE-27059?page=com.atlassian.jira.plug... ]
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/...] && 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@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@47995857: startup date [Tue Feb 18 08:47:01 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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@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@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@4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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@4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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/...] && 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@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@47995857: startup date [Tue Feb 18 08:47:01 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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@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@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@4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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@4b86057b: startup date [Tue Feb 18 08:48:11 UTC 2020]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@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...
> 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...
> 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)
6 years, 1 month