简体   繁体   English

错误:包含版本的项目 <unknown> 部署描述符需要XMI格式绑定或扩展文件。 IBM的web-bnd.xml

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

I have upgraded editor from Rad 7.5 to 8 and maven 2 to 3 . 我已将编辑器从Rad 7.5升级到8,并将编辑器2升级到3 This happens just after importing existing maven projects in RAD 8, but I have no errors on any pom files. 这是在RAD 8中导入现有的maven项目之后发生的,但我在任何pom文件上都没有错误。

The issue is with two xml files : 问题是两个xml文件:

Projects containing version deployment descriptors require XMI-format bindings or extensions files. 包含版本部署描述符的项目需要XMI格式绑定或扩展文件。 ibm-web-bnd.xml /DocViewerWeb/WebContent/WEB-INF Unknown Validation Message ibm-web-bnd.xml / DocViewerWeb / WebContent / WEB-INF未知验证消息

Projects containing version deployment descriptors require XMI-format bindings or extensions files. 包含版本部署描述符的项目需要XMI格式绑定或扩展文件。 ibm-web-ext.xml /DocViewerWeb/WebContent/WEB-INF Unknown Validation Message ibm-web-ext.xml / DocViewerWeb / WebContent / WEB-INF未知验证消息

Contents of those two files are: 这两个文件的内容是:

<?xml version="1.0" encoding="UTF-8"?>
<web-bnd 
    xmlns="http://websphere.ibm.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-bnd_1_0.xsd"
    version="1.0">

    <virtual-host name="default_host" />

  <ejb-ref name="ejb/MaintenanceServices" binding-name="ejblocal:com.tscdv.document.b.MaintenanceServices" />
  <ejb-ref name="ejb/ServiceTipsDocumentServices" binding-name="ejblocal:com.tscdv.document.b.ServiceTipsDocumentServices" />
  <ejb-ref name="ejb/ActivityDocumentServices" binding-name="ejblocal:com.tscdv.document.b.ActivityDocumentServices" />
  <ejb-ref name="ejb/BulletinDocumentServices" binding-name="ejblocal:com.tscdv.document.b.BulletinDocumentServices" />
  <ejb-ref name="ejb/CommonService" binding-name="ejblocal:com.tscdv.document.b.CommonService" />
  <ejb-ref name="ejb/AdminServices" binding-name="ejblocal:com.tscdv.document.b.AdminServices" />

</web-bnd>

and

<?xml version="1.0" encoding="UTF-8"?>
<web-ext
    xmlns="http://websphere.ibm.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_0.xsd"
    version="1.0">

    <reload-interval value="3"/>
    <context-root uri="DocViewerWeb" />
    <enable-directory-browsing value="true"/>
    <enable-file-serving value="true"/>
    <enable-reloading value="true"/>
    <enable-serving-servlets-by-class-name value="true" />

</web-ext>

What could be the problem here? 这可能是什么问题?

I have posted another possibly related issue : JSR250: CommonAnnotations for Java, 2.3: @Resource methods must be setters that follow the standard JavaBeans convention 我发布了另一个可能相关的问题JSR250:Java的CommonAnnotations,2.3:@Resource方法必须是遵循标准JavaBeans约定的setter

Projects containing web.xml with version="2.4" or lower require ibm-web-bnd. 包含version="2.4"或更低version="2.4" web.xml的项目需要ibm-web-bnd。 xmi and ibm-web-ext. xmi和ibm-web-ext。 xmi . xmi

Projects containing web.xml with version="2.5" or higher require ibm-web-bnd. 包含version="2.5"或更高version="2.5" web.xml的项目需要ibm-web-bnd。 xml and ibm-web-ext. xml和ibm-web-ext。 xml . 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? 也许工具版本的更改已将web.xml版本升级到2.5,现在RAD警告这与您的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. 如果您想使用web.xml版本2.5,请扩展到对bkail答案的评论(这是有用的),您应该使用以下prolog和父节点。 Technically the comment is inaccurate as the namespaces are missing http:// and will cause additional errors if you do not use this: 从技术上讲,注释是不准确的,因为命名空间缺少http://如果你不使用它会导致其他错误:

<?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">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 不处理文件ibm-web-bnd.xml中定义的绑定 - bindings defined in file ibm-web-bnd.xml are not processed 模块包括 ibm-web-bnd.xml 和 ibm-web-ext.xml 文件。 发生错误 401、404 等时如何显示 Error.jsp 文件? - Module includes ibm-web-bnd.xml and ibm-web-ext.xml files. How do I show an Error.jsp file when error 401, 404 etc. happen? websphere ibm-web-bnd.xml 是否有新的模式位置? - Is there a new schema location for websphere ibm-web-bnd.xml? 为什么我们需要ibm-web-bnd.xml和ibm-web-ext.xml? - Why we need ibm-web-bnd.xml and ibm-web-ext.xml? 无法在归档文件“ xxxx”中加载资源“ WEB-INF / ibm-web-bnd.xml” - Could not load resource “WEB-INF/ibm-web-bnd.xml” in archive “xxxx” 在 ibm-web-bnd.xml 中找不到名称为“jdbc/devl”的资源引用 - Resource reference with name 'jdbc/devl' not found in ibm-web-bnd.xml 如何为Websphere 7创建ibm-web-bnd.xmi文件 - how to create ibm-web-bnd.xmi file for websphere 7 我可以在ibm-web-bnd.xmi文件中为WebSphere设置类加载器策略吗? - Can I set the classloader policy for WebSphere in the ibm-web-bnd.xmi file? Maven Ear插件未启动ibm-application-bnd.xmi - Maven ear plugin not picking up ibm-application-bnd.xmi websphere 部署生成的 web_merged.xml 和 ibm-metadata.xml 文件是什么? - What are the web_merged.xml and ibm-metadata.xml files generated by websphere deployment?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM