myeclipse6 hibernate spring 打开Hql 报 noSuchBeanDefinitionException问题
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="dataSource"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName"
value="oracle.jdbc.driver.OracleDriver">
</property>
<property name="url"
value="jdbc:oracle:thin:@192.168.1.218:1521:orcl">
</property>
<property name="username" value="ztdz"></property>
<property name="password" value="ztdz"></property>
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.Oracle9Dialect
</prop>
<prop key="hibernate.hbm2ddl.auto">update</prop>
</props>
</property>
<property name="mappingResources">
<list>
<value>ztdz/hibernate/obj/Users.hbm.xml</value>
</list>
</property>
</bean>
报错如附件图.
但如果另建一个项目,同样集成strus hibernate spring ,就能打开. applicationContext.xml 基本一样.
不知道是哪儿的问题,哪位大侠给指点一下