Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1857

ZK 6.5 EE OSGi: Comet Servlet 3 Push does not work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.1
    • Fix Version/s: 6.5.4
    • Component/s: General
    • Labels:
      None
    • Environment:

      GlassFish 3.1.2, ZK 6.5.1.1 EE, OSGi 4.2

      Description

      As I figured out, Comet Servlet 3 Push cannot be used with ZK 6.5.1.1 EE OSGi and GlassFish 3.1.2. Class org.zkoss.web.servlet.Servlets checks if interface javax.servlet.annotation.WebServlet can be found on classpath, but bundle zweb does not import package javax.servlet.annotation. Hence Servlets.isServlet3() will never return true and org.zkoss.zkmax.ui.comet.CometServerPush.defaultAsync() will always return false.

      Adding javax.servlet.annotation to org.osgi.framework.bootdelgation does not work under GlassFish 3.1.2, so the only chance to use Comet Servlet 3 Push is to import javax.servlet.annotation in zweb's MANIFEST file.

        Activity

        Hide
        jkraushaar jkraushaar added a comment -

        This problem also concerns ZK 6.5.3 EE OSGi. I have not checked other versions.

        Show
        jkraushaar jkraushaar added a comment - This problem also concerns ZK 6.5.3 EE OSGi. I have not checked other versions.
        Hide
        vincentjian vincentjian added a comment -

        Fixed since 2013/7/30.

        Show
        vincentjian vincentjian added a comment - Fixed since 2013/7/30.

          People

          • Assignee:
            vincentjian vincentjian
            Reporter:
            jkraushaar jkraushaar
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: