升級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