java.io.FileNotFoundException: class path resource [beans.xml] cannot be opened because it does not exist 解决方法
2010-11-25 10:17
1476 查看
没有找到beans.xml,首先确定你项目里有这个文件吗,如果没有请添加,或者你已经存在bean配置文件,只是名字不是beans.xml,请改正名字。此外还要注意最好把bans.xml加入到classpath里,就是放到你的包里。最简单的是放在src下就行。
如果在eclipse里面,具体操作:右键项目---->properties--->Java Build Path--->source--->Add Folder --->选择beans.xml。重启服务器就OK了。
如果在eclipse里面,具体操作:右键项目---->properties--->Java Build Path--->source--->Add Folder --->选择beans.xml。重启服务器就OK了。
相关文章推荐
- java.io.FileNotFoundException: class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist
- java.io.FileNotFoundException: class path resource [bean/test/User.hbm.xml] cannot be opened because it does not exist
- java.io.FileNotFoundException: class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist
- java.io.FileNotFoundException: class path resource [beans.xml] cannot be opened because it does not
- java.io.FileNotFoundException: class path resource [beans.xml] cannot be opened because it does not
- java.io.FileNotFoundException: class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist
- java.io.FileNotFoundException: class path resource ..cannot be opened because it does not exist
- java.io.FileNotFoundException: class path resource [spring.xml] cannot be opened because it does not
- java.io.FileNotFoundException: class path resource [bean.xml] cannot be opened because it does not e
- Spring错误:java.io.FileNotFoundException: class path resource ..cannot be opened because it does not e
- java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because
- eclipse项目报错怎么解决class path resource [beans.xml] cannot be opened because it does not exist
- java.io.FileNotFoundException: [WEB-INF/spring-servlet.xml] cannot be opened because it does not exist
- java.io.FileNotFoundException: class path resource [XXXXX.xml] cannot be opened
- Caused by: java.io.FileNotFoundException:... cannot be opened because it does not exist
- java.io.FileNotFoundException: class path resource [spring/ApplicationCont.xml] cannot be opened be
- [SSM/Junit]java.io.FileNotFoundException: class path resource [spring-mybatis.xml] cannot be opened
- java.io.FileNotFoundException class path resource [xxx.xml] cannot be opened
- java.io.FileNotFoundException: class path resource [XXXXX.xml] cannot be opened
- java.io.FileNotFoundException: class path resource [META-INF/xfire/services.xml] cannot be opened b