Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Flex, Spring and Hibernate

Avatar

Level 2
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
3 Replies

Avatar

Level 1
Same here. I have spent 4 hours with this and I cannot
believe someone had the same error. In my case, the error is the
same but it began when I introduced an OpenSessionInViewFilter.
Same with you?.



Pepe.

Avatar

Level 2
I am trying to show the content of a database table in a
DataGrid, i have a Remote Object that it is a Java class that
provides the access to my Service, the problem is that when this
class calls Spring in order to create the Hibernate Factory it
gives me that error.

Like i said i tried the same using Junit and it works, the
problem is when i try to deploy it, so i guess it has something to
do with weblogic or flex.

Avatar

Level 1
Hi,



I have build an example project using Flex and Spring (
http://www.wowww.nl/wordpress/?p=58).
Maybe it can help you solve your problem.



kind regards,



Marc