Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Architecture & Framework
» Spring Framework
打印话题 寄给朋友 订阅主题 |
作者 | 帮个忙看看这个错误怎么改(struts+spring+ibatis) |
J2EE1982
发贴: 7 积分: -2 |
于 2005-04-08 18:27
我写了个测试,运行时报错,我这个项目是用struts+spring+ibatis,是个音乐网站 我做的是后台,大家帮忙看看这个错误怎么改 /**************************** yesRadio-context1.xml是spring的配置文件 /************************** 出错信息 java.lang.ExceptionInInitializerError at yesRadio.software.user1.TestUserManager.setUp(TestUserManager.java:19) ...(Click for full stack trace)... Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in file [C:\Documents and Settings\wangxinyi66\jbproject\YesRadio\YesRadio\WEB-INF\yesRadio-context1.xml]: Initialization of bean failed; nested exception is java.io.FileNotFoundException: xml\ysRadio-sqlmap-config.xml (The system cannot find the file specified) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:300) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:205) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:136) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:230) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:284) at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:83) at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:68) at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:59) at yesRadio.software.user1.UserManager.<init>(UserManager.java:19) at yesRadio.software.user1.UserManager.<clinit>(UserManager.java:15) ... 11 more Caused by: java.io.FileNotFoundException: xml\ysRadio-sqlmap-config.xml (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.springframework.core.io.FileSystemResource.getInputStream(FileSystemResource.java:57) at org.springframework.orm.ibatis.SqlMapClientFactoryBean.afterPropertiesSet(SqlMapClientFactoryBean.java:108) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1057) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:287) ... 21 more
why edited on 2005-04-19 03:46
Java应用者与<IDE/环境> |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
12109 | 帮个忙看看这个错误怎么改(struts+spring+ibatis) | J2EE1982 | 2960 | 2005-04-08 18:27 |
9530 | Re:帮个忙看看这个错误怎么改 | floater | 60 | 2005-04-09 01:23 |
10492 | Re:帮个忙看看这个错误怎么改 | wes109 | 50 | 2005-04-09 07:27 |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |