0

zscript problems

asked 2008-04-16 22:11:26 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.



delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2008-04-16 23:05:09 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.

link publish delete flag offensive edit

answered 2008-04-18 01:21:26 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2008-04-16 22:11:26 +0800

Seen: 579 times

Last updated: Apr 18 '08

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