隨筆-11  評論-0  文章-0  trackbacks-0
          Hi,

          I have a web application that was running on tomcat5.5. Now i want to deploy it on tomcat 6. when runing it, i got an error saying:

          org.apache.jasper.JasperException: java.lang.ClassCastException:org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor
                  at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
                  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:356)

          After a search, i found that DefaultAnnotationProcessor implements AnnotationProcessor and in tomcat 6 catalina.jar and jasper.jar both of them contains AnnotationProcessor interface in the same package. Some solution was suggested by kind people but it doesn't work for me, which is adding this line:

          <Loader delegate="true" />

          to the context element in the context.xml file of tomcat.

          Did any body face this problem?

          warm regards



          根據上面的描述,并修改了tomcat里的context.xml文件,在context 元素下添加
          <Loader delegate="true" /> 
          即可
          posted on 2010-08-31 17:42 王健 閱讀(414) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 临江市| 宜黄县| 宾川县| 阿拉善左旗| 周宁县| 河东区| 正镶白旗| 韶山市| 乌兰县| 友谊县| 牙克石市| 阳城县| 克什克腾旗| 澄迈县| 永寿县| 礼泉县| 道孚县| 宿松县| 怀集县| 准格尔旗| 肥西县| 谢通门县| 夏邑县| 南投县| 修武县| 高平市| 社旗县| 札达县| 广元市| 南和县| 邹城市| 盐池县| 安平县| 东乡县| 揭西县| 资中县| 那坡县| 东兰县| 遂溪县| 内黄县| 安乡县|