Thank You hawk for the great example! This is exactly what I'm doing, except for the fact that my components are Java components and they are developed using a MVVM approach. So in the "macro.jar" I have to include also java classes (the java class of each component and the view models) .
GiovanniDeMarco ( 2023-05-29 17:47:54 +0800 )editSo I have to "share" the ZK jars (otherwise I have a "ClassNotFound" exception for the ZK classes when I use my components).I tried to include them in the "macro.jar" and to directly put all the zk jars in the "lib" folder but the result is the same: after a deploy the "unknown message code" appears
GiovanniDeMarco ( 2023-05-29 17:49:43 +0800 )edit
increased karma for posting images and links
jeanher ( 2023-05-26 09:43:05 +0800 )editCould you show the error stack trace in server console log if any?
hawk ( 2023-05-26 12:00:46 +0800 )edithttps://www.zkoss.org/wiki/ZKDeveloper%27sReference/PackagingApplications#PackageZKAsaSharedLibrary
hawk ( 2023-05-26 12:02:07 +0800 )editHere is the link of the Stack Overflow post with similar problem in Tomcat. In my case I have no Exceptions in the Server logs!
GiovanniDeMarco ( 2023-05-26 16:43:43 +0800 )editThanks hawk for the link. I'm just a little confused: I'm not deploying EAR applications but WARs. As I said the reason I have to share ZK is 'cause I want to share Macro Components among different WARs. No problem for ZUL files but the Java classes of components won't work without sharing ZK jars.
GiovanniDeMarco ( 2023-05-26 22:09:47 +0800 )edit