0

Can't deploy application with ZSS dependency

asked 2017-02-14 09:26:08 +0800

Reynik gravatar image Reynik
1 1

updated 2017-02-14 09:32:01 +0800

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?

delete flag offensive retag edit

Comments

can you try with version 3.9.1?

chillworld ( 2017-02-14 09:50:03 +0800 )edit

I 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 )edit

that'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 )edit

I 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 )edit

well, the class comes from zcommons dependency. is that dependency attached?

chillworld ( 2017-02-14 15:01:24 +0800 )edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2017-02-14 09:26:08 +0800

Seen: 28 times

Last updated: Feb 14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More