Jetty
From Documentation
Deploy
- Download Jetty from http://www.mortbay.org/jetty/index.html and install it, if you haven't installed it yet.
- Stop Jetty.
- Unzip zk-demo-x.x.x.zip or zk-demo.x.x.tar.gz
- Copy dist/lib/*.jar to $JETTY_HOME/lib
- ($JETTY_HOME is where you installed Jetty)
- Copy dist/lib/ext/*.jar to $JETTY_HOME/lib
- [Optional] Copy dist/lib/zkforge/*.jar to $JETTY_HOME/lib
- (It depends whether you need component from ZK Forge)
- Deploy demo/bin/zksandbox.war to Jetty by copying it to $JETTY_HOME/webapps directly.
- Start Jetty.
- Browse to http://localhost/zksandbox or http://localhost:8080/zksandbox, depending on your configuration.
Limitations
- Due to this issue, Jetty that support Servlet 3 should not use the default Servlet 3 Comet (Servlet 3 Asynchronous Processing-based Comet) server push, use org.zkoss.zkex.ui.comet.CometServerPush instead.
zk.xml
<device-config>
<device-type>ajax</device-type>
<server-push-class>org.zkoss.zkex.ui.comet.CometServerPush</server-push-class>
</device-config>
refer to The server-push-class Element and Server Push Configuration
Version History
Version | Date | Content |
---|---|---|