Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

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

  • 13-07-2016 12: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