org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orgManager' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\test_01\WEB-INF\classes\applicationContext-beans.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\test_01\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed;
Error creating bean with name 'orgManager' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\test_01\WEB-INF\classes\applicationContext-beans.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\test_01\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is java.lang.ArrayIndexOutOfBoundsException: 01.这个是没有找到你配置文件Tomcat 6.0\webapps\test_01\WEB-INF\classes\applicationContext-beans.xml中的sessionFactory.你可以去到相应的目录找到文件,打开查看一下. 2.建议楼主把spring的配置文件贴出来..找找sessionFactory是否有问题! 3.这个数组越界的问题,是你定义了一个数组,但是,下标大于你定义的下标..还是具体问题具体分析.要看你的代码才能知道!
2。检查你的集合类中是否有值
看看action注入的配置是否正确
2.建议楼主把spring的配置文件贴出来..找找sessionFactory是否有问题!
3.这个数组越界的问题,是你定义了一个数组,但是,下标大于你定义的下标..还是具体问题具体分析.要看你的代码才能知道!