Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Architecture & Framework » Spring Framework  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 帮个忙看看这个错误怎么改(struts+spring+ibatis)
J2EE1982





发贴: 7
积分: -2
于 2005-04-08 18:27 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我写了个测试,运行时报错,我这个项目是用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

作者 Re:帮个忙看看这个错误怎么改 [Re:J2EE1982]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2005-04-09 01:23 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
java.io.FileNotFoundException: xml\ysRadio-sqlmap-config.xml


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:帮个忙看看这个错误怎么改 [Re:J2EE1982]
wes109

以梦为马

CJSDN高级会员


发贴: 857
积分: 60
于 2005-04-09 07:27 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不要把你的project建到C:\Documents and Settings
找个没有空格的目录





flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   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