PostConstruct « Annotation « Spring Q&A





1. Using @PostConstruct annotation in Spring 3.0.0.RC1    stackoverflow.com

I am using @PostConstruct annotation (to mark init method in a bean) in Spring version 3.0.0.RC1. I start this web application in Jetty and get the following exception:

java.lang.NoSuchMethodError: org.springframework.core.OrderComparator.sort(Ljava/util/List;)V
   ...