首页 > 移动平台 > 详细

No Spring WebApplicationInitializer types detected on classpath

时间:2015-07-01 17:56:11      阅读:3457      评论:0      收藏:0      [点我收藏+]

在activiti中配置使用mysql,加入mysql的jar包后,启动tomcat报如下错误

七月 01, 2015 3:14:49 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
七月 01, 2015 3:14:53 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring FrameworkServlet ‘dispatcher‘
七月 01, 2015 3:14:53 下午 org.apache.catalina.core.ApplicationContext log
信息: Destroying Spring FrameworkServlet ‘dispatcher‘ 

解决方法:

在web.xml中添加下面这行

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
metadata-complete="true"
id="WebApp_ID" version="2.5">

No Spring WebApplicationInitializer types detected on classpath

原文:http://www.cnblogs.com/ZQ-BLOG/p/4613425.html

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!