从几天开始,部署在GAE上的应用程序错误地显示了消息
ERROR:Context initialization failed
org.springframework.web.context.ContextLoader[ContextLoader.java:215 2015-03-13 16:48:42,389@Request E088823F)
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'transactionManager'
defined in ServletContext resource [/WEB-INF/config/modulo-spring.xml]:
Cannot resolve reference to bean 'fabbricaSessioni'
while setting bean property 'entityManagerFactory';
nested exception is
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'fabbricaSessioni':
Post-processing of the FactoryBean's object failed;
nested exception is java.security.AccessControlException:
access denied ("java.lang.RuntimePermission" "accessClassInPackage.com.sun.proxy")
似乎谷歌已经做了一些更新,但春天的代理创建失败了。
我搜索了很多,但我没有找到任何东西......
这是我的applicationcontext.xml
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory">
<ref local="fabbricaSessioni" />
</property>
</bean>
<bean id="dataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
<property name="driverClass" value="com.mysql.jdbc.GoogleDriver" />
<property name="url" value="jdbc:google:mysql://xxxxx"/>
</bean>
<bean id="fabbricaSessioni" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" scope="singleton">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="persistenceUnitName" value="hib-persistence" />
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" />
</property>
<property name="jpaDialect">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaDialect" />
</property>
<property name="jpaProperties">
<props>
[hibernate props]
</props>
</property>
</bean>
<tx:advice id="advice1" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="search*" read-only="true" />
<tx:method name="find*" read-only="true" />
<tx:method name="*" />
</tx:attributes>
</tx:advice>
<aop:config proxy-target-class="true">
<aop:advisor advice-ref="advice1" pointcut="execution(* org.somepackage.*.*(..))" />
<aop:advisor advice-ref="advice1" pointcut="execution(* org.otherpackage.someclass.*(..))" />
</aop:config>
感谢任何帮助