-
Bug
-
Resolution: Fixed
-
Blocker
-
8.0.0, 8.0.1
-
Security Level: Jimmy
-
None
-
JBAS015899: WildFly 8.2.1.Final
Linux Ubuntu 15.10 64 bits
-
ZK 8.0.2 S1
-
None
Pb with the release version of ZK 8.0.0. Exception happens at a server starts:
2016-02-05 11:57:15 INFO ContextLoader:325 - Root WebApplicationContext: initialization completed in 1132 ms
2016-02-05 11:57:15 DEBUG WebManager:107 - Starting WebManager at io.undertow.servlet.spec.ServletContextImpl@4b7c7f8d
2016-02-05 11:57:15 INFO WebManager:114 - Starting ZK 8.0.1 EE (build: 2016011915)
2016-02-05 11:57:15 INFO ConfigParser:164 - Loading system default
2016-02-05 11:57:15 DEBUG ClassLocator:128 - Loading vfs:/home/synox.lcl/aruille/wildfly-8.2.1.Final/standalone/deployments/test.war/WEB-INF/lib/zk-8.0.1.jar/metainfo/zk/config.xml
2016-02-05 11:57:15 DEBUG ClassLocator:128 - Loading vfs:/home/synox.lcl/aruille/wildfly-8.2.1.Final/standalone/deployments/test.war/WEB-INF/lib/zuti-8.0.1.jar/metainfo/zk/config.xml
2016-02-05 11:57:15 DEBUG ClassLocator:128 - Loading vfs:/home/synox.lcl/aruille/wildfly-8.2.1.Final/standalone/deployments/test.war/WEB-INF/lib/zkex-8.0.1.jar/metainfo/zk/config.xml
2016-02-05 11:57:15 DEBUG ClassLocator:128 - Loading vfs:/home/synox.lcl/aruille/wildfly-8.2.1.Final/standalone/deployments/test.war/WEB-INF/lib/zkmax-8.0.1.jar/metainfo/zk/config.xml
2016-02-05 11:57:15 DEBUG ClassLocator:128 - Loading vfs:/home/synox.lcl/aruille/wildfly-8.2.1.Final/standalone/deployments/test.war/WEB-INF/lib/zkbind-8.0.1.jar/metainfo/zk/config.xml
2016-02-05 11:57:15 DEBUG ClassLocator:117 - Adding resolved resource: zk
2016-02-05 11:57:15 DEBUG ClassLocator:117 - Adding resolved resource: zkex
2016-02-05 11:57:15 DEBUG ClassLocator:117 - Adding resolved resource: zkmax
2016-02-05 11:57:15 DEBUG ClassLocator:117 - Adding resolved resource: zuti
2016-02-05 11:57:15 DEBUG ClassLocator:117 - Adding resolved resource: zkbind
2016-02-05 11:57:15 DEBUG ConfigParser:174 - Loading vfs:/home/synox.lcl/aruille/wildfly-8.2.1.Final/standalone/deployments/test.war/WEB-INF/lib/zk-8.0.1.jar/metainfo/zk/config.xml
2016-02-05 11:57:15 DEBUG Interpreters:141 - Scripting language is added: Java, org.zkoss.zk.scripting.bsh.BSHInterpreter
2016-02-05 11:57:15 DEBUG Interpreters:141 - Scripting language is added: JavaScript, org.zkoss.zk.scripting.rhino.RhinoInterpreter
2016-02-05 11:57:15 DEBUG Interpreters:141 - Scripting language is added: Groovy, org.zkoss.zk.scripting.groovy.GroovyInterpreter
2016-02-05 11:57:15 DEBUG Interpreters:141 - Scripting language is added: Ruby, org.zkoss.zk.scripting.jruby.JRubyInterpreter
2016-02-05 11:57:15 DEBUG Interpreters:141 - Scripting language is added: Python, org.zkoss.zk.scripting.jython.JythonInterpreter
2016-02-05 11:57:15 DEBUG ConfigParser:174 - Loading vfs:/home/synox.lcl/aruille/wildfly-8.2.1.Final/standalone/deployments/test.war/WEB-INF/lib/zkex-8.0.1.jar/metainfo/zk/config.xml
2016-02-05 11:57:15 DEBUG ConfigParser:174 - Loading vfs:/home/synox.lcl/aruille/wildfly-8.2.1.Final/standalone/deployments/test.war/WEB-INF/lib/zkmax-8.0.1.jar/metainfo/zk/config.xml
2016-02-05 11:57:15 DEBUG ConfigParser:174 - Loading vfs:/home/synox.lcl/aruille/wildfly-8.2.1.Final/standalone/deployments/test.war/WEB-INF/lib/zuti-8.0.1.jar/metainfo/zk/config.xml
2016-02-05 11:57:15 ERROR ConfigParser:262 - Unable to load a listener, [null:vfs:/home/synox.lcl/aruille/wildfly-8.2.1.Final/standalone/deployments/test.war/WEB-INF/lib/zuti-8.0.1.jar/metainfo/zk/config.xml:16:12]
org.zkoss.zk.ui.UiException: Unknown listener: class org.zkoss.zuti.bind.ZutiPhaseListener
at org.zkoss.zk.ui.util.Configuration.addListener(Configuration.java:421)
at org.zkoss.zk.ui.sys.ConfigParser.parseListener(ConfigParser.java:260)
at org.zkoss.zk.ui.sys.ConfigParser.parseListeners(ConfigParser.java:255)
at org.zkoss.zk.ui.sys.ConfigParser.parseConfigXml(ConfigParser.java:192)
at org.zkoss.zk.ui.http.WebManager.<init>(WebManager.java:131)
at org.zkoss.zk.ui.http.HttpSessionListener23.contextInitialized(HttpSessionListener23.java:140)
at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:194)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Complete log attached, see logging.txt.
WORK PROPERLY WITH ZK 8.0.0-EVal version !!!!!
for me the problem happens because the method org.zkoss.zk.ui.util.Configuration.addListener with the arg klass = org.zkoss.zuti.bind.ZutiPhaseListener is called before the same method with the "klass" arg org.zkoss.bind.init.ZKBinderPhaseListeners.
=> So org.zkoss.zk.ui.util.Configuration._aggregations is not initialized !
i tested by generating a Maven project with the zk-ee-eval-archetype-webapp-spring-jpa :
spring.version : 4.1.2.RELEASE
hibernate.version : 4.3.5.Final
change database to com.h2database:h2:1.4.190
debug info
- zuti.jar/config.xml is loaded before zkbind.jar/config.xml which causes the bug (this does not always happen it depends on an undefined class loading order)
workaround
modify the zuti.jar\metainfo\zk\config.xml
<config> <config-name>zuti</config-name><!-- used to resolve dependency --> <depends>zkmax,zkbind</depends> .. </config>
this ensures the config.xml in zuti.jar is loaded after the config.xml in zkbind.jar