koywang / run-jetty-run

Automatically exported from code.google.com/p/run-jetty-run
0 stars 0 forks source link

Classloader caused error with Beanshell #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
related 
http://sourceforge.net/tracker/?func=detail&aid=3165647&group_id=152762&atid=785
191.

If you run the following example in ZK 5.0.6-FL, you will get an exception 
error about "SEVERE: >>java.lang.NoClassDefFoundError: org/zkoss/zul/paging 
(wrong name: org/zkoss/zul/Paging)"

For example,

<zk>
<zscript><![CDATA[
Executions.createComponentsDirectly("<zk><paging 
id=\"paging\"/>${paging}</zk>", "zul", null, null);
]]></zscript>
</zk>

The problem is there exsit a org.zkoss.zul.Paging Class in java classpath ,
and when we try to reach org.zkoss.zul.paging ( when resolving ${paging} in 
beanshell) ,

it consider as a wrong name. (but we expect it's a ClassNotFound)

java.lang.NoClassDefFoundError: org/zkoss/zul/paging (wrong name: 
org/zkoss/zul/Paging)

Plan to ignore all the NoClassDefFoundError in WebappClassloader.
(What a smart bug...)

Original issue reported on code.google.com by tonylovejava on 15 Mar 2011 at 4:53

GoogleCodeExporter commented 9 years ago
Fixed since 2011/03/15 , committed in r85 .

Original comment by tonylovejava on 15 Mar 2011 at 5:24

GoogleCodeExporter commented 9 years ago
Add a more simple test case.

<zk>
<zscript><![CDATA[
Executions.createComponentsDirectly("<zk>${paging}</zk>", "zul", null, null);
]]></zscript>
</zk>

Original comment by tonylovejava on 15 Mar 2011 at 5:31