Can not get zkdemo to work
Further. In installing Tomcat 6 I also installed the examples that came with Tomcat 6. Those examples all work.
Anyone.....
I'm still unable to successfully run the demo program. I uninstalled Tomcat 6, installed Tomcat 5.5 as that is the version referred to in the basic install documents. Still the same problem. I've checked that Java JDK is working correctly, which it is, have successfully compiled 'HelloWorldApp.java' program from the command prompt. JDK bin directory is in my system 'path' variable.
The only difference now from changing from Tomcat 6 to Tomcat 5.5 is that at least under 'List Applications' the demo program is now indicating 'true' for running but clicking on the demo program I get this 404 error, "The requested resource (/zk-demo-3.5.1/) is not available."
Any advice welcome.
Finally, got the the demo program to work. Reading the Apress Bokk (online), ZK... by Henri CHEN, page 10, instructions to install Tomcat 5.5 manually, via unzipping, there was reference to creating a "JAVA_HOME" environmental variable to the JDK installation directory. I checked my system, sure enough that system variable wasn't set. After setting it, rebooting, it now works. Why the setting wasn't set when I installed Tomcat 5.5 automatically, via the installer, I've got no idea.
Hope this helps others.
Steve.
In fact, tomcat won't set environment variable JAVA_HOME or PATH to you,
because you might have several version of JDK or JRE.
Steve,
I have a similar problem. I was just wondering if you finally installed ZK ?
It's so hard to setup this program... I am using TOMCAT5.5 and it's running fine but I just can't get a simple Zk-demo to run.
Did u find an easy and fast way to do it ?
Thanks'
Yan
No easy way, all I did was set the JAVA_HOME environmental variable to the JDK directory as mentioned above. I haven't begun any actual development/learning since then, will look at some simple tutorials over the weekend. As far as installing ZK, I don't think it's actually installed as such but merely copied to your development project folder (though I could be wrong). So when you start a new project, copy it again (again I could be wrong). This is what I'll come to grips with over the next few weeks.
Hi Steve,
I've tried to go through the all process by myself, installing JAVA JDK, Tomcat Server, and deploying zkdemo.war.
It goes smoothly. I guess you install Tomcat Server by zip file instead of installer since installer should ask you about the location of your Java JDK library.
By the way, did you read quick start guide?
Please feel free to give us feedback.
/robbie
Thanks Robbie and yes I did read that guide. Everything's working for me now, it was the other poster, yan, who is still having problems.
From what I know, you basically need to do the following:
1.Download tomcat and install it,
2.Download zkdemo and zk
3.Deploy zkdemo's war with tomcat,
4.add every jar you can find from zk library to zkdemo's lib directory (with no subfolders).
Let me know if this is not clear.
Regards,
rob
Check out this link (http://www.zkoss.org/doc/quickstart/ch07.html). It helped me setup the demo. make sure you have the right version of web.xml placed under WEB-INF folder of your web application.
That quick start link is highly recommended since the dev guide says copy these jars but neve rlists the jars. I assumed (correctly) that it has to be all jars in lib, but all Java developers know never to assume anything concerning Java:-)
I'm having this problem too: Tomcat Web Application Manager lists my zk webapp but browsing to it gives me a 404 "The requested resource (/myZk/) is not available.".
I have set JAVA_HOME to my JDK. Here's my directory contents...
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\myZk>ls -R WEB-INF index.zul web.xml WEB-INF=: lib WEB-INF\lib=: Filters.jar jasperreports.jar zhtml.jar bsh.jar jcommon.jar zk.jar commons-collections.jar jfreechart.jar zkex.jar commons-fileupload.jar jxl.jar zkplus.jar commons-io.jar poi.jar zml.jar commons-logging.jar timelinez.jar zul.jar fckez.jar zcommon.jar zweb.jar itext.jar zcommons-el.jar
EDIT: OK, I see my problem now (I'm not a big TomCat user!) I have web.xml too high in the directory structure. This might be made clearer in the quick start document (ZK-quickstart-5.0.0-RC.pdf) which has an ASCII art directory structure which is easy to misread...
+myZK +WEB-INF web.xml index.zul
Now I have a different problem :) Looks like the web.xml is not OK on my tomcat:
SEVERE: Context startup failed due to previous errors Oct 2, 2009 2:47:02 PM org.apache.tomcat.util.digester.Digester fatalError SEVERE: Parse Fatal Error at line 7 column 2: The markup in the document following the root element must be well-formed.
Is this some tomcat 6 magic?
@msemtd,
Why not copy zkdemo.war from zk-demo-5.0.0-RC.zip to "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps" and start tomcat, it will unzip the war file to correct directory.
And then, you should be able to run the demo with the URL http://localhost:8080/zkdemo/userguide/
I try to keyin URL:
http://localhost:8080/zkdemo/
this doesn't work , but
http://localhost:8080/zkdemo/index.zul
this will work , why ?
Is there anyone know this problem ?
Thanks.
Did you specify the welcome-file in your web.xml?
ZK - Open Source Ajax Java Framework
I've installed Tomcat 6 on my Vista machine. I installed it to "c:\Apache\Tomcat 6.0" The service is running. I can access localhost:8080 and then access 'List Applications', 'Server Status' etc but get a HTTP 404 error when entering, http://localhost:8080/zkdemo/.
Under 'List Applications' I can clearly see 'zkdemo' along with the other default folders. Clicking /zkdemo or /host manager or /manager, I get a 404 error (The requested resource (/manager/) is not available.). For zkdemo the error is simply, The requested resource () is not available.
Any help appreciated.
Steve.