将tomcat源码用ant编译成功了,导入eclipse编译却报错,包也加了。
加了如下包:
ant.jar commons-collections-3.1.jar commons-dbcp-1.2.2.jar commons-logging-1.1.1.jar 
commons-pool-1.3.jar  org.eclipse.jdt.core_3.3.1.v_780_R33x.jar
ant工具1.7 tomcat6.026 eclipse3.3
按照网上步骤,ant下载了tomcat源码依赖的包,并编译成功。然后将源码导入eclipse,编译出90个错误。
典型的错误如下:(1)The import javax.wsdl cannot be resolved
(2)The import javax.xml.rpc cannot be resolved
(3)ExtensibilityElement cannot be resolved to a type ServiceRefFactory.java
(4)HandlerRegistry cannot be resolved to a type ServiceRefFactory.java
(5)the type SessionListener is already defined
(6)The type SetCharacterEncodingFilter is already defined
(1)(2)这两类型错误缺包,我补充了就不报错了。但其他人不用补充额外的包都行的。不知道怎么回事》
(5)(6)这两类型错误真是不知怎么解决。就是那个SessionListener 已经存在了~
请哪位高手帮帮我啊