I m trying to run the spring boot java application, but i am facing following issue
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
.springframework.orm.hibernate5.LocalSessionFactoryBuilder.scanPackages(LocalSessionFactoryBuilder.java:365)
The following method did not exist:
'void .springframework.orm.hibernate5.LocalSessionFactoryBuilder.addAttributeConverter(java.lang.Class)'
The calling method's class, .springframework.orm.hibernate5.LocalSessionFactoryBuilder, was loaded from the following location:
jar:file:../.m2/repository//springframework/spring-orm/6.2.2/spring-orm-6.2.2.jar!//springframework/orm/hibernate5/LocalSessionFactoryBuilder.class
The called method's class, .springframework.orm.hibernate5.LocalSessionFactoryBuilder, is available from the following locations:
jar:file:../.m2/repository//springframework/spring-orm/6.2.2/spring-orm-6.2.2.jar!//springframework/orm/hibernate5/LocalSessionFactoryBuilder.class
The called method's class hierarchy was loaded from the following locations:
.springframework.orm.hibernate5.LocalSessionFactoryBuilder: file:../.m2/repository//springframework/spring-orm/6.2.2/spring-orm-6.2.2.jar .hibernate.cfg.Configuration: file:../.m2/repository//hibernate/orm/hibernate-core/6.6.5.Final/hibernate-core-6.6.5.Final.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of .springframework.orm.hibernate5.LocalSessionFactoryBuilder
Attaching my pom.xml for dependencies
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns=".0.0"
xmlns:xsi=";
xsi:schemaLocation=".0.0 .0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.4.2</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>com.ak</groupId>
<artifactId>nsboot</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>NewSystemBoot</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>17</java.version>
<zkspringboot.version>2.3.1</zkspringboot.version>
<zk.version>10.0.0-jakarta</zk.version>
<!-- <zk.version>8.6.0.1</zk.version> -->
<keikai.version>5.0.0</keikai.version>
<keikai-ex.version>5.2.0-Eval</keikai-ex.version>
<!-- Drools version -->
<runtime.version>7.0.0.Final</runtime.version>
</properties>
<packaging>war</packaging>
<repositories>
<repository>
<id>ZK CE</id>
<name>ZK CE Repository</name>
<url>;/url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- .persistence/jakarta.persistence-api -->
<dependency>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
<version>3.2.0</version>
</dependency>
<dependency>
<groupId>.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>.zkoss.zkspringboot</groupId>
<artifactId>zkspringboot-starter</artifactId>
<type>pom</type>
<version>${zkspringboot.version}</version>
</dependency>
<dependency>
<groupId>.zkoss.zk</groupId>
<artifactId>zkbind</artifactId>
<version>${zk.version}</version>
</dependency>
<!-- <dependency>
<groupId>.zkoss.zk</groupId>
<artifactId>zkmax</artifactId>
<version>${zk.version}</version>
</dependency> -->
<!-- <dependency>
<groupId>.zkoss.zk</groupId>
<artifactId>zuti</artifactId>
<version>${zk.version}</version>
</dependency> -->
<dependency>
<groupId>.zkoss.zk</groupId>
<artifactId>zkplus</artifactId>
<version>${zk.version}</version>
</dependency>
<dependency>
<groupId>.zkoss.zk</groupId>
<artifactId>zhtml</artifactId>
<version>${zk.version}</version>
</dependency>
<!-- .xml.bind/jakarta.xml.bind-api -->
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>4.0.2</version>
</dependency>
<dependency>
<groupId>.zkoss.theme</groupId>
<artifactId>silvertail</artifactId>
<version>10.0.0</version>
</dependency>
<!--
<dependency>
<groupId>io.keikai</groupId>
<artifactId>keikai-ex</artifactId>
<version>${keikai-ex.version}</version>
</dependency>
<dependency>
<groupId>io.keikai</groupId>
<artifactId>keikai-oss</artifactId>
<version>${keikai.version}</version>
</dependency>
<dependency>
<groupId>.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>11.2.3.jre17</version>
</dependency>
<dependency>
<groupId>.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>6.2.2</version>
</dependency>
<dependency>
<groupId>.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>4.31.0</version>
</dependency>
<!-- .mattbertolini/liquibase-slf4j -->
<dependency>
<groupId>com.mattbertolini</groupId>
<artifactId>liquibase-slf4j</artifactId>
<version>5.1.0</version>
</dependency>
<dependency>
<groupId>.threeten</groupId>
<artifactId>threetenbp</artifactId>
<version>1.3.6</version>
</dependency>
<!-- Drools -->
<dependency>
<groupId>.kie</groupId>
<artifactId>kie-api</artifactId>
<version>${runtime.version}</version>
</dependency>
<dependency>
<groupId>.drools</groupId>
<artifactId>drools-core</artifactId>
<version>${runtime.version}</version>
</dependency>
<dependency>
<groupId>.drools</groupId>
<artifactId>drools-decisiontables</artifactId>
<version>${runtime.version}</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>3.4.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<webResources>
<resource>
<directory>src/main/resources/web/zul</directory>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
</project>
I have tried different version of spring-orm but still no luck.