0

Class not found in namespace

asked 2011-04-28 09:00:07 +0800

zklife gravatar image zklife
21 1

updated 2011-04-28 09:01:00 +0800

I create HelloWorld.zul and WorkingThread.java.
The code :
HelloWorld.zul :
<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
<window title="Demo of Server Push">
<zscript>
<![CDATA[
import test.WorkingThread;
WorkingThread thread;
void startServerpush() {
desktop.enableServerPush(true);
thread = new WorkingThread(info);
thread.start();
}
void stopServerpush() {
thread.setDone();
desktop.enableServerPush(false);
}
]]>
</zscript>
<vbox>
<button label="Start Server Push" onClisk="startServerpush()" />
<button label="Stop Server Push" onClick="stopServerpush()" />
<label id="info"/>
</vbox>
</window>
</zk>
WorkingThread.java:
package test;

import org.zkoss.lang.Threads;
import org.zkoss.zk.ui.Desktop;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zul.Label;

public class WorkingThread extends Thread {
private final Desktop _desktop;
private final Label _info;
private int _cnt;
private boolean _ceased;
public WorkingThread(Label info){
_desktop = info.getDesktop();
_info = info;
}
public void run(){
try{
while(!_ceased){
Threads.sleep(2000);
Executions.activate(_desktop);
try{
_info.setValue(Integer.toString(++_cnt));
}catch(RuntimeException e){
throw e;
}catch(Error e){
throw e;
}finally{
Executions.deactivate(_desktop);
}
}
}catch(InterruptedException e){
e.printStackTrace();
}
}
public void setDone(){
_ceased = true;
}
}


When I Start the server,Tomcat point out:
2011-4-28 21:53:24 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/Program Files/Java/jre6/bin/client;D:/Program Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;D:\Program Files\Java\jdk1.6.0_24\bin;D:\Program Files\MySQL\MySQL Server 5.0\bin;
2011-4-28 21:53:25 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2011-4-28 21:53:25 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 431 ms
2011-4-28 21:53:25 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2011-4-28 21:53:25 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.30
2011-4-28 21:53:25 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2011-4-28 21:53:25 org.zkoss.zk.ui.http.WebManager <init>:111
信息: Starting ZK 5.0.5 EE (build: 2010110316)
2011-4-28 21:53:25 org.zkoss.zk.ui.sys.ConfigParser parseConfigXml:148
信息: Loading system default
2011-4-28 21:53:25 org.zkoss.zk.ui.sys.ConfigParser parse:259
信息: Parsing jndi:/localhost/helloworld/WEB-INF/zk.xml
2011-4-28 21:53:26 org.zkoss.zk.ui.sys.ConfigParser checkVersion:103
信息: Ingore jar:file:/E:/Eclipse_workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/helloworld/WEB-INF/lib/zkex.jar!/metainfo/zk/lang-addon.xml
Cause: version 3.5.2 not supported
2011-4-28 21:53:26 org.zkoss.zk.ui.util.Configuration invokeWebAppInits:682
严重: Failed to invoke class org.zkoss.zkmax.init.WebAppInit
java.lang.NoClassDefFoundError: org/zkoss/zkex/rt/Runtime
at org.zkoss.zkmax.au.http.AuDownloader.init(AuDownloader.java:81)
at org.zkoss.zkmax.init.WebAppInit.init(WebAppInit.java:28)
at org.zkoss.zk.ui.util.Configuration.invokeWebAppInits(Configuration.java:680)
at org.zkoss.zk.ui.impl.AbstractWebApp.init(AbstractWebApp.java:205)
at org.zkoss.zk.ui.http.SimpleWebApp.init(SimpleWebApp.java:59)
at org.zkoss.zk.ui.http.WebManager.<init>(WebManager.java:181)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.init(DHtmlLayoutServlet.java:111)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.ClassNotFoundException: org.zkoss.zkex.rt.Runtime
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1436)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1282)
... 24 more
2011-4-28 21:53:26 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2011-4-28 21:53:26 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2011-4-28 21:53:26 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/35 config=null
2011-4-28 21:53:26 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2011-4-28 21:53:26 org.apache.catalina.startup.Catalina start
信息: Server startup in 1586 ms
2011-4-28 21:58:26 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet zkLoader threw exception
org.zkoss.zk.ui.UiException: Sourced file: inline evaluation of: `` import test.WorkingThread; WorkingThread thread; void startServe . . . '' : Typed variable declaration : Class: WorkingThread not found in namespace : at Line: 7 : in file: inline evaluation of: `` import test.WorkingThread; WorkingThread thread; void startServe . . . '' : WorkingThread

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.zkoss.lang.Classes.newInstance(Classes.java:76)
at org.zkoss.lang.Exceptions.wrap(Exceptions.java:162)
at org.zkoss.zk.ui.UiException$Aide.wrap(UiException.java:44)
at org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:137)
at org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:341)
at org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:847)
at org.zkoss.zk.ui.impl.UiEngineImpl.execNonComponent(UiEngineImpl.java:851)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:651)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:596)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:730)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:685)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:629)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:661)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:629)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:596)
at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:382)
at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:305)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:225)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)
Caused by: Sourced file: inline evaluation of: `` import test.WorkingThread; WorkingThread thread; void startServe . . . '' : Typed variable declaration : Class: WorkingThread not found in namespace : at Line: 7 : in file: inline evaluation of: `` import test.WorkingThread; WorkingThread thread; void startServe . . . '' : WorkingThread

