zoukankan      html  css  js  c++  java
  • 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
    计划、执行、每天高效的活着学着
  • 相关阅读:
    java设计模式----迭代器模式和组合模式
    Redis实现消息的发布/订阅
    java设计模式----模板方法模式
    java设计模式----适配器模式
    Filter注入对象
    java设计模式----命令模式
    css3中animation的应用
    bootstrap的学习注意点
    关于animate的一些属性
    ie的兼容方法,条件注释的方法
  • 原文地址:https://www.cnblogs.com/huxiaoyun90/p/3050649.html
Copyright © 2011-2022 走看看