<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: lekshmigvarrier</title>
    <description>The latest articles on DEV Community by lekshmigvarrier (@lekshmigvarrier).</description>
    <link>https://dev.to/lekshmigvarrier</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F836474%2F5e5a080c-60f5-427e-a6cd-065d1580aad6.png</url>
      <title>DEV Community: lekshmigvarrier</title>
      <link>https://dev.to/lekshmigvarrier</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lekshmigvarrier"/>
    <language>en</language>
    <item>
      <title>Exception during converting a standalone spring-hibernate based application to web application using Springboot(STS 4)</title>
      <dc:creator>lekshmigvarrier</dc:creator>
      <pubDate>Fri, 25 Mar 2022 05:16:40 +0000</pubDate>
      <link>https://dev.to/lekshmigvarrier/exception-during-converting-a-standalone-spring-hibernate-based-application-to-web-application-using-springbootsts-4-19pp</link>
      <guid>https://dev.to/lekshmigvarrier/exception-during-converting-a-standalone-spring-hibernate-based-application-to-web-application-using-springbootsts-4-19pp</guid>
      <description>&lt;p&gt;Hi,&lt;br&gt;
  We are trying to convert a standalone spring-hibernate based application to web application using Springboot(STS 4). We are using applicationcontext.xml file for bean creation and configuration.We configured libraries in pom.xml,which is attached here. When running the application using Maven, following error is showing. Please help&lt;/p&gt;

&lt;p&gt;Description:&lt;/p&gt;

&lt;p&gt;An attempt was made to call a method that does not exist. The attempt was made from the following location:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:350)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;The following method did not exist:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;org.springframework.beans.factory.annotation.InjectionMetadata.&amp;lt;init&amp;gt;(Ljava/lang/Class;)V
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;The calling method's class, org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor, was loaded from the following location:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;jar:file:/C:/Users/CIG-Lekshmi1/.m2/repository/org/springframework/spring-orm/2.5.6/spring-orm-2.5.6.jar!/org/springframework/orm/jpa/support/PersistenceAnnotationBeanPostProcessor.class
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;The called method's class, org.springframework.beans.factory.annotation.InjectionMetadata, is available from the following locations:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;jar:file:/C:/Users/CIG-Lekshmi1/.m2/repository/org/springframework/spring-beans/5.3.16/spring-beans-5.3.16.jar!/org/springframework/beans/factory/annotation/InjectionMetadata.class
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;The called method's class hierarchy was loaded from the following locations:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;org.springframework.beans.factory.annotation.InjectionMetadata: file:/C:/Users/CIG-Lekshmi1/.m2/repository/org/springframework/spring-beans/5.3.16/spring-beans-5.3.16.jar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Action:&lt;/p&gt;

&lt;p&gt;Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor and org.springframework.beans.factory.annotation.InjectionMetadata&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