at bsh.BSHAmbiguousName.toClass(Unknown Source)
at bsh.BSHType.getType(Unknown Source)
at bsh.BSHTypedVariableDeclaration.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:134)
... 31 more
2011-4-28 21:58:26 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet zkLoader threw exception
org.zkoss.zk.ui.UiException: Sourced file: inline evaluation of: `` import test.WorkingThread; WorkingThread thread; void startServe . . . '' : Typed variable declaration : Class: WorkingThread not found in namespace : at Line: 7 : in file: inline evaluation of: `` import test.WorkingThread; WorkingThread thread; void startServe . . . '' : WorkingThread

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.zkoss.lang.Classes.newInstance(Classes.java:76)
at org.zkoss.lang.Exceptions.wrap(Exceptions.java:162)
at org.zkoss.zk.ui.UiException$Aide.wrap(UiException.java:44)
at org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:137)
at org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:341)
at org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:847)
at org.zkoss.zk.ui.impl.UiEngineImpl.execNonComponent(UiEngineImpl.java:851)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:651)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:596)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:730)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:685)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:629)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:661)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:629)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:596)
at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:382)
at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:305)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:225)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)
Caused by: Sourced file: inline evaluation of: `` import test.WorkingThread; WorkingThread thread; void startServe . . . '' : Typed variable declaration : Class: WorkingThread not found in namespace : at Line: 7 : in file: inline evaluation of: `` import test.WorkingThread; WorkingThread thread; void startServe . . . '' : WorkingThread

at bsh.BSHAmbiguousName.toClass(Unknown Source)
at bsh.BSHType.getType(Unknown Source)
at bsh.BSHTypedVariableDeclaration.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:134)
... 31 more

I don't know how to solve it!
Could help me. Thanks!

delete flag offensive retag edit

12 Replies

Sort by » oldest newest

answered 2011-04-28 12:00:39 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

You'll need the ZK Enterprise Edition for the ServerPush-Feature:

http://www.zkoss.org/product/edition.dsp

Cheers, Maik

link publish delete flag offensive edit

answered 2011-04-28 12:18:40 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

I believe he has that because of this log message:

信息: Starting ZK 5.0.5 EE (build: 2010110316)

But I believe that an upgrade from 3.5.2 wasn't done properly because of this:

信息: Ingore jar:file:/E:/Eclipse_workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/helloworld/WEB-INF/lib/zkex.jar!/metainfo/zk/lang-addon.xml
Cause: version 3.5.2 not supported

The jar's need to be from the same version before anything else happens.

link publish delete flag offensive edit

answered 2011-04-28 20:39:59 +0800

zklife gravatar image zklife
21 1

Thanks mjablonski and caclark,but I am still don't know how to solve the problem。

link publish delete flag offensive edit

answered 2011-04-29 07:13:04 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

Well, the error message clearly shows that zkex.jar is 3.5.2. You can't run that with other ZK version 5.x jar's. Remove all the ZK jar's from your WEB-INF/lib. Extract all the jar's from the same distribution jar file.

link publish delete flag offensive edit

answered 2011-04-29 07:37:37 +0800

zklife gravatar image zklife
21 1

To caclark:
it also has problem

