JiafanZhou
版主
发贴: 736
积分: 61
|
于 2008-04-04 17:43
mazalet has pointed out that this is quite an obvious mistake that you should find out yourself how to fix. However I want to given you some hints here.
Before getting answers from us, look at this error again and think about it twice. If you still cannot figure out why, then go to my following sections.
- The error log mentioned "myspring.xml" is invalid, so all of the first, check to see if this file is in your project classpath.
- Check to see if this file is corrupted or have any funny characters.
- The error log also mentioned "destory-method" must be declared for element type "bean", think about why "destroy-method must be declared? If you still cannot figure out why, paste the "myspring.xml" file here.
- Think about using application context instead of bean factory. This is recommended by the Spring Framework.
Regards, Jiafan
When I was a kid I used to pray every night for a new bike. Then I realized that The Lord doesn't work that way, so I stole one and asked him to forgive me.
|