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

根据前篇的思路,将所有的struts2 hibernate spring3的源码全部放入到自己的项目中,可以更好地调试程序。
加入了使框架和程序能顺利通过编译的第三方包之后,部署到tomcat又遇到一些差包的问题,也解决了。
能顺利的启动,但在访问页面时却出现问题。找log4j日志文件发现:
11-2-23 下午9:59 main WARN com.opensymphony.xwork2.config.providers.InterceptorBuilder [color=red][b]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 [/b][/color]
11-2-23 下午9:59 main ERROR com.opensymphony.xwork2.config.providers.InterceptorBuilder Actual exception

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

事后想想,可能是一种间接的引用了xwork2.jar里面的东西。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值