1 Reply Latest reply on Jun 23, 2011 9:25 AM by Hernán Chanfreau

    Problem to deploy application using hibernate 3.6.5

    ezikoh Newbie

      Hello

       

      When I deploy mi application spring with richfaces in a server web logic 11r show next error

       

      <User defined listener org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/spring-beans.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax/persistence/OneToOne.orphanRemoval()Z.

       

      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/spring-beans.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax/persistence/OneToOne.orphanRemoval()Z

      ......

       

      my libraries are:

       

      annotations-4.0.0.Final.jar

      commons-logging-1.1.jar

      guava-r08.jar

      hibernate-jpa-2.0-api-1.0.0.Final.jar

      hibernate-validator-4.2.0.Final.jar

      hibernate-validator-anotation-processor-4.2.0.Final.jar

      hibernate3.jar  (version  3.6.5 Final)

      javax.persistence-2.0.0.jar

      jsf-api.jar

      jsf-impl.jar

      jsp-api-2.0.jar

      jstl-api-1.2.jar

      jsf-impl-2.0.0.jar

      jstl-impl-1.2.jar

      springframework 3.0.5

      richfaces 4.0.0 Final

      servlet-api.jar

      slf4j-api-1.6.1.jar

      validation-api-1.0.0.GAjar

       

      Who is the problem?, I read many web pages but not resolve my problem.

       

      Thank You