Clean tutorial project causes <custom-style /> missing until webserver rese

# I moved it from another forum, it was there by mistake.
# 
# I downloaded the "click me" application from the tutorial:
# 
# mvn -B archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=LATEST -DgroupId=org.test -DartifactId=webapp -Dversion=1.0-SNAPSHOT
# 
# It works fine until clean. It seems that cleaning this project must be followed by Glassfish restart or otherwise there are missing &lt;custom-style /&gt; tags in the app's HTML source. In effect, instead of a button, there is just a text "Click me" as seen in the screenshot.
# Below logs of build, run in the case where the app does not work properly. Screenshot and page source also attached.
# =====================================================================
# clean and build:
# Undeploying ...
# cd /home/art/projects/systemx/hedgeelleth/webapp; JAVA_HOME=/home/local/jmonkeyplatform/jdk /home/art/.jmonkeyplatform/v3.2.4-stable-sdk1/maven/bin/mvn clean install
# Scanning for projects...
# Some problems were encountered while building the effective model for org.test:webapp:war:1.0-SNAPSHOT
# 'dependencies.dependency.exclusions.exclusion.artifactId' for com.vaadin:vaadin:jar with value '*' does not match a valid id pattern. @ line 68, column 33
# 'dependencies.dependency.exclusions.exclusion.artifactId' for com.vaadin:vaadin:jar with value '*' does not match a valid id pattern. @ line 72, column 33
# 'dependencies.dependency.exclusions.exclusion.artifactId' for com.vaadin:vaadin:jar with value '*' does not match a valid id pattern. @ line 76, column 33
# 'dependencies.dependency.exclusions.exclusion.artifactId' for com.vaadin:vaadin:jar with value '*' does not match a valid id pattern. @ line 80, column 33
# 'dependencies.dependency.exclusions.exclusion.artifactId' for com.vaadin:vaadin:jar with value '*' does not match a valid id pattern. @ line 84, column 33
# 'dependencies.dependency.exclusions.exclusion.artifactId' for com.vaadin:vaadin:jar with value '*' does not match a valid id pattern. @ line 88, column 33
# It is highly recommended to fix these problems because they threaten the stability of your build.
# For this reason, future Maven versions might no longer support building such malformed projects.
# ------------------------------------------------------------------------
# Building My Application 1.0-SNAPSHOT
# ------------------------------------------------------------------------
# --- maven-clean-plugin:2.4.1:clean (default-clean) @ webapp ---
# Deleting /home/art/projects/systemx/hedgeelleth/webapp/target
# --- maven-resources-plugin:2.5:resources (default-resources) @ webapp ---
# [debug]
 execute contextualize
# Using 'UTF-8' encoding to copy filtered resources.
# skip non existing resourceDirectory /home/art/projects/systemx/hedgeelleth/webapp/src/main/resources
# --- vaadin-maven-plugin:14.1.27:prepare-frontend (default) @ webapp ---
# SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
# SLF4J: Defaulting to no-operation (NOP) logger implementation
# SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
# --- maven-compiler-plugin:2.3.2:compile (default-compile) @ webapp ---
# Compiling 1 source file to /home/art/projects/systemx/hedgeelleth/webapp/target/classes
# --- maven-resources-plugin:2.5:testResources (default-testResources) @ webapp ---
# [debug]
 execute contextualize
# Using 'UTF-8' encoding to copy filtered resources.
# skip non existing resourceDirectory /home/art/projects/systemx/hedgeelleth/webapp/src/test/resources
# --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ webapp ---
# No sources to compile
# --- maven-surefire-plugin:2.10:test (default-test) @ webapp ---
# No tests to run.
# Surefire report directory: /home/art/projects/systemx/hedgeelleth/webapp/target/surefire-reports
# -------------------------------------------------------
# T E S T S
# -------------------------------------------------------
# Results :
# Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
# --- maven-war-plugin:2.1.1:war (default-war) @ webapp ---
# Packaging webapp
# Assembling webapp [webapp]
 in 
[/home/art/projects/systemx/hedgeelleth/webapp/target/webapp-1.0-SNAPSHOT]
# Processing war project
# Copying webapp resources 
[/home/art/projects/systemx/hedgeelleth/webapp/src/main/webapp]
# Webapp assembled in [73 msecs]

