0 Replies Latest reply on Oct 21, 2014 5:55 AM by edward lee

    JBOSS6.3 EAP  can't creat sessionfactory

    edward lee Newbie

      nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activityDAOImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.hibernate.SessionFactory base.BaseDAOImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [vfs:/C:/Windows/System32/content/ShaoMai-0.0.1-SNAPSHOT.war/WEB-INF/classes/spring-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.Table.indexes()[Ljavax/persistence/Index;

       

       

      there is already javax.persistence.Table.class in my war file,

       

      My project is build wiht  spring4、hibernate4 & mysql