引用的文件在 Liberty server.xml 文件中包含错误

问题描述 投票:0回答:2

我在 server.xml 文件 liberty 服务器上收到以下错误。我无法解决这个问题。

引用的文件包含错误(文件:/D:/workspaces/myprojects/.metadata/.plugins/com.ibm.ws.st.core/Liberty Runtime/server.xsd)。有关详细信息,请右键单击问题视图中的消息,然后 选择“显示详细信息...”

**我的 server.xsd 文件 **

<?xml version="1.0" encoding="UTF-8"?> 
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ext="http://www.ibm.com/xmlns/dde/schema/annotation/ext"> 
    <xsd:complexType name="com.ibm.ws.app.manager.webappcfg"> 
        <xsd:annotation> 
            <xsd:documentation>Defines the properties of a web application.</xsd:documentation> 
            <xsd:appinfo> 
                <ext:label>Web Application</ext:label> 
            </xsd:appinfo> 
        </xsd:annotation> 
        <xsd:choice minOccurs="0" maxOccurs="unbounded"> 
            <xsd:element name="startAfter" type="com.ibm.ws.app.manager-factory"> 
                <xsd:annotation> 
                    <xsd:documentation>Specifies applications that are required to start before this application can begin starting. </xsd:documentation> 
                    <xsd:appinfo> 
                        <ext:label>Start After</ext:label> 
                    </xsd:appinfo> 
                </xsd:annotation> 
            </xsd:element> 
            <xsd:element name="classloader" type="com.ibm.ws.classloading.classloader"> 
            .
            .
            .

我想摆脱这个错误。

错误详情:

enter image description here

eclipse websphere websphere-liberty
2个回答
0
投票

这似乎是 Rational Application Developer 中的一个错误。

一系列广泛的选项如下:

  1. 针对该产品打开支持案例(假设您有支持合同等)。

  2. 如果您不关心维护受支持的产品安装,从技术上来说,可以通过从 Eclipse Marketplace 安装 Liberty Developer Tools(以前称为“WebSphere Developer Tools”)来安装类似的功能集。典型的 Eclipse 安装使其安装的内容相当透明,因此这可能不算是太多“黑客”,但可以想象,它可能会削弱您获得后续支持的能力。 (我只是给出一般性警告。我并不声称了解您的具体情况)。假设这是您的一个选择,我会尝试一个新的、单独的安装,而不是我已经依赖的安装。

  3. 如果您只是对在 Open Liberty / WebSphere Liberty 上开发 Jakarta EE 和 MicroProfile 应用程序感兴趣,而不是您从 RAD(或 LDT/WDT)询问的特定工具集感兴趣,您可以看看我们新的 Liberty Tools仍处于“早期发布”状态。

抱歉,如果指向完全不同的功能(组件)有点牵强,但在 2. 和 3. 中都有类似的 server.xml XSD 生成,并且我确实相信这个特定问题不存在(或已修复)在每个选项中。


0
投票

我遇到了同样的问题,并修复了它(在评论的最后提到)。 RAD 的 server.xsd 是旧的,需要用当前的 server.xsd 重新生成。

  1. 重新生成它:

    cd C:\Program Files\IBM\WebSphere\Liberty 在 ools 中
    java -jar ws-schemagen.jar C:\server.xsd

  2. 替换到 RAD 的 Liberty 文件夹中:
    ...IBM ionalsdp\myworkspace\.metadata\.plugin

© www.soinside.com 2019 - 2024. All rights reserved.