上一版本比较旧。现在配置了比较新的版本。可以选择安装myeclipse6.0.1的fullinstall。傻瓜式安装,已经把tomcat6.0和eclipse3.3.1都包括进去了。需要的可以向我要。
配置基本类似上一篇的5.5配置。但安装好之后发布tomcat会有问题。罗列了两个问题:
问题一: junit.framework.AssertionFailedError: Exception in constructor: testGetCountryList (org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DataSource' defined in URL [file:/D:/Eclipse3.2/SpringTest2/WebRoot/WEB-INF/classes/applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool Caused by: java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool 解决方法: 添加commons-pool.jar 问题二: junit.framework.AssertionFailedError: Exception in constructor: testGetCountryList (org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SessionFactory' defined in URL [file:/D:/Eclipse3.2/SpringTest2/WebRoot/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V 解决方法: 去掉 asm-2.2.3.jar
至此,tomcat已经无异常。