也谈tomcat之启动就报exception starting filter struts2 java.lang.ClassNotFoundException

昨天还用的好好的,今天新建一个项目后就开始报错。

郁闷至极,找了好多文章,花了5个小时。到现在,终于因apache的一封读者来信(mailing list),有种醍醐灌顶的感觉。

我把struts的jar包放到了自定义名字的folder里,结果导出的war包里也有,而不像网上所说的里面没有。

贴解答如下:

2010/4/2 sandeep kotha :
> In-spite of having *struts2-core-2.1.8.1.jar *under
> /WebContent/WEB-INF/lib/struts-2.1.8.1/ . im getting the below error .

Is that /WEB-INF/lib/struts-2.1.8.1/ a directory ???
                             ^^^^^^^^^^^^^^^^^
If so, your jars cannot be found, move them to /WEB-INF/lib as is
specified by servlet specification!


Regards
tom猫的亲们真给力,注意后面的俩字--servlet specification!看来到时候得多看看这些specification


你可能感兴趣的:(也谈tomcat之启动就报exception starting filter struts2 java.lang.ClassNotFoundException)