EVERE: Servlet.service() for servlet [appServlet] in context with path [/TelephoneDirectory] threw exception [Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session;] with root cause
java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session;
原因:
這是因爲spring3.1.1還沒有整合hibernate4.0,還是用的hiberbate3.x,目前暫時不要使用hibernate4.0 (see here Spring 3.1 artifact and dependencies).