Revision history [back]

click to hide/show revision 1
initial version

answered 2020-10-27 16:08:21 +0800

FuttererJ gravatar image FuttererJ

Hi,

in the meanwhile I got rid of this error but ran into a new one. But I think they are linked somehow.

Before I got this "undefined class name" error I had a "bsh namespace error". So after some googling I found out that I have to include BSH as dependency in my pom.xml. Which I already find suspicious. Why is ZK not providing its own BSH? So I included this:

<dependency>
  <groupId>bsh</groupId>
  <artifactId>bsh</artifactId>
  <version>1.3.0</version>
</dependency>

Which lead to above undefined error. After changing the version to the newest version 2.0b4 this error was gone. But now im running into a "Not unique in ID space" which can't be the true error, because every ID is unique (it would have been also a problem with the old ZK version). Looking at the stacktrace I see that there is also again BSH involved. So I guess it is still coming from this.

So my question now is: why did I need to provide BSH in the first place? Does this indicate that there is something wrong in my setup?

Currently it looks like this:

    <!-- ZK start -->
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zk</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zul</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.common</groupId>
        <artifactId>zcommon</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkbind</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zhtml</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkplus</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkspring-core</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkspring-security</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zkforge.el</groupId>
        <artifactId>zcommons-el</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.common</groupId>
        <artifactId>zweb</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkex</artifactId>
    </dependency>
    <dependency>
        <groupId>bsh</groupId>
        <artifactId>bsh</artifactId>
        <version>2.0b4</version>
    </dependency>
    <!-- ZK end -->

Hi,

in the meanwhile I got rid of this error but ran into a new one. But I think they are linked somehow.

Before I got this "undefined class name" error I had a "bsh namespace error". So after some googling I found out that I have to include BSH as dependency in my pom.xml. Which I already find found suspicious. Why is ZK not providing its own BSH? So I included this:

<dependency>
  <groupId>bsh</groupId>
  <artifactId>bsh</artifactId>
  <version>1.3.0</version>
</dependency>

Which lead to above undefined error. After changing the version to the newest version 2.0b4 this error was gone. But now im running into a "Not unique in ID space" which can't be the true error, because every ID is unique (it would have been also a problem with the old ZK version). Looking at the stacktrace I see that there is also again BSH involved. So I guess it is still coming from this.

So my question now is: why did I need to provide BSH in the first place? Does this indicate that there is something wrong in my setup?

Currently it looks like this:

    <!-- ZK start -->
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zk</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zul</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.common</groupId>
        <artifactId>zcommon</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkbind</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zhtml</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkplus</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkspring-core</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkspring-security</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zkforge.el</groupId>
        <artifactId>zcommons-el</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.common</groupId>
        <artifactId>zweb</artifactId>
    </dependency>
    <dependency>
        <groupId>org.zkoss.zk</groupId>
        <artifactId>zkex</artifactId>
    </dependency>
    <dependency>
        <groupId>bsh</groupId>
        <artifactId>bsh</artifactId>
        <version>2.0b4</version>
    </dependency>
    <!-- ZK end -->

Hi,

in the meanwhile I got rid of this error but ran into a new one. But I think they are linked somehow.

Before I got this "undefined class name" error I had a "bsh namespace error". So after some googling I found out that I have to include BSH as dependency in my pom.xml. Which I already found suspicious. Why is ZK not providing its own BSH? So I included this:

<dependency>
  <groupId>bsh</groupId>
  <artifactId>bsh</artifactId>
  <version>1.3.0</version>
</dependency>

Which lead to above undefined error. After changing the version to the newest version 2.0b4 this error was gone. But now im running into a "Not unique in ID space" which can't be the true error, because every ID is unique (it would have been also a problem with the old ZK version). Looking at the stacktrace I see that there is also again BSH involved. So I guess it is still coming from this.

So my question now is: why did I need to provide BSH in the first place? Does this indicate that there is something wrong in my setup?

Currently it looks like this:

  <!-- ZK start -->
     <dependency>
         <groupId>org.zkoss.zk</groupId>
         <artifactId>zk</artifactId>
            <version>${zk.version}</version>
            <scope>system</scope>
            <systemPath>${basedir}/src/main/webapp/lib/zk-8.5.0.jar</systemPath>
        </dependency>
     <dependency>
         <groupId>org.zkoss.zk</groupId>
         <artifactId>zul</artifactId>
            <version>${zk.version}</version>
            <scope>system</scope>
            <systemPath>${basedir}/src/main/webapp/lib/zul-8.5.0.jar</systemPath>
        </dependency>
     <dependency>
         <groupId>org.zkoss.common</groupId>
         <artifactId>zcommon</artifactId>
            <version>${zk.version}</version>
            <scope>system</scope>
            <systemPath>${basedir}/src/main/webapp/lib/zcommon-8.5.0.jar</systemPath>
        </dependency>
     <dependency>
         <groupId>org.zkoss.zk</groupId>
         <artifactId>zkbind</artifactId>
            <version>8.5.0</version>
            <scope>system</scope>
            <systemPath>${basedir}/src/main/webapp/lib/zkbind-8.5.0.jar</systemPath>
        </dependency>
     <dependency>
         <groupId>org.zkoss.zk</groupId>
         <artifactId>zhtml</artifactId>
            <version>${zk.version}</version>
            <scope>system</scope>
            <systemPath>${basedir}/src/main/webapp/lib/zhtml-8.5.0.jar</systemPath>
        </dependency>
     <dependency>
         <groupId>org.zkoss.zk</groupId>
         <artifactId>zkplus</artifactId>
            <version>${zk.version}</version>
            <scope>system</scope>
            <systemPath>${basedir}/src/main/webapp/lib/zkplus-8.5.0.jar</systemPath>
        </dependency>
     <dependency>
         <groupId>org.zkoss.zk</groupId>
         <artifactId>zkspring-core</artifactId>
            <version>4.0.0</version>
            <scope>system</scope>
            <systemPath>${basedir}/src/main/webapp/lib/zkspring-core-4.0.0.jar</systemPath>
        </dependency>
     <dependency>
         <groupId>org.zkoss.zk</groupId>
         <artifactId>zkspring-security</artifactId>
            <version>4.0.0</version>
            <scope>system</scope>
            <systemPath>${basedir}/src/main/webapp/lib/zkspring-security-4.0.0.jar</systemPath>
        </dependency>
     <dependency>
         <groupId>org.zkoss.zkforge.el</groupId>
         <artifactId>zcommons-el</artifactId>
            <version>1.1.0</version>
            <scope>system</scope>
            <systemPath>${basedir}/src/main/webapp/lib/zcommons-el-1.1.0.jar</systemPath>
        </dependency>
     <dependency>
         <groupId>org.zkoss.common</groupId>
         <artifactId>zweb</artifactId>
            <version>${zk.version}</version>
            <scope>system</scope>
            <systemPath>${basedir}/src/main/webapp/lib/zweb-8.5.0.jar</systemPath>
        </dependency>
     <dependency>
         <groupId>org.zkoss.zk</groupId>
         <artifactId>zkex</artifactId>
            <version>3.6.3</version>
            <scope>system</scope>
            <systemPath>${basedir}/src/main/webapp/lib/zkex-3.6.3.jar</systemPath>
        </dependency>
     <dependency>
         <groupId>bsh</groupId>
         <artifactId>bsh</artifactId>
         <version>2.0b4</version>
     </dependency>
     <!-- ZK end -->
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More