0

java.lang.NoClassDefFoundError: bsh/NameSpace

asked 2008-11-18 15:29:02 +0800

YamilBracho gravatar image YamilBracho
1722 2

Hi.
I am getting thios error while create a list from my dao class. My code is :
<tree id="toc">
<treechildren>
<zscript>
import org.bcv.sace.conceptoindicador.*;
List parentList = new ConceptoIndicadorDAO().findAll();
</zscript>
<treeitem label="${each.nombre}" value="{each.url}" forEach="" />
</treechildren>
</tree>

I would like to fill a tree programatically.

Any hint ?

TIA
Yamil

delete flag offensive retag edit

7 Replies

Sort by ยป oldest newest

answered 2008-11-18 15:48:08 +0800

ziccardi gravatar image ziccardi
321 7

Do you have bsh.jar in your classpath?

link publish delete flag offensive edit

answered 2008-11-18 15:53:48 +0800

YamilBracho gravatar image YamilBracho
1722 2

Yes.
I added the directory structure as the ZK 3.51. The bsh.jar file is in the dist\lib\ext subdirectory...

link publish delete flag offensive edit

answered 2008-11-18 15:56:20 +0800

ziccardi gravatar image ziccardi
321 7

It must be directly under the WEB-INF/lib directory of your web project.

What files do you have directly inside the WEB-INF/lib directory?

link publish delete flag offensive edit

answered 2008-11-18 16:02:47 +0800

YamilBracho gravatar image YamilBracho
1722 2

I move bsh.jar but now it shows this message:

org.zkoss.xel.XelException: Unable to find a value for "nombre" in object of class "java.lang.String" using operator "."

My dao returns a list of ConceptoIndicador, and it is defined as :

public class ConceptoIndicador extends SaceBean
...

In SaceBean I have the instance vars (codigo, nombre, status) and its getter/setter methods...

link publish delete flag offensive edit

answered 2008-11-18 16:22:56 +0800

YamilBracho gravatar image YamilBracho
1722 2

I solved! It was a typo in the code...
Thanks ziccardi for your help and support

link publish delete flag offensive edit

answered 2010-08-25 08:29:30 +0800

SparkySpider gravatar image SparkySpider
444 1 3

Hi guys,

I have bsh.jar included in my classpath, version 5.0.3, but for some reason, I get an error:

java.lang.NoClassDefFoundError: bsh/NameSpace

This happens both when trying to view the "Visual Editor" in ZK Studio and also when trying a view a page.

Please advise,

Mark

link publish delete flag offensive edit

answered 2010-08-25 09:22:37 +0800

SparkySpider gravatar image SparkySpider
444 1 3

Solved my own problem. You said "MOVE" the file to the WEB-INF/lib directory, not "ADD IT TO YOUR BUILD PATH".

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-11-18 15:29:02 +0800

Seen: 1,672 times

Last updated: Aug 25 '10

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