# Building war: /home/art/projects/systemx/hedgeelleth/webapp/target/webapp-1.0-SNAPSHOT.war
# --- maven-install-plugin:2.3.1:install (default-install) @ webapp ---
# Installing /home/art/projects/systemx/hedgeelleth/webapp/target/webapp-1.0-SNAPSHOT.war to /home/art/.m2/repository/org/test/webapp/1.0-SNAPSHOT/webapp-1.0-SNAPSHOT.war
# Installing /home/art/projects/systemx/hedgeelleth/webapp/pom.xml to /home/art/.m2/repository/org/test/webapp/1.0-SNAPSHOT/webapp-1.0-SNAPSHOT.pom
# ------------------------------------------------------------------------
# BUILD SUCCESS
# ------------------------------------------------------------------------
# Total time: 9.701s
# Finished at: Thu Apr 30 12:47:04 CEST 2020
# Final Memory: 22M/219M
# ------------------------------------------------------------------------
# ===============================================================================================================================
# run:
# Deploying on GlassFish Server
# profile mode: false
# debug mode: false
# force redeploy: true
# Undeploying ...
# In-place deployment at /home/art/projects/systemx/hedgeelleth/webapp/target/webapp-1.0-SNAPSHOT
# ===============================================================================================================================
# glassfish:
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: visiting unvisited references
# Info: WELD-000411: Observer method [BackedAnnotatedMethod]
 public org.hibernate.validator.cdi.ValidationExtension.processAnnotatedType(@Observes ProcessAnnotatedType) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
# Info: WELD-000411: Observer method [BackedAnnotatedMethod]
 org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
# Info: WELD-000411: Observer method [BackedAnnotatedMethod]
 public org.hibernate.validator.cdi.ValidationExtension.processAnnotatedType(@Observes ProcessAnnotatedType) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
# Info: WELD-000411: Observer method [BackedAnnotatedMethod]
 org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
# Info: WELD-000411: Observer method [BackedAnnotatedMethod]
 private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
# Info: WELD-000411: Observer method [BackedAnnotatedMethod]
 private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
# WARN: WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.glassfish.jersey.ext.cdi1x.transaction.internal.WebAppExceptionHolder is deprecated from CDI 1.1!
# WARN: WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.glassfish.jersey.ext.cdi1x.transaction.internal.WebAppExceptionInterceptor is deprecated from CDI 1.1!
# WARN: WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.glassfish.jersey.ext.cdi1x.transaction.internal.TransactionalExceptionMapper is deprecated from CDI 1.1!
# WARN: WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.glassfish.jersey.ext.cdi1x.servlet.internal.CdiExternalRequestScope is deprecated from CDI 1.1!
# WARN: WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.glassfish.cdi.transaction.TransactionalInterceptorMandatory is deprecated from CDI 1.1!
# WARN: WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.glassfish.cdi.transaction.TransactionalInterceptorNever is deprecated from CDI 1.1!
# WARN: WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.glassfish.cdi.transaction.TransactionalInterceptorNotSupported is deprecated from CDI 1.1!
# WARN: WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.glassfish.cdi.transaction.TransactionalInterceptorRequired is deprecated from CDI 1.1!
# WARN: WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.glassfish.cdi.transaction.TransactionalInterceptorRequiresNew is deprecated from CDI 1.1!
# WARN: WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.glassfish.cdi.transaction.TransactionalInterceptorSupports is deprecated from CDI 1.1!
# WARN: WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class com.sun.faces.flow.FlowDiscoveryCDIHelper is deprecated from CDI 1.1!
# WARN: WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider$JaxRsParamProducer is deprecated from CDI 1.1!
# Severe: [admin-listener(2)]
 INFO com.vaadin.flow.server.osgi.OSGiAccess - Unable to detect used OSGi framework version due to null
# Severe: [admin-listener(2)]
 INFO com.vaadin.flow.server.startup.DevModeInitializer - Starting dev-mode updaters in /home/art/projects/systemx/hedgeelleth/webapp folder.
# Severe: [admin-listener(2)]
 INFO dev-updater - Visited 72 classes. Took 15 ms.
# Severe: [admin-listener(2)]
 INFO dev-updater - Skipping npm install.
# Severe: [admin-listener(2)]
 INFO dev-updater - Copying frontend resources from jar files ...
# Severe: [admin-listener(2)]
 INFO dev-updater - Visited 12 resources. Took 16 ms.
# Severe: [admin-listener(2)]
 INFO dev-updater - No js modules to update '/home/art/projects/systemx/hedgeelleth/webapp/target/frontend/generated-flow-imports.js' file
# Severe: [admin-listener(2)]
 INFO dev-webpack - Reusing webpack-dev-server running at http://localhost:38089
