asked
2020-11-29 06:18:37 +0800
RomanZK 1 ● 1 I get the following error when deploying my zk spring boot app to payara 5 app server.
Caused by: java.lang.IllegalStateException: ServletConfig has not been initialized
at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:200)
at org.springframework.web.servlet.FrameworkServlet.destroy(FrameworkServlet.java:863)
at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1797)
... 78 more
----- Root Cause -----
Caused by: java.lang.IllegalStateException: ZK WebManager already exists. Could not initialize via Spring Boot configuration.
at org.zkoss.zkspringboot.ZkAutoConfiguration$1.contextInitialized(ZkAutoConfiguration.java:90)
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:5178)
at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:681)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5756)
... 73 more
This only happens when I use the zk spring boot starter. I have deployed a normal spring mvc app (i.e. without zk) to payara 5
and it works fine.
I have been able to trace the exact line to ZkAutoConfiguration.java:90 in the zk spring boot autoconfig jar.
I have no intention of using zats for this deployment to payara 5. Any ideas what could be the issue ?
Would appreciate help on this.
I am using zk 9.0.0.1 CE.
Regards,