升级到tomcat7.0碰到的问题
2013-07-28 10:23
609 查看
今天把tomcat从6.0.18升级到7.0.25,发现了两个问题
问题1
java.lang.ClassNotFoundException: org.apache.catalina.mbeans.ServerLifecycleListener
发现居然找不到这个类,然后把catatina.jar下载下来反编译一看mbenas这个文件夹居然是空的
解决办法
6.0.18以前,conf/server.xml里面的配置有这项
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />注释掉就可以了
<!--<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /> -->
问题2
严重: Begin event threw exception
java.lang.IllegalArgumentException: taglib definition not consistent with specification version
tomcat 6.0.18里面的web.xml里面的tab配置如下
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
tomcat 7.0.25里面web.xml的tag配置应该如下所示
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
</jsp-config>
问题1
java.lang.ClassNotFoundException: org.apache.catalina.mbeans.ServerLifecycleListener
发现居然找不到这个类,然后把catatina.jar下载下来反编译一看mbenas这个文件夹居然是空的
解决办法
6.0.18以前,conf/server.xml里面的配置有这项
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />注释掉就可以了
<!--<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /> -->
问题2
严重: Begin event threw exception
java.lang.IllegalArgumentException: taglib definition not consistent with specification version
tomcat 6.0.18里面的web.xml里面的tab配置如下
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
tomcat 7.0.25里面web.xml的tag配置应该如下所示
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
</jsp-config>
相关文章推荐
- 升级到tomcat7.0碰到的问题
- Tomcat 7.0用户名与密码的设置问题
- 解决在Tomcat7.0以上版本,Invalid character found in the request target问题
- tomcat7.0和servlet开发问题
- Apache+Tomcat整合后碰到的问题
- Tomcat修改端口的方法及碰到的问题
- 项目从tomcat5升级到tomcat6中、el表达式与jsp版本不兼容问题、the JDBC Driver has been forcibly unregistered)
- SLM 7.0 安装过程中碰到的问题 oracle software is not installed.
- 从oracle10g 10.2.0.1 升级到10.2.0.4碰到的问题及解决
- tomcat7.0和servlet开发问题
- Eclipse中配置Tomcat碰到Server Tomcat v6.0 Server at localhost failed to start问题
- 使用bugly做应用升级时android 7.0上遇到的问题
- AOP Tomcat7.0 版本报错解决问题 这是个BUG 问题SPR-11446
- ASP.NET 升级AJAX 配置以及碰到的几个问题
- 升级vs2010我碰到的一个问题,以及解决方法
- Tomcat 7.0中使用自定义标签的问题
- 升级到Xcode7.0 不能联网的问题
- tomcat 7.0 管理员登录时"401 Unauthorized" 问题解决方法
- 升级log4j2,tomcat--7.0.16 启动就OOM,蛋疼的问题
- 关于Tomcat 7.0 SSL配置的问题