-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Im trying to install a new ZK Package through eclipse and the following error keep occurring: UndertowDeploymentInfoService: java.lang.ClassNotFoundException: org.zkoss.zk.ui.http.DHtmlLayoutServlet
I already tried to mannually copy the jars to the project, but the error persists.
It's always hard to comment on IDE specific issues... you never know which version/plugins/servers/run configs are used. Asking for all these and explaining them in a forum is usually not feasible.
So I tend to check if the problem exists outside the IDE first... e.g. just create a .war file and deploy it manually. Does it give the same errors? Does it contain all jar files you expect? (if something's missing you might already have your answer, if it works you might get a clue about what's different between the war file and the IDE run config)
When running on your server ('undertow' indicates wildfly or springboot configured to use undertow) can you check the runtime classpath? It is possible that jar files are somewhere in your project folder but not associated with a run configuration's classpath.
I personally prefer to be portable between IDEs and resolve dependencies via maven/gradle, and make sure the project also runs on a command line. Once that works, the project is usally runnable inside any IDE. Maybe it's worth the time to get the help of a tool to resolve dependencies.
Asked: 2019-01-12 04:01:14 +0800
Seen: 8 times
Last updated: Jan 15 '19