Topic: 帮个忙看看这个错误怎么改(struts+spring+ibatis)

  Print this page

1.帮个忙看看这个错误怎么改(struts+spring+ibatis) Copy to clipboard
Posted by: J2EE1982
Posted on: 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

2.Re:帮个忙看看这个错误怎么改 [Re: J2EE1982] Copy to clipboard
Posted by: floater
Posted on: 2005-04-09 01:23

java.io.FileNotFoundException: xml\ysRadio-sqlmap-config.xml

3.Re:帮个忙看看这个错误怎么改 [Re: J2EE1982] Copy to clipboard
Posted by: wes109
Posted on: 2005-04-09 07:27

不要把你的project建到C:\Documents and Settings
找个没有空格的目录


   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