Error. Projects containing deployment descriptors of the <unknown> version require XML binding or extension files. Ibm web bnd.xml

I updated the editor from Rad 7.5 to 8 and maven from 2 to 3 . This happens right after importing existing maven projects into RAD 8, but I have no errors in any pom files.

The problem is with two xml files:

Projects containing version deployment descriptors require XML binding or extension files. IBM-web-bnd.xml / DocViewerWeb / WebContent / WEB -INF Unknown confirmation Message

Projects containing version deployment descriptors require XML binding or extension files. IBM-web-ext.xml / DocViewerWeb / WebContent / WEB -INF Unknown confirmation Message

The contents of these two files:

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

I posted another related issue : JSR250: CommonAnnotations for Java, 2.3: @Resource methods must be setters that follow the standard JavaBeans conventions

+5
source share
2 answers

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

, web.xml version="2.5" , ibm-web-bnd. xml ibm-web-ext. xml.

, web.xml 2.5, RAD , web.xml?

+9

bkail ( ), web.xml 2.5, node. , 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">
+2

All Articles