0

Unable to start zk SpreadSheet

asked 2019-08-24 22:30:53 +0800

ntsetso gravatar image ntsetso
53 1 4

Hi all! I’m trying spreadsheet following this guide.

The project does not start correctly. I get one warning saying:

[WARNING] The POM for org.zkoss.zss:zss:jar:3.8.1 is missing, no dependency information available

And later another saying:

WARNING: Component spreadsheet ignored. Reason: unable to load org.zkoss.zss.ui.Spreadsheet due to java.lang.NoClassDefFoundError: org/zkoss/zss/model/sys/formula/EvaluationContributor

Here are the logs.

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building The zkssquick Project 0.0.1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-jetty-plugin:6.1.10:stop (default-cli) > process-sources @ zkssquick >>>
[INFO] 
[INFO] <<< maven-jetty-plugin:6.1.10:stop (default-cli) < process-sources @ zkssquick <<<
[WARNING] The POM for org.zkoss.zss:zss:jar:3.8.1 is missing, no dependency information available
[INFO] 
[INFO] --- maven-jetty-plugin:6.1.10:stop (default-cli) @ zkssquick ---
ERROR: Not running!
[INFO] 
[INFO] >>> maven-jetty-plugin:6.1.10:run (default-cli) > test-compile @ zkssquick >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ zkssquick ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\eclipseGit\zksssarter\zssquick\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ zkssquick ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ zkssquick ---
[INFO] Not copying test resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ zkssquick ---
[INFO] Not compiling test sources
[INFO] 
[INFO] <<< maven-jetty-plugin:6.1.10:run (default-cli) < test-compile @ zkssquick <<<
[INFO] 
[INFO] --- maven-jetty-plugin:6.1.10:run (default-cli) @ zkssquick ---
[INFO] Configuring Jetty for project: The zkssquick Project
[INFO] Webapp source directory = D:\eclipseGit\zksssarter\zssquick\src\main\webapp
[INFO] web.xml file = D:\eclipseGit\zksssarter\zssquick\src\main\webapp\WEB-INF\web.xml
[INFO] Classes = D:\eclipseGit\zksssarter\zssquick\target\classes
[INFO] Logging to org.slf4j.impl.SimpleLogger(org.mortbay.log) via org.mortbay.log.Slf4jLog
[INFO] Context path = /zkssquick
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] Webapp directory = D:\eclipseGit\zksssarter\zssquick\src\main\webapp
[INFO] Starting jetty 6.1.10 ...
[INFO] jetty-6.1.10
[INFO] No Transaction manager found - if your webapp requires one, please configure one.
Aug 24, 2019 3:52:07 PM org.zkoss.zk.ui.http.WebManager <init>
INFO: Starting ZK 8.5.0 CE (build: 2017103111)
Aug 24, 2019 3:52:07 PM org.zkoss.zk.ui.sys.ConfigParser parseConfigXml
INFO: Loading system default
Aug 24, 2019 3:52:07 PM org.zkoss.zk.ui.sys.ConfigParser parse
INFO: Parsing jar:file:/C:/Users/KIS/.m2/repository/org/zkoss/zk/zul/8.5.0/zul-8.5.0.jar!/metainfo/zk/zk.xml
Aug 24, 2019 3:52:07 PM org.zkoss.zk.ui.sys.ConfigParser parse
INFO: Parsing file:/D:/eclipseGit/zksssarter/zssquick/src/main/webapp/WEB-INF/zk.xml
Aug 24, 2019 3:52:08 PM org.zkoss.zk.ui.metainfo.DefinitionLoaders parseLang
WARNING: Component spreadsheet ignored. Reason: unable to load org.zkoss.zss.ui.Spreadsheet due to java.lang.NoClassDefFoundError: org/zkoss/zss/model/sys/formula/EvaluationContributor
[INFO] Started SelectChannelConnector@0.0.0.0:8080
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 5 seconds.

And here is my pom.

