-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
i'm using the web server iquebecweb. On it i have tomcat 7 server. I have a sample page index.zul but i don't manage to display them.
On my local tomcat on my laptop the page is displayed.
KIquebecWeb run with Cpanel. index.jsp and index.html is good but no index.zul or all others zul pages.
I want to know if i have to modify the web.xml?
Here is my web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>myZk</display-name>
<listener>
<description>
Used to cleanup when a session is destroyed</description>
<display-name>ZK Session cleaner</display-name>
<listener-class>org.zkoss.zk.ui.http.HttpSessionListener</listener-class>
</listener>
<servlet>
<description>
The ZK loader for ZUML pages</description>
<servlet-name>zkLoader</servlet-name>
<servlet-class>org.zkoss.zk.ui.http.DHtmlLayoutServlet</servlet-class>
<init-param>
<param-name>update-uri</param-name>
<param-value>/zkau</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<description>
The asynchronous update engine for ZK</description>
<servlet-name>auEngine</servlet-name>
<servlet-class>org.zkoss.zk.au.http.DHtmlUpdateServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>zkLoader</servlet-name>
<url-pattern>*.zul</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>zkLoader</servlet-name>
<url-pattern>*.zhtml</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>auEngine</servlet-name>
<url-pattern>/zkau/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
<welcome-file>index.zul</welcome-file>
</welcome-file-list>
</web-app>
Thank's for your help
Hi Webtibet3,
Your web.xml looks correct, I can find any problem.
The latent questions:
* Is this web.xml your web server actual use?
* Is the jar of ZK in correct classpath on your web server?
Maybe server log will provide some clues.
Regards,
Monty Pan
Hi,
In fact it's my Web Hosting who's caused the problem. They use Cpanel and the actual version of Cpanel is not compatible with Tomcat7.
Do you know any Web hoster who give us a tomcat 7 server and run Zk?
Thank's
Asked: 2012-08-23 20:34:37 +0800
Seen: 111 times
Last updated: Aug 28 '12