-
Bug
-
Resolution: Duplicate
-
Normal
-
None
-
5.0.6
-
None
https://sourceforge.net/tracker/?func=detail&aid=3295745&group_id=152762&atid=785191
If you take an JDK 1.6u25, Eclipse Helios SR2 with m2eclipse & m2eclipse extras plugin and Tomcat 6.0.32, an of course ZK Studio. There is an issue to repair in ZK Studio.
Open eclipse, in a empty workspace and do this:
1- Create a Dynamic web project and add the Facet of ZK. -> It will work fine in tomcat
2- Create a ZK Project -> It will work fine in tomcat
3- Create a Maven Project, add ZK Facet -> It will fail in tomcat.
The problem exactly is, than ZK Studio plugin generates de default files, in this case web.xml.
In the 2 first scenarios this file is including:
<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>
But in the third scenario (with maven) the file is not fully generated. update-uri parameter is missing.
Is missing too the webapp specification, witch appears in the first 2 scenarios.
There is another problem, if you fix this manually and access with a browser, the theme in the 2 first scenarios is Breeze, but in the third is the plain old one.
Found atached the 2 web.xml files, good generated (two first scenarios) and the wrong generated (maven)