answered
2020-11-30 09:50:36 +0800
cor3000 6280 ● 2 ● 7 In order to deploy a springboot application into an existing application server (e.g. paraya/tomcat/wildfly ...) I assume you are building a war-file. When doing so you have to also configure zkspringboot to activate the war-file specific configuration.
this means the configuration should configure the HttpSessionListener in lines
78-80
and NOT run the block in lines 81-100
You have to set the application property:
zk.springboot-packaging=war
Then also remove the HttpSessionListener from your web.xml in case you added it.
If you prefer to configure ZK manually in your web.xml/zk.xml you don't need zkspringboot-autoconfig, especially in a war file desployment all the classical (without spring boot) configuration options are available.
In case my assumption was wrong about the deployment type please provide the related configuration leading to this error.
Besides this has nothing to do with ZATS, if you read the code carefully the configuration only activates when ZATS is NOT on the classpath (Line 76 @ConditionalOnMissingClass)
@ConditionalOnMissingClass("org.zkoss.zats.mimic.Zats")