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

来源:互联网 发布:什么是波士顿矩阵 编辑:程序博客网 时间:2024/05/30 04:26

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

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

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

贴解答如下:

2010/4/2 sandeep kotha <sandeep4u.kotha@gmail.com>:> 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 isspecified by servlet specification!Regards
吐舌头tom猫的亲们真给力,注意后面的俩字--servlet specification!看来到时候得多看看这些specification


0 0
原创粉丝点击