码迷,mamicode.com
首页 > Web开发 > 详细

web.xml在<init-param>一个错误

时间:2015-07-29 13:46:53      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:

Description ResourcePathLocationType

cvc-complex-type.2.4.a: Invalid content was found starting with element ‘init-param‘. One of ‘{"http://java.sun.com/xml/ns/javaee":enabled, "http://java.sun.com/xml/ns/javaee":async-supported, "http://java.sun.com/xml/ns/javaee":run-as, "http://java.sun.com/xml/ns/javaee":security-role-ref, "http://java.sun.com/xml/ns/javaee":multipart-config}‘ is expected.web.xml/WebContent/WEB-INFline 40XML Problem


控制台报错:严重: Servlet /*** threw load() exception
java.lang.ClassNotFoundException: MyApplication


敢情<init-param>要放在<load-on-startup>1</load-on-startup>在之上

版权声明:本文博客原创文章。博客,未经同意,不得转载。

web.xml在&lt;init-param&gt;一个错误

标签:

原文地址:http://www.cnblogs.com/hrhguanli/p/4685659.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!