Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Spring Issue - NoClassDefFoundError: org/springframework/beans/PropertyMatches

  • 13-07-2016 01:36PM
    #1
    Closed Accounts Posts: 6,075 ✭✭✭


    I have a Java app that uses Spring. I had it deployed on a test environment and it was working fine.

    I then made a change to the code by updating a string and redeployed. Now I'm getting the below error.

    Anyone know why? I didn't touch the spring config.

    Servlet.service() for servlet [myapp] in context with path [/myapp] threw exception [Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/beans/PropertyMatches] with root cause
    java.lang.NoClassDefFoundError: org/springframework/beans/PropertyMatches
    


Comments

  • Registered Users, Registered Users 2 Posts: 44 john locke


    anytime I had problems like this with Spring, it was because either a class could not be found a runtime due to a missing dependency or there was a conflict where two versions of the same dependency are on the classpath so Spring cannot load the class


  • Closed Accounts Posts: 6,075 ✭✭✭IamtheWalrus


    john locke wrote: »
    anytime I had problems like this with Spring, it was because either a class could not be found a runtime due to a missing dependency or there was a conflict where two versions of the same dependency are on the classpath so Spring cannot load the class

    Thanks.

    The resolution was that I stopped Tomcat/Apache, cleaned the tomcat/webapps and work folders and redeployed.

    So far it seems to have done the trick.


  • Registered Users, Registered Users 2 Posts: 44 john locke



    The resolution was that I stopped Tomcat/Apache, cleaned the tomcat/webapps and work folders and redeployed.

    Can't beat a good old restart...


Advertisement