2
votes

We are building a WAR file to be deployed on an IBM websphere server. We created our configuration files according to the websphere samples:

ibm-wb-bnd.xml

<?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_1.xsd"
         version="1.0">

    <!-- snipped settings -->
</web-bnd>

ibm-web-ext.xml

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

    <!-- snipped settings -->
</web-ext>

This works and the deployed WAR file works. However, in eclipse we get a warning telling us the "No grammar constraints (DTD or XML Schema) referenced in the document."

I would have expected this without the schema parameters, but since we included that, I'm wondering what the reason for this warning is. Does it have to do with the fact that the URL websphere.ibm.com does not seem to exist? Why would the IBM samples contain these addresses then? Can I supply the schema files differently?

1

1 Answers

1
votes

WARNING: I did not try that yet!

According to http://orebmann.blogspot.com.br/2013/11/deployment-descriptor-extensions-and.html these schemas are available in the <WAS_INSTALL_ROOT>/properties/schemas folder.

You can copy to your development machine and add in Eclipse's catalog for schemas.