2011-4-29 20:35:54 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/Program Files/Java/jre6/bin/client;D:/Program Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;D:\Program Files\Java\jdk1.6.0_24\bin;D:\Program Files\MySQL\MySQL Server 5.0\bin;
2011-4-29 20:35:54 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2011-4-29 20:35:54 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 436 ms
2011-4-29 20:35:54 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2011-4-29 20:35:54 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.30
2011-4-29 20:35:54 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2011-4-29 20:35:55 org.zkoss.zk.ui.http.WebManager <init>:111
信息: Starting ZK 5.0.5 EE (build: 2010110316)
2011-4-29 20:35:55 org.zkoss.zk.ui.sys.ConfigParser parseConfigXml:148
信息: Loading system default
2011-4-29 20:35:55 org.zkoss.zk.ui.sys.ConfigParser parse:259
信息: Parsing jndi:/localhost/ZKtest/WEB-INF/zk.xml
2011-4-29 20:35:56 org.zkoss.zkex.init.WebAppInit init:29
警告: This is an evaluation copy of ZK EE and will terminate after sixty days from the first date of installation. Should you require an open source license or commercial license for ZK EE please contact us at info@zkoss.org for more information. Alternatively you can download ZK CE which is licensed under the LGPL.
2011-4-29 20:35:56 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2011-4-29 20:35:56 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2011-4-29 20:35:56 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/26  config=null
2011-4-29 20:35:56 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2011-4-29 20:35:56 org.apache.catalina.startup.Catalina start
信息: Server startup in 1655 ms
2011-4-29 20:35:57 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet zkLoader threw exception
org.zkoss.zk.ui.UiException: Sourced file: inline evaluation of: ``    		 			import test.WorkingThread; 			WorkingThread thread; 			void startServe . . . '' : Typed variable declaration : Class: WorkingThread not found in namespace : at Line: 7 : in file: inline evaluation of: ``    		 			import test.WorkingThread; 			WorkingThread thread; 			void startServe . . . '' : WorkingThread 

	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at org.zkoss.lang.Classes.newInstance(Classes.java:76)
	at org.zkoss.lang.Exceptions.wrap(Exceptions.java:162)
	at org.zkoss.zk.ui.UiException$Aide.wrap(UiException.java:44)
	at org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:137)
	at org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:341)
	at org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:847)
	at org.zkoss.zk.ui.impl.UiEngineImpl.execNonComponent(UiEngineImpl.java:851)
	at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:651)
	at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:596)
	at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:730)
	at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:685)
	at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:629)
	at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:661)
	at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:629)
	at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:596)
	at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:382)
	at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:305)
	at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:225)
	at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:146)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	at java.lang.Thread.run(Unknown Source)
Caused by: Sourced file: inline evaluation of: ``    		 			import test.WorkingThread; 			WorkingThread thread; 			void startServe . . . '' : Typed variable declaration : Class: WorkingThread not found in namespace : at Line: 7 : in file: inline evaluation of: ``    		 			import test.WorkingThread; 			WorkingThread thread; 			void startServe . . . '' : WorkingThread 

	at bsh.BSHAmbiguousName.toClass(Unknown Source)
	at bsh.BSHType.getType(Unknown Source)
	at bsh.BSHTypedVariableDeclaration.eval(Unknown Source)
	at bsh.Interpreter.eval(Unknown Source)
	at bsh.Interpreter.eval(Unknown Source)
	at org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:134)
	... 31 more

link publish delete flag offensive edit

answered 2011-04-29 12:09:32 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

It's probably caused by you not compiling WorkingThread.java into your WEB-INF/classes directory

link publish delete flag offensive edit

answered 2011-04-30 04:08:18 +0800

zklife gravatar image zklife
21 1

caclark:

link publish delete flag offensive edit

answered 2011-04-30 04:08:19 +0800

zklife gravatar image zklife
21 1

caclark:

link publish delete flag offensive edit

answered 2011-04-30 04:14:15 +0800

zklife gravatar image zklife
21 1

caclark:
Thank you very much.There is a problem with Eclipse,it hasn't compile auto.

I meet another problem:When I create a new zk project in the eclipse,and it is marked with crosses but it could run normal.
I don't know why it marked with crosses....

link publish delete flag offensive edit

answered 2011-04-30 04:27:03 +0800

zklife gravatar image zklife
21 1

I has found the problem and solve it ,thanks ,thanks very much!
Best wish.

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: 2011-04-28 09:00:07 +0800

Seen: 1,311 times

Last updated: Aug 18 '11

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