Error creating bean with name''
applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>
<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">
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation"
value="classpath:hibernate.cfg.xml">
</property>
</bean>
<bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
<property name="sessionFactory" ref="sessionFactory" ></property>
</bean>
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<bean id="abstractProxy" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean" abstract="true">
<property name="transactionManager" ref="transactionManager"></property>
<property name="transactionAttributes">
<props>
<!-- 第一句是hql出现中文乱码问题 -->
<prop key="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</prop>
<prop key="save*">PROPAGATION_REQUIRED</prop>
<prop key="update*">PROPAGATION_REQUIRED</prop>
<prop key="delete*">PROPAGATION_REQUIRED</prop>
<prop key="select*">PROPAGATION_REQUIRED,readOnly</prop>
</props>
</property>
</bean>
</beans>
applicationContext_cf.xml
<?xml version="1.0" encoding="UTF-8"?>
<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">
<!-- 判断登陆用户和密码 -->
<bean id="IUserDao" class="com.fz.commons.dao.UserDaoImpl">
<property name="hibernateTemplate" ref="hibernateTemplate"></property>
</bean>
<bean id="IUserServive" class="com.fz.commons.business.UserServiceImpl">
<property name="IUserDao" ref="IUserDao"></property>
</bean>
<!-- 登陆成功后的所属的菜单 -->
<bean id="IRoleMenuDao"
class="com.fz.commons.dao.RoleMenuDaoImpl">
<property name="hibernateTemplate" ref="hibernateTemplate"></property>
</bean>
<bean id="IRoleMenuService"
class="com.fz.commons.business.RoleMenuServiceImpl">
<property name="IRoleMenuDao" ref="IRoleMenuDao"></property>
</bean>
<bean id="listUserDao" class="com.fz.commons.dao.ListUserDaoImpl">
<property name="hibernateTemplate" ref="hibernateTemplate"></property>
</bean>
<bean id="listUerService" class="com.fz.commons.business.ListUserServiceImpl">
<property name="listUserDaoProxy" ref="listUserDao"></property>
</bean>
<bean id="listUserDaoProxy" parent="abstractProxy">
<property name="target" ref="listUerService"></property>
</bean>
<bean name="/user" class="com.fz.struts.action.UserAction">
<property name="listUerService" ref="listUserDaoProxy"></property>
</bean>
</beans>