Jetty"
From Documentation
m (→Limitations) |
m (→Limitations) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 15: | Line 15: | ||
= Limitations = | = Limitations = | ||
− | # Due to this [https://bugs.eclipse.org/bugs/show_bug.cgi?id=401664 issue], | + | # Due to this [https://bugs.eclipse.org/bugs/show_bug.cgi?id=401664 issue], ZK may throw NullPointerException (HttpServletRequest#getContentPath() returns a null value ...) with Servlet 3-supported Jetty. You should not use the default Servlet 3 Comet server push ([http://books.zkoss.org/wiki/Small_Talks/2012/February/New_Features_of_ZK_6#ZK_Comet_supports_Servlet_3_Asynchronous_Processing Servlet 3 Asynchronous Processing-based Comet]). You should use '''''org.zkoss.zkex.ui.comet.CometServerPush''''' instead by applying the following config: |
+ | zk.xml | ||
<source lang="xml" > | <source lang="xml" > | ||
<device-config> | <device-config> | ||
Line 23: | Line 24: | ||
</device-config> | </device-config> | ||
</source> | </source> | ||
+ | |||
+ | Refer to [http://books.zkoss.org/wiki/ZK_Configuration_Reference/zk.xml/The_device-config_Element/The_server-push-class_Element The server-push-class Element] and [http://books.zkoss.org/wiki/ZK_Developer%27s_Reference/Server_Push/Configuration Server Push Configuration] | ||
=Version History= | =Version History= |
Latest revision as of 07:47, 29 July 2013
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, ZK may throw NullPointerException (HttpServletRequest#getContentPath() returns a null value ...) with Servlet 3-supported Jetty. You should not use the default Servlet 3 Comet server push (Servlet 3 Asynchronous Processing-based Comet). You should use org.zkoss.zkex.ui.comet.CometServerPush instead by applying the following config:
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 |
---|---|---|