0

Error on Tomcat Error

asked 2009-03-01 11:25:13 +0800

Yo gravatar image Yo
3

Hello,

I try to use ZK on my tomcat 6.0.14, but each time I start my server I have the following error



Unable to load /WEB-INF/zk.xml
java.lang.IllegalArgumentException: class org.zkoss.zkmax.au.http.SmartAuWriter must implement org.zkoss.zk.au.AuWriter
at org.zkoss.zk.au.AuWriters.setImplementationClass(AuWriters.java:55)
at org.zkoss.zk.ui.sys.ConfigParser.parseSystemConfig(ConfigParser.java:179)
at org.zkoss.zk.ui.sys.ConfigParser.parseConfigXml(ConfigParser.java:142)
at org.zkoss.zk.ui.http.WebManager.<init>(WebManager.java:116)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.init(DHtmlLayoutServlet.java:136)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

I confirm that I copyed all the zk's .jar in the ApacheDir/lib directory
Do you have any idea of what it miss in my server configuration ?

Thanks for your help

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2009-03-02 01:29:28 +0800

PeterKuo gravatar image PeterKuo
481 2

Did you follow as http://zkoss.org/doc/quickstart/ch02s02.html said:

Deploy ZK library

Unzip zk-bin-3.x.x.zip file, and copy the following jar files to the $TOMCAT_HOME\webapps\$PROJECT_NAME\WEB-INF\lib (ex.C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\myZK\WEB-INF\lib)

Or you may try zkstudio's way, as
http://zkoss.org/doc/quickstart/ch03s03.html

By default, tomcat6 search lib in project base, and does not use global library. Therefore, you better copy jars for zk in each project's /web-inf/lib

Hope this help.

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: 2009-03-01 11:25:13 +0800

Seen: 918 times

Last updated: Mar 02 '09

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