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

all kinds of web.xml errors

时间:2015-01-16 18:54:36      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:

在开启java服务器程序时候,web.xml中一直有各种各样错误,查找解决方案好久,都没有靠谱的,头大。忽然看到一条,司马当成活马医:http://stackoverflow.com/questions/13437569/what-does-this-web-xml-error-mean,其中一条解决方案如下:

replace

xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">

with

xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee;http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">

The solution is that you have to put semicolon between URLs

I am sure you will not get the error again :)

很好,try it and all errors gone. solved perfectly.

all kinds of web.xml errors

标签:

原文地址:http://www.cnblogs.com/playerboy/p/4229302.html

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