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
|