Tomcat6--> Tomcat7记录tomcat迁移出现的问题

摘要:

  搜集遇到tomcat升级问题及解决办法

1  org.apache.catalina.mbeans.ServerLifecycleListene问题描述:java.lang.ClassNotFoundException: org.apache.catalina.mbeans.ServerLifecycleListener

发现居然找不到这个类,然后把catatina.jar下载下来反编译一看mbenas这个文件夹居然是空的

解决办法:

tomcat 6.0.18以前,conf/server.xml里面的配置有这项

<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />注释掉就可以了

 

<!--<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /> -->

2  taglib definition not consistent with specification version

问题描述:java.lang.IllegalArgumentException: taglib definition not consistent with specification version

tomcat 6.0.18里面的web.xml里面的tag配置如下

1 <taglib> 
2        <taglib-uri>http://java.sun.com/jstl/core</taglib-uri> 
3        <taglib-location>/WEB-INF/c.tld</taglib-location> 
4 </taglib>
View Code

 

 

解决办法:

tomcat 7.0.25里面web.xml的tag配置应该如下所示

1 <jsp-config> 
2     <taglib> 
3         <taglib-uri>http://java.sun.com/jstl/core</taglib-uri> 
4         <taglib-location>/WEB-INF/c.tld</taglib-location> 
5     </taglib> 
6 </jsp-config>
View Code

 

posted @ 2013-04-29 13:38  空城夕  阅读(675)  评论(0编辑  收藏  举报