I am using Spring 2.0 and hibernate, but I am getting following error when 
I am trying to port my application to GAE.

javax.servlet.ServletContext log: Exception while dispatching incoming RPC 
call com.google.gwt.user.client.rpc.SerializationException: Type 
'org.springframework.beans.factory.BeanCreationException' was not included 
in the set of types which can be serialized by this SerializationPolicy or 
its Class object could not be loaded. For security purposes, this type will 
not be serialized.: instance = 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'ManagerAdmin' 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]: Cannot resolve reference to bean 'dataSource' 
while setting bean property 'dataSource'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'dataSource' defined in class path resource 
[applicationContext.xml]: Error setting property values; nested exception 
is org.springframework.beans.NotWritablePropertyException: Invalid property 
'hibernate.dialect' of bean class 
[org.springframework.jdbc.datasource.DriverManagerDataSource]: Nested 
property in path 'hibernate.dialect' does not exist; nested exception is 
org.springframework.beans.NotReadablePropertyException: Invalid property 
'hibernate' of bean class 
[org.springframework.jdbc.datasource.DriverManagerDataSource]: Bean 
property 'hibernate' is not readable or has an invalid getter method: Does 
the return type of the getter match the parameter type of the setter



Here is the application.xml that I am using:



<beans xmlns="http://www.springframework.org/schema/beans";

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

xsi:schemaLocation="http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";

default-lazy-init="true">


<!-- Datasource for database connection  -->

<bean id="dataSource" 
class="org.springframework.jdbc.datasource.DriverManagerDataSource">

<property name="hibernate.dialect" 
value="org.hibernate.dialect.MySQLDialect" />

<property name="driverClassName" 
value="com.google.appengine.api.rdbms.AppEngineDriver"/>

<property name="url" 
value="jdbc:google:rdbms://cloudsql/XXXXX:XXXX/XXXXdb?user=XXXX" />

<property name="username" value="XXXXX" />

<property name="password" value="XXXXX" />

<!-- You may want to change this to false in production -->

<property name="hibernate.show_sql" value="true" />

</bean>


<bean id="sessionFactory" 
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
 

<property name="dataSource" ref="dataSource" /> 

<property name="annotatedClasses"> 

<list> 

<value>com.zrsol.shared.entity.AnnouncementEntity</value>  

</list> 

</property> 

</bean>

<bean id ="ManagerCric" class= "com.zrsol.persistence.MySQLRdbSpringHelper">

<property name="sessionFactory" ref="sessionFactory" />

</bean>

<bean id ="ManagerAdmin" class= "com.zrsol.persistence.MySQLRdbHelper">

<property name="sessionFactory" ref="sessionFactory" />

</bean>


<bean id ="ManagerAdmin2" class= "com.zrsol\.persistence.MySQLRdbHelper2">

<property name="sessionFactory" ref="sessionFactory" />

</bean>


</beans>


Any help is appreciated.

Thanks

Raja.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to