最近因为实在受不了tomcat在myeclipse中的表现,于是转到weblogic上,没想到第一个项目就没有部署成功。可能是我对tomcat的了解不够深入。
1.第一个问题就是
<2016-3-4 上午10时46分10秒 CST> <Error> <HTTP> <BEA-101371> <There was a failure when processing annotations for application D:\Oracle\Middleware\user_projects\domains\base_domain\autodeploy\JavaProjectHome_2.0. Please make sure that the annotations are valid. The error is sun.reflect.annotation.TypeNotPresentExceptionProxy>
出现这个问题,似乎是因为jar包的冲突,本来我在项目中添加了很多包,但是会导致这个问题。后来我只保留了commons-lang3-3.2.jar,freemaker-2.3.22.jar,javasist-3.11.0.GA.jar,ognl-3.0.6.jar,struts2-core-2.3.24.1.jar,xwork-core-2.3.24.1.jar,就没有这个问题了。