如果要是ssh框架的话,要好好看看你的包是不少了
或是包导重了~!不同名同class

解决方案 »

  1.   

    你写个main方法把配置文件读一边啊那样如果你有错抱出来的至少是人看的懂的错
      

  2.   

    Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener 是Listener启动报错,你的tomcat版本是多少?可以要配成servlet
      

  3.   

    就是tomcat6启动时配置web.xml时报错。郁闷。<?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" 
    xmlns="http://java.sun.com/xml/ns/j2ee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
      
      <context-param>
       <param-name>contextConfigLocation</param-name>
       <param-value>/WEB-INF/classes/hibernate.cfg.xml,/WEB-INF/classes/applicationContext.xml</param-value>
      </context-param>
     
      <listener>
       <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
      </listener> <!-- 
     <servlet>
       <servlet-name>context</servlet-name>
       <servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
    </servlet>
     -->
    </web-app>
      

  4.   

    <context-param> 
       <param-name> contextConfigLocation </param-name> 
       <param-value> /WEB-INF/classes/hibernate.cfg.xml  /WEB-INF/classes/applicationContext.xml </param-value> 
       </context-param>
    这里空格分割也一样。
      

  5.   

    pizzame 兄所说的asm是什么东东???
      

  6.   

    终于调通了。谢谢各位了。
    原因是包引用的问题。少commons-digester-1.8.jar 和commons-beanutils.jar
    还有asm.jar和asm-2.2.3.jar重复了。
    多谢各位。
      

  7.   

    asm是个字节码库。呵呵~~如果你导入了cglib.jar一般都需要导入asm.jar。不过也有把他们两个打成一个包的cglib-asm.jar。在网上查些资料理解下吧。