Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path reso
来源:互联网 发布:python网络爬虫源码 编辑:程序博客网 时间:2024/05/23 02:09
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed;nested exception is java.io.FileNotFoundException: class path resource [user.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1488)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
spring 配置文件 ,配置了一个 映射映射文件,有点不是很明白。这不是hibernate配置文件吗?spring中怎么又也要用到hibernate?
<bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.show_sql" >true</prop>
<prop key="hibernate.format_sql" >true</prop>
<prop key="hibernate.hbm2ddl.auto">update</prop>
</props>
</property>
<property name="mappingResources">
<list>
<value>user.xml</value>
</list>
</property>
</bean>
- Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path reso
- Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:问题解决
- Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:
- Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:
- Invocation of init method failed; nested exception is java.lang.NoSuchMethodError
- Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/
- Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'sessionFa
- Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:问题解决
- Invocation of init method failed; nested exception is java.lang.NoSuchMethod
- Invocation of init method failed; nested exception is java.lang.IllegalStateException:
- Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Not a mana
- Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [
- Invocation of init method failed; nested exception is org.hibernate.PropertyAccessException: Illegal
- Invocation of init method failed; nested exception is javax.naming.CommunicationException [Root exce
- CXF2.7.0 Error creating bean with name '***': Invocation of init method failed; nested exception is
- Invocation of init method failed; nested exception is org.apache.ibatis.binding.BindingException: In
- ssh框架: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException:
- Invocation of init method failed; nested exception is org.hibernate.MappingException
- WPS:一键加密
- IntentService说明
- Linux下C语言操作数据库
- IOS 开发进阶--多线程和网络--NSURLSession详细解
- 如何生成Android的debug使用的keystore
- Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path reso
- unity中xml读取
- Window7安装Perl的Image-Magick模块
- Good
- C++关于编译链接方面的问题
- zedboard device-tree
- X产品立项的头脑风暴
- Memcached windows 下安装与测试
- UVA10308