<project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>thabi.net</groupId>
    <artifactId>zkssquick</artifactId>
    <version>0.0.1</version>
    <properties>
        <zk.version>8.5.0</zk.version>
        <zss.version>3.8.1</zss.version>
        <commons-io>2.4</commons-io>
        <maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
        <packname>-${project.version}-FL-${maven.build.timestamp}</packname>
    </properties>
    <packaging>war</packaging>
    <name>The zkssquick Project</name>
    <description>The zkssquick Project</description>
    <licenses>
        <license>
            <name>GNU LESSER GENERAL PUBLIC LICENSE, Version 3</name>
            <url>http://www.gnu.org/licenses/lgpl.html</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <repositories>
        <repository>
            <id>ZK CE</id>
            <name>ZK CE Repository</name>
            <url>http://mavensync.zkoss.org/maven2</url>
        </repository>
        <repository>
            <id>ZK EVAL</id>
            <name>ZK Evaluation Repository</name>
            <url>http://mavensync.zkoss.org/eval</url>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>zkmaven</id>
            <name>ZK Maven Plugin Repository</name>
            <url>http://mavensync.zkoss.org/maven2/</url>
        </pluginRepository>
    </pluginRepositories>
    <dependencies>
        <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>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>${commons-io}</version>
        </dependency>

        <!-- breeze theme -->
        <dependency>
            <groupId>org.zkoss.theme</groupId>
            <artifactId>breeze</artifactId>
            <version>${zk.version}</version>
        </dependency> 

        <!-- using ZK Spreadsheet OSE -->
        <dependency>
            <groupId>org.zkoss.zss</groupId>
            <artifactId>zss</artifactId>
            <version>${zss.version}</version>
        </dependency>
    </dependencies>
    <build>
        <finalName>${project.artifactId}</finalName>
        <plugins>
            <!-- Run with Jetty -->
            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <version>6.1.10</version>
                <configuration>
                    <scanIntervalSeconds>5</scanIntervalSeconds>
                    <stopKey>foo</stopKey>
                    <stopPort>9999</stopPort>
                </configuration>
                <executions>
                    <execution>
                        <id>start-jetty</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <scanIntervalSeconds>0</scanIntervalSeconds>
                            <daemon>true</daemon>
                        </configuration>
                    </execution>
                    <execution>
                        <id>stop-jetty</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>stop</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <!-- Compile java -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <!-- Build war -->
            <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <groupId>org.apache.maven.plugins</groupId>
                <version>2.1.1</version>
            </plugin>
            <!-- Pack zips -->
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.2</version>
                <executions>
                    <execution>
                        <id>webapp</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <configuration>
                            <finalName>zkssquick${packname}</finalName>
                            <appendAssemblyId>false</appendAssemblyId>
                            <descriptors>
                                <descriptor>src/main/assembly/webapp.xml</descriptor>
                            </descriptors>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>

What am I missing here?

TIA

ntsetso

delete flag offensive retag edit

3 Answers

Sort by » oldest newest most voted
0

answered 2019-08-27 11:26:38 +0800

hawk gravatar image hawk
2455 1 5
http://hawkphoenix.blogsp... ZK Team

zpoi:3.9.8 is also published, please try again. Thanks :)

link publish delete flag offensive edit
0

answered 2019-08-26 15:05:47 +0800

hawk gravatar image hawk
2455 1 5
http://hawkphoenix.blogsp... ZK Team

zss:3.8.1 is missing in CE repository previously. Now it exists in the repository. Please try to download again. you might need to delete the previously-downloaded folder in your local repo.

link publish delete flag offensive edit

Comments

Now in the pom.xml I get:

Missing artifact org.zkoss.poi:zpoi:jar:3.9.8

ntsetso ( 2019-08-27 00:37:46 +0800 )edit
0

answered 2019-08-27 21:10:30 +0800

ntsetso gravatar image ntsetso
53 1 4

Tks a lot for the help.

Meanwhile, to make it work I had to exclude zcommon as explained in this post.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2019-08-24 22:30:53 +0800

Seen: 10 times

Last updated: Aug 27

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More