Hi there,
I got a problem trying to make tomcat 5, flex and hibernate work together.
I got the following error in tomcat log :
tomcat log
=====
Feb 26, 2007 5:36:10 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
flex.messaging.config.ConfigurationException: Unable to create service 'flex.data.DataService' for 'data-service' due to the
following error: Error instantiating application scoped instance of type 'flex.data.assemblers.HibernateAssembler' for
destination 'user.hibernate'..
at flex.messaging.config.MessagingConfiguration.createServices(MessagingConfiguration.java:2 02)
...
Feb 26, 2007 5:36:10 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /eatProject threw load() exception
flex.data.adapters.AdapterException: No Hibernate mapping was found for entity name
'myProject.vo.User ' configured in destination 'null'.
In the catalina log I got the following info on Hibernate log
catalina log
=====
INFO: Configuration resource: /hibernate.cfg.xml
Feb 26, 2007 5:50:31 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource: myProject/vo/User.hbm.xml
Feb 26, 2007 5:50:31 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: myProject.vo.User -> user
Feb 26, 2007 5:50:31 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
thinks a lot for your help
I got a problem trying to make tomcat 5, flex and hibernate work together.
I got the following error in tomcat log :
tomcat log
=====
Feb 26, 2007 5:36:10 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
flex.messaging.config.ConfigurationException: Unable to create service 'flex.data.DataService' for 'data-service' due to the
following error: Error instantiating application scoped instance of type 'flex.data.assemblers.HibernateAssembler' for
destination 'user.hibernate'..
at flex.messaging.config.MessagingConfiguration.createServices(MessagingConfiguration.java:2 02)
...
Feb 26, 2007 5:36:10 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /eatProject threw load() exception
flex.data.adapters.AdapterException: No Hibernate mapping was found for entity name
'myProject.vo.User ' configured in destination 'null'.
In the catalina log I got the following info on Hibernate log
catalina log
=====
INFO: Configuration resource: /hibernate.cfg.xml
Feb 26, 2007 5:50:31 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource: myProject/vo/User.hbm.xml
Feb 26, 2007 5:50:31 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: myProject.vo.User -> user
Feb 26, 2007 5:50:31 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
thinks a lot for your help