-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I'm working with ZK 8.0.2.2 in Eclipse (with Maven) and everything is fine, but if I try to add the ZSS dependency
<dependency> <groupid>org.zkoss.zss</groupid> <artifactid>zss</artifactid> <version>3.8.0.1</version> </dependency>
I get these errors on deploying it on wildfly 10 through eclipse:
09:57:32,214 ERROR [org.zkoss.zk.ui.http.WebManager] (ServerService Thread Pool -- 64) Unable to load metainfo/zk/config.xml: java.lang.NoSuchMethodError: org.zkoss.lang.Strings.toString([B)Ljava/lang/String; at org.zkoss.zk.ui.sys.ConfigParser.parseConfigXml(ConfigParser.java:189) at org.zkoss.zk.ui.http.WebManager.<init>(WebManager.java:133) at org.zkoss.zk.ui.http.HttpSessionListener23.contextInitialized(HttpSessionListener23.java:141) at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187) at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:200) at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:171) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:234) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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) at org.jboss.threads.JBossThread.run(JBossThread.java:320) 09:57:32,216 INFO [org.zkoss.zk.ui.sys.ConfigParser] (ServerService Thread Pool -- 64) Parsing vfs:/C:/Users/Sasha/wildfly-10.1.0.Final/standalone/deployments/TestSS.war/WEB-INF/lib/zul-8.0.2.2.jar/metainfo/zk/zk.xml 09:57:32,225 INFO [org.zkoss.zk.ui.sys.ConfigParser] (ServerService Thread Pool -- 64) Parsing file:/C:/Users/Sasha/wildfly-10.1.0.Final/standalone/deployments/TestSS.war/WEB-INF/zk.xml 09:57:32,254 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 64) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./TestSS: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./TestSS: java.lang.NoSuchMethodError: org.zkoss.lang.Strings.toString([B)Ljava/lang/String; at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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) at org.jboss.threads.JBossThread.run(JBossThread.java:320) Caused by: java.lang.NoSuchMethodError: org.zkoss.lang.Strings.toString([B)Ljava/lang/String; at org.zkoss.zk.ui.sys.Registry.sign(Registry.java:117) at org.zkoss.zk.ui.http.SimpleWebApp.init(SimpleWebApp.java:60) at org.zkoss.zk.ui.http.WebManager.<init>(WebManager.java:233) at org.zkoss.zk.ui.http.HttpSessionListener23.contextInitialized(HttpSessionListener23.java:141) at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187) at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:200) at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:171) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:234) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82) ... 6 more 09:57:32,257 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "TestSS.war")]) - failure description: { "WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./TestSS" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./TestSS: java.lang.NoSuchMethodError: org.zkoss.lang.Strings.toString([B)Ljava/lang/String; Caused by: java.lang.NoSuchMethodError: org.zkoss.lang.Strings.toString([B)Ljava/lang/String;"}, "WFLYCTL0412: Required services that are not installed:" => ["jboss.undertow.deployment.default-server.default-host./TestSS"], "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined }
The application is a maven webapp with zk archetype and is a test, so it's pretty empty, it only has a zul file with a spreadsheet tag that load an empty excell file located in the books folder (the code is the same found in the zk spreadsheet documentation).
What am i doing wrong?
Try this. It's beacuse zpoi use old zcommon version
<dependency>
<groupId>org.zkoss.common</groupId>
<artifactId>zcommon</artifactId>
<version>8.5.0</version>
</dependency>
<dependency>
<groupId>org.zkoss.poi</groupId>
<artifactId>zpoi</artifactId>
<version>3.9.7</version>
<exclusions>
<exclusion>
<groupId>org.zkoss.common</groupId>
<artifactId>zcommon</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.zkoss.zss</groupId>
<artifactId>zss</artifactId>
<version>3.8.0.1</version>
</dependency>
Hi Reynik, I'm facing the same problem with ZK 8.5.0 and spreadsheet 3.8.0.1. Please, did you solve this problem?
I tried to include dependency common/zcommon. It does not help (I think it's included automatically?).
(I'm sorry, it should be a comment to the question but I don't see an option to add it as a comment.)
Asked: 2017-02-14 09:26:08 +0800
Seen: 56 times
Last updated: Nov 05 '18
Build web application without any zul files
zkspringmvc jar licence is GPL ?
Custom component that extends Textbox does not fire onChange event
java.lang.NullPointerException to update to zk 8.0.1
"Spring Session" + ZK + "Spring core" @Listen method refresh the screen
zk8 client side binding to a viewmodel command seems not to work
can you try with version 3.9.1?
chillworld ( 2017-02-14 09:50:03 +0800 )editI just tried but maven can't find the artifact when update the project, is it possible that the 3.9.1 release is only for EE users?
Reynik ( 2017-02-14 10:15:22 +0800 )editthat's possible, but your error is so strange : java.lang.NoSuchMethodError: org.zkoss.lang.Strings.toString([B)Ljava/lang/String => normally every Object has the toString method.
chillworld ( 2017-02-14 12:07:26 +0800 )editI know, and it's even stranger if you think that is the ZSS dependency to make appear the error. Thank you anyway for your answers.
Reynik ( 2017-02-14 13:53:52 +0800 )editwell, the class comes from zcommons dependency. is that dependency attached?
chillworld ( 2017-02-14 15:01:24 +0800 )edit