-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3947310
By: yaniv23
I understood that now the ZK Ajax is supposed to work on the tomcat 4.1 but it still fails to load the web.xml (because the servlet is version 2.3) so what am I doing wrong?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3947626
By: yaniv23
I can also mention that if I change the web.xml so that it fit the 2.3 servlet definition then it fails with the servlet.init() function...
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3947684
By: henrichen
Please see this how-to:
http://en.wikibooks.org/wiki/ZK/How-Tos#Tomcat_4.1
Then deploy zkdemo and see if it works?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3948531
By: yaniv23
I tried that but as you can see it fails in the process of evaluating the XML...
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3948865
By: nobody
Well, and if I do manage to run the xml.web (creating my own dtd for example which does work), then the servlet fails to load...
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3951411
By: henrichen
Can you provide your web.xml?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3952044
By: yaniv23
<?xml version="1.0" encoding="UTF-8"?>
<!-- web.xml
Purpose:
Description:
History:
Wed Dec 29 12:13:00 2004, Created by [email protected]
Copyright (C) 2004 Potix Corporation. All Rights Reserved.
-->
<web-app 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">
<!--
<icon>
<small-icon></small-icon>
<large-icon></large-icon>
</icon>
-->
<!-- //// -->
<!-- ZK -->
<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>ZK loader for ZUML pages</description>
<servlet-name>zkLoader</servlet-name>
<servlet-class>org.zkoss.zk.ui.http.DHtmlLayoutServlet</servlet-class>
<!-- Must. Specifies URI of the update engine (DHtmlUpdateServlet).
It must be the same as <url-pattern> for the update engine.
-->
<init-param>
<param-name>update-uri</param-name>
<param-value>/zkau</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</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>
<!-- Used with richlet (ZK 2.2.0)
<servlet-mapping>
<servlet-name>zkLoader</servlet-name>
<url-pattern>/zk/*</url-pattern>
</servlet-mapping>
-->
<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>auEngine</servlet-name>
<url-pattern>/zkau/*</url-pattern>
</servlet-mapping>
<!-- Uncomment if you want to use the ZK filter
<filter>
<filter-name>zkFilter</filter-name>
<filter-class>org.zkoss.zk.ui.http.DHtmlLayoutFilter</filter-class>
<init-param>
<param-name>extension</param-name>
<param-value>html</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>zkFilter</filter-name>
<url-pattern>/test/special.jsp</url-pattern>
</filter-mapping>
-->
<!-- //// -->
<!-- /////////// -->
<!-- Miscellaneous -->
<session-config>
<session-timeout>120</session-timeout>
</session-config>
<!-- MIME mapping -->
<mime-mapping>
<extension>doc</extension>
<mime-type>application/vnd.ms-word</mime-type>
</mime-mapping>
<mime-mapping>
<extension>gif</extension>
<mime-type>image/gif</mime-type>
</mime-mapping>
<mime-mapping>
<extension>htm</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jnlp</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jpeg</extension>
<mime-type>image/jpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jpg</extension>
<mime-type>image/jpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>js</extension>
<mime-type>application/x-javascript</mime-type>
</mime-mapping>
<mime-mapping>
<extension>pdf</extension>
<mime-type>application/pdf</mime-type>
</mime-mapping>
<mime-mapping>
<extension>png</extension>
<mime-type>image/png</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xls</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xml</extension>
<mime-type>text/xml</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xul</extension>
<mime-type>application/vnd.mozilla.xul-xml</mime-type>
</mime-mapping>
<mime-mapping>
<extension>zhtml</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>zip</extension>
<mime-type>application/x-zip</mime-type>
</mime-mapping>
<mime-mapping>
<extension>zul</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.zul</welcome-file>
<welcome-file>index.zhtml</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
</web-app>
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3953134
By: tomyeh
It looks OK. What is the error message?
By the way, we tested with Tomcat 4.1.34. I am not sure if your version supports
2.4 web.xml. If not, modify the doctype to:
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
And, make sure you re-order <servlet> and <servlet-mapping> such that all <servlet> are declared before any <servlet-mapping>.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3957050
By: yaniv23
mmm... I'm not sure I know how to do that, though I will try to do that tomorrow, if you have the time and know exactly how to do that I will be very happy if you write down the way..
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3957646
By: tomyeh
Did you try to deploy zkdemo-all.war? This war was packed with all necessary jar files, so it shall minimize the version issue.
In other words, you shall try to copy all necessary jar files to WEB-INF/lib if you encountered NoSuchMethodError or so.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3958289
By: yaniv23
Thanks tomeyh,
after the upgrade the system works just fine, I have to make some final checks to make sure nothing else stopped working but it seems to be fine... So it can be deployed on JBOSS 3.2.2 after all :)
Asked: 2006-10-04 23:28:16 +0800
Seen: 518 times
Last updated: Oct 19 '06