WebSphere 8.5.5.11 如何处理 web.xml 等部署描述符中的选项卡?

How does WebSphere 8.5.5.11 handle tabs inside deployment descriptors such as web.xml?

部署 maximo.ear 后,我 运行 遇到了一些奇怪的错误。一个是 \t\t\t java.langString:

AbstractInjec E CWNEN0009E: The injection engine failed to process the XML code from the deployment descriptor due to the following error: Referenced class could not be loaded : java.lang.String

此错误似乎很奇怪,因为已整理 XML 的行为可能与未整理的部署不同?我认为 >< 之间的任何数据都会 trim 任何制表符和换行符?

以下是两个示例...第一个已整理,第二个未整理。

我是 XML 的新手,所以我不太确定 XML 数据的行为方式或制表符和换行符的规范。

    <env-entry>
    <description>
        Indicates whether to use Application Server security or not
    </description>
    <env-entry-name>
        useAppServerSecurity
    </env-entry-name>
    <env-entry-type>
        java.lang.String
    </env-entry-type>
    <env-entry-value>
        1
    </env-entry-value>
</env-entry>

<env-entry>
    <description>Indicates whether to use Application Server security or not</description>
    <env-entry-name>useAppServerSecurity</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>1</env-entry-value>
</env-entry>

标签内的数据(包括制表符、换行符和空格)被视为数据的一部分。最好不要整理你的 XML 并且只有标签之间的数据值没有任何格式。