
SSH整合报错,求大神
最近新学的ssh,写了给很简单的登陆的例子,然后报错。错误是:严重:Errorconfiguringapplicationlistenerofclassorg.sprin...
最近新学的ssh,写了给很简单的登陆的例子,然后报错。
错误是:
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLinstener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderLinstener
我在网上查了许多资料,说少spring-web.jar包,我不少这个包,我特地检查了好几遍,真的不少。
我用的TomCat6+MyEclipse8.6,tomcat缓存我也清过了,后来还是不行,我就把tomcat和MyEclipse都重装了一遍。。结果还是报这个错。
以下是我的web.xml文件
<?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">
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderLinstener
</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
怎么办啊,求大神解答 展开
错误是:
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLinstener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderLinstener
我在网上查了许多资料,说少spring-web.jar包,我不少这个包,我特地检查了好几遍,真的不少。
我用的TomCat6+MyEclipse8.6,tomcat缓存我也清过了,后来还是不行,我就把tomcat和MyEclipse都重装了一遍。。结果还是报这个错。
以下是我的web.xml文件
<?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">
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderLinstener
</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
怎么办啊,求大神解答 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询