The web application [/myEdition] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped请去找mysql的驱动

解决方案 »

  1.   

    导了,但是有冲突,删除后出现了错误
    java.lang.NoSuchMethodError: com.opensymphony.xwork2.util.finder.UrlSet.<init>(Lcom/opensymphony/xwork2/util/finder/ClassLoaderInterface;Ljava/util/Set;)V
      

  2.   

    你用的struts2是哪个版本,要是低于2.1.8的话,把你的web.xml内容发出来,看下。。版本不一致配置不一样的
      

  3.   

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" 
    xmlns="http://java.sun.com/xml/ns/javaee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <!--struts 2  -->
    <filter><filter-name>struts2</filter-name>
    <filter-class>
       org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter
       </filter-class>
       </filter>
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
      
      <filter-mapping>
       <filter-name>struts2</filter-name>
       <url-pattern>/*</url-pattern>
      </filter-mapping>
      
      <!-- opensession in view -->
      <filter>
      <filter-name>openSessionInView</filter-name>
      <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
      </filter>
      
      <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>/WEB-INF/classes/applicationContext.xml</param-value>
      </context-param>
      <!--实例化spring容器  -->
       <listener>
      <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
      </listener>
      
      
      
       
      </web-app>
      

  4.   

      <filter-class>
        org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter
      </filter-class>换成<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>