3 Replies Latest reply on Aug 28, 2007 12:20 AM by Marc de kwant

    Flex, Spring and Hibernate

    dimival Level 1
      I am trying to deploy and application using Flex 2 beta 3, Spring 1.2.7, Weblogic 9.1 and Hibernate 3 but it doesnt seem to work. I tested my Java classes using JUnit and they work but the problem is when i try to deploy it, it throws this error:

      [RPC Fault faultString="org.springframework.beans.factory.BeanCreationException : Error creating bean with name 'ServiceData' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.Column.table()Ljava/lang/String;" faultCode="Server.Processing" faultDetail="null"]
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::faultHandler()
      at mx.rpc::Responder/fault()
      at mx.rpc::AsyncRequest/fault()
      at ::NetConnectionMessageResponder/NetConnectionChannel.as$42:NetConnectionMessageResponder: :statusHandler()
      at mx.messaging::MessageResponder/status()

      ServiceData is the name of the service that access the database and SessionFactory is the Hibernate factory, the error says that it cant find a method but all the necessary jars are in the WEB-INF/lib folder and like i said before, it does run in JUnit so it is not a matter of the jars (i believe).
      Does anyone know what else do i need to do to make it work? any extra configuration regarding Flex, Spring and Weblogic?
      Hope someone can help me out