包含框架源码所遇到的有关问题

包含框架源码所遇到的问题
根据前篇的思路,将所有的struts2 hibernate spring3的源码全部放入到自己的项目中,可以更好地调试程序。
加入了使框架和程序能顺利通过编译的第三方包之后,部署到tomcat又遇到一些差包的问题,也解决了。
能顺利的启动,但在访问页面时却出现问题。找log4j日志文件发现:
11-2-23 下午9:59 main WARN com.opensymphony.xwork2.config.providers.InterceptorBuilder Unable to load config class org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor at interceptor - jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.0/webapps/exam/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:146:127 probably due to a missing jar, which might be fine if you never plan to use the validation interceptor
11-2-23 下午9:59 main ERROR com.opensymphony.xwork2.config.providers.InterceptorBuilder Actual exception

明白是少了包,能找到AnnotationValidationInterceptor 这个类。没有思路,却从csdn上的一个问答里面提示说没有加入xwork2.jar.
还ZTMD是。加入之后,就没有错,能正常启动,也能正常访问。

事后想想,可能是一种间接的引用了xwork2.jar里面的东西。