Error: Projects containing version <unknown> deployment descriptors require XMI-format bindings or extensions files. ibm-web-bnd.xml

岁酱吖の 提交于 2019-12-04 04:13:35

Projects containing web.xml with version="2.4" or lower require ibm-web-bnd.xmi and ibm-web-ext.xmi.

Projects containing web.xml with version="2.5" or higher require ibm-web-bnd.xml and ibm-web-ext.xml.

Perhaps the change in tool versions has upgraded your web.xml version to 2.5, and now RAD is warning that this is incompatible with your web.xml?

In extension to the comment on bkail's answer (which is helpful) if you want to use web.xml version 2.5 you should use the following prolog and parent node. Technically the comment is inaccurate as the namespaces are missing http:// and will cause additional errors if you do not use this:

<?xml version="1.0" encoding="UTF-8"?>
<web-app
  xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  version="2.5">
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!