spring 配置文件的问题 如果要是ssh框架的话,要好好看看你的包是不少了或是包导重了~!不同名同class 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你写个main方法把配置文件读一边啊那样如果你有错抱出来的至少是人看的懂的错 Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener 是Listener启动报错,你的tomcat版本是多少?可以要配成servlet 就是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> <context-param> <param-name> contextConfigLocation </param-name> <param-value> /WEB-INF/classes/hibernate.cfg.xml /WEB-INF/classes/applicationContext.xml </param-value> </context-param>这里空格分割也一样。 pizzame 兄所说的asm是什么东东??? 终于调通了。谢谢各位了。原因是包引用的问题。少commons-digester-1.8.jar 和commons-beanutils.jar还有asm.jar和asm-2.2.3.jar重复了。多谢各位。 asm是个字节码库。呵呵~~如果你导入了cglib.jar一般都需要导入asm.jar。不过也有把他们两个打成一个包的cglib-asm.jar。在网上查些资料理解下吧。 tomcat同时架设两个Struts2项目报错 单独运行可以 问一sql语句。 压缩excel问题 天啊,难道就没人知道这段代码啥意思么??IT界要倒闭了么…… Java怎么获得点击网页时的超链接代码 求一个用户上网时时监测程序 [200分]hibernate映射文件中的cascade和inverse什么怎样配合使用,什么时候该用inverse,什么时候用cascade="all-delete-orphan"呢? 在线等谁知道如何配置SmartClient 的 如何才有网格?? quartz一个小问题 中间件 100分 急求 struts2 标签 实现自动勾选功能的代码
<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>
<param-name> contextConfigLocation </param-name>
<param-value> /WEB-INF/classes/hibernate.cfg.xml /WEB-INF/classes/applicationContext.xml </param-value>
</context-param>
这里空格分割也一样。
原因是包引用的问题。少commons-digester-1.8.jar 和commons-beanutils.jar
还有asm.jar和asm-2.2.3.jar重复了。
多谢各位。