# Info: Initializing Soteria 1.0 for context '/webapp'
# Info: WebModule
[/webapp] ServletContext.log():Initializing AtmosphereFramework
# Info: Registering WebSocket filter for url pattern /*
# Info: Initializing Mojarra 2.3.2 ( 20170627-2139 e63598abf2ed2bb1a24674f308a734e0dce18a72) for context '/webapp'
# Severe: [admin-listener(2)]
 INFO com.vaadin.flow.server.startup.ServletDeployer - Automatically deploying Vaadin servlet with name com.vaadin.flow.server.startup.ServletDeployer to /*
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereHandler com.vaadin.flow.server.communication.PushAtmosphereHandler mapped to context-path: /*
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Installed the following AtmosphereInterceptor mapped to AtmosphereHandler com.vaadin.flow.server.communication.PushAtmosphereHandler
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Atmosphere is using org.atmosphere.util.VoidAnnotationProcessor for processing annotation
# Severe: [admin-listener(2)]
 INFO org.atmosphere.util.ForkJoinPool - Using ForkJoinPool java.util.concurrent.ForkJoinPool. Set the org.atmosphere.cpr.broadcaster.maxAsyncWriteThreads to -1 to fully use its power.
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol
# Severe: [admin-listener(2)]
 INFO org.atmosphere.container.JSR356AsyncSupport - JSR 356 Mapping path
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Installing Default AtmosphereInterceptors
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - org.atmosphere.interceptor.CorsInterceptor : CORS Interceptor Support
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - org.atmosphere.interceptor.CacheHeadersInterceptor : Default Response's Headers Interceptor
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - org.atmosphere.interceptor.PaddingAtmosphereInterceptor : Browser Padding Interceptor Support
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - org.atmosphere.interceptor.AndroidAtmosphereInterceptor : Android Interceptor Support
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Dropping Interceptor org.atmosphere.interceptor.HeartbeatInterceptor
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - org.atmosphere.interceptor.SSEAtmosphereInterceptor : SSE Interceptor Support
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - org.atmosphere.interceptor.JSONPAtmosphereInterceptor : JSONP Interceptor Support
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - org.atmosphere.interceptor.JavaScriptProtocol : Atmosphere JavaScript Protocol
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor : org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - org.atmosphere.interceptor.OnDisconnectInterceptor : Browser disconnection detection
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - org.atmosphere.interceptor.IdleResourceInterceptor : org.atmosphere.interceptor.IdleResourceInterceptor
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Set org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults to disable them.
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor CORS Interceptor Support with priority FIRST_BEFORE_DEFAULT
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor Default Response's Headers Interceptor with priority AFTER_DEFAULT
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor Browser Padding Interceptor Support with priority AFTER_DEFAULT
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor Android Interceptor Support with priority AFTER_DEFAULT
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor SSE Interceptor Support with priority AFTER_DEFAULT
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor JSONP Interceptor Support with priority AFTER_DEFAULT
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor Atmosphere JavaScript Protocol with priority AFTER_DEFAULT
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor with priority AFTER_DEFAULT
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor Browser disconnection detection with priority AFTER_DEFAULT
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor org.atmosphere.interceptor.IdleResourceInterceptor with priority BEFORE_DEFAULT
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Using EndpointMapper class org.atmosphere.util.DefaultEndpointMapper
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Using BroadcasterCache: org.atmosphere.cache.UUIDBroadcasterCache
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Default Broadcaster Class: org.atmosphere.cpr.DefaultBroadcaster
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Broadcaster Shared List Resources: false
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Broadcaster Polling Wait Time 100
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Shared ExecutorService supported: true
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Messaging ExecutorService Pool Size unavailable - Not instance of ThreadPoolExecutor
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Async I/O Thread Pool Size: 200
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Using AtmosphereResurceFactory: org.atmosphere.cpr.DefaultAtmosphereResourceFactory
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Invoke AtmosphereInterceptor on WebSocket message true
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - HttpSession supported: true
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Atmosphere is using org.atmosphere.inject.InjectableObjectFactory for dependency injection and object creation
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Atmosphere is using async support: org.atmosphere.container.JSR356AsyncSupport running under container: GlassFish Server Open Source Edition 5.0.1 using javax.servlet/3.0 and jsr356/WebSocket API
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Atmosphere Framework 2.4.30.slf4jvaadin1 started.
# Severe: [admin-listener(2)]
 INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor Track Message Size Interceptor using | with priority BEFORE_DEFAULT
# Info: Loading application [My_Application]
 at 
[/webapp]
# Info: My_Application was successfully deployed in 1,593 milliseconds.
# Severe: [http-listener-1(1)]
 WARN com.vaadin.flow.server.DefaultDeploymentConfiguration -
# ====================================================================
# Vaadin is running in DEBUG MODE.
# In order to run your application in production mode and disable debug features, you should enable it by setting the servlet init parameter productionMode to true.
# See https://vaadin.com/docs/v14/flow/production/tutorial-production-mode-basic.html for more information about the production mode.
# ===================================================

18243353.png
18243356.html (19.7 KB)