-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4909661
By: mcgredo
I've got a problem with zk not recognizing java classes.
Created a new WebApp project in Netbeans, and copied the zk jar files to the lib directory of the webapp.
I confirmed this by unpacking the war file created by netbeans; the war file contains the lib, lib/ext, lib/zkforge directories with the expected jar files.
When I attempt to refer to java files, for example by using
<window id="win" use="FooBar">
I get a server 500 error and a class cast exception on FooBar.
Likewise, when I use zscript tags, whenever I drop even simple java into the tag I get a 500 error, "bsh/Namespace NoClassDefFoundError".
So presumably it's not finding bean shell for whatever reason, despite the fact that the jar file is present in WEB-INF/lib/ext.
I suspect both of these problems are related.
Using Tomcat 6 as a container.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4909722
By: mcgredo
I think I found the problem--I was maintaining the structure of the distribution lib directory in the WEB-INF/lib folder, ie subdirectories for ext and zkforge. Putting all the subdirectory jars into the lib folder seems to solve it.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4912204
By: henrichen
That is correct. You have to "flat" the directory under WEB-INF/lib.
/ehnri
Asked: 2008-04-16 22:11:26 +0800
Seen: 579 times
Last updated: Apr 18 '08