Revision history [back]

click to hide/show revision 1
initial version

asked 2020-09-07 20:25:01 +0800

zl gravatar image zl

Deployment on Linux server by IDEA,Browser error: ZK is not defined

Why does ZKOSS run well in local idea, but it reports an error when deployed to a Linux server. Uncaught ReferenceError: zk is not defined

     Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
     zul.lang.wpd:1 Uncaught ReferenceError: zk is not defined
     at zul.lang.wpd:1
     at zul.lang.wpd:72
     zkbind.wpd:1 Uncaught ReferenceError: zk is not defined
     at zkbind.wpd:1
    login.zul:17 Uncaught ReferenceError: zk is not defined
     at login.zul:17
     /favicon.ico:1 Failed to load resource: the server responded with a status of 404 ()

error:

    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkspring-core</artifactId>
        <version>4.0.0</version>
    </dependency>

Deployment on Linux server by IDEA,Browser error: ZK is not defined

Why does ZKOSS run well in local idea, but it reports an error when deployed to a Linux server. Uncaught ReferenceError: zk is not defined

     Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
     zul.lang.wpd:1 Uncaught ReferenceError: zk is not defined
     at zul.lang.wpd:1
     at zul.lang.wpd:72
     zkbind.wpd:1 Uncaught ReferenceError: zk is not defined
     at zkbind.wpd:1
    login.zul:17 Uncaught ReferenceError: zk is not defined
     at login.zul:17
     /favicon.ico:1 Failed to load resource: the server responded with a status of 404 ()

error:

<!-- ZKOSS CE -->
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkbind</artifactId>
        <version>${zk.version}</version>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zul</artifactId>
        <version>${zk.version}</version>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkplus</artifactId>
        <version>${zk.version}</version>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zhtml</artifactId>
        <version>${zk.version}</version>
    </dependency>
    <dependency>
        <groupId>org.zkoss.common</groupId>
        <artifactId>zweb</artifactId>
        <version>${zk.version}</version>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkspring-core</artifactId>
        <version>4.0.0</version>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zkforge</groupId>
        <artifactId>ckez</artifactId>
        <version>4.11.1.1</version>
    </dependency>
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More