升级web.xml中2.4我想我的web.xml升级从2.3到2.4,所以我改变了我的web.xml中这样的事情 -问题,而从2.3
<?xml version="1.0" encoding="UTF-8"?>
<!--<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1
Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">-->
<!--
===========================================================
WUI - WEB.XML
===========================================================
-->
<web-app id="WebApp" 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"
version="2.4">
<description>Odyssey Web User Interface</description>
<display-name>wui</display-name>
<!-- Uncomment this when setting up the prevent-multiple-login mechanism -->
<!--
<listener>
<listener-class>com.xxx.xxxnListener</listener-class>
</listener>
-->
<!-- local cache filter setup -->
<filter>
<filter-name>local-cache</filter-name>
<filter-class>com.xxx.xxxcheFilter</filter-class>
</filter>
....
当我开始我的服务器,我得到这个错误 -
weblogic.descriptor.DescriptorException:验证的问题被发现 问题:CVC-复杂type.2.4a:预计元素“的servlet类HTTP // @://java.sun。 com/xml/ns/javaee jsp-file @ http://java.sun.com/xml/ns/javaee'而不是'display-name @ http://java.sun.com/xml/ns/javaee'在这里元素servl et @ http://java.sun.com/xml/ns/javaee: 问题:cvc-complex-type.2.4a:预期元素的servlet-class @ http://java.sun.com/xml/ns /java.sun.com/xml/ns/javaee'代替'description @ http: //java.sun.com/xml/ns/javaee:
我使用的是weblogic 10.1服务器。
任何想法我应该做什么。
谢谢。
感谢Karianna指出。我会改变XML并将在这里发布有关结果。 – nasaa 2010-11-12 08:52:22
通过更改xml来获得它的工作。 – nasaa 2010-11-12 09:31:58
很高兴工作! – 2010-11-12 10:12:10