weblogic启动报web.xml的warning, 请求大虾帮助
编辑web.xml:
其中前三行:
<?xml version= "1.0 " encoding= "UTF-8 "?>
<web-app xmlns= "http://java.sun.com/xml/ns/j2ee " xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance " id= "WebApp_1129740364312 " version= "2.4 " xsi:schemaLocation= "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd ">
<context-param>
启动weblogic时warning:
<2007-3-14 上午10时55分31秒 CST> <Warning> <HTTP> <BEA-101248> <[Application: 'D
:\ ', Module: 'approot ']: Deployment descriptor "web.xml " is malformed. Check aga
inst the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declarat
ion of element 'web-app '. (line 2, column 245).>
并不影响系统运行,但是我想知道问题出在什么地方,请哪位帮忙看看,谢谢!
[解决办法]
<web-app xmlns= "http://java.sun.com/xml/ns/j2ee " xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance " id= "WebApp_1129740364312 " version= "2.4 " xsi:schemaLocation= "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd ">
改成
<web-app>
[解决办法]
你的webloigc是什么版本?
你的WEB.XML是servlet2.4的,这要看你的weblogic是不是支持,不支持就要改成2.3的