把weblogic部署到myeclipse下面,启动weblogic时就会报错:Deployment deor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'.

这是web.xml的配置出错了,不能用以前这个:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" 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"
>
</web-app>

这种格式,需要换成:

<?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">
<web-app>
weblogic部署到myeclipse后web.xml的问题.
</web-app>

这种格式,问题解决。。

相关文章:

  • 2021-05-18
  • 2021-09-29
  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
猜你喜欢
  • 2021-07-18
  • 2022-02-07
  • 2021-05-25
  • 2022-02-07
  • 2021-07-11
  • 2021-03-31
相关资源
相似解决方案