RAD 中的 Websphere Liberty server.xml 在密钥库上提供 cvc-complex-type.2.4.a
Websphere Liberty server.xml in RAD gives cvc-complex-type.2.4.a on keystore
我们安装了 WebSphere Liberty,并将服务器添加到 RAD/Eclipse。 server.xml 已创建,开箱即用错误,featuremanager 节点抱怨没有密钥库。所以我添加了我在在线示例中看到的密钥库:
但是该节点也出现错误:
cvc-complex-type.2.4.a: 发现以元素 'keyStore' 开头的无效内容。 '{include, variable,
featureManager、executor、config、fileset、logging、zosLogging}' 是预期的。
因此,如果密钥库无效,但它是必需的...该怎么办?
这是完整的 server.xml
<?xml version="1.0" encoding="UTF-8"?>
<server description="new server">
<!-- Enable features -->
<featureManager>
<feature>javaee-7.0</feature>
</featureManager>
<!-- This template enables security. To get the full use of all the capabilities, a keystore and user registry are required. -->
<!-- For the keystore, default keys are generated and stored in a keystore. To provide the keystore password, generate an
encoded password using bin/securityUtility encode and add it below in the password attribute of the keyStore element.
Then uncomment the keyStore element. -->
<keyStore id="defaultKeyStore" password="keyStorePwd"/>
<!--For a user registry configuration, configure your user registry. For example, configure a basic user registry using the
basicRegistry element. Specify your own user name below in the name attribute of the user element. For the password,
generate an encoded password using bin/securityUtility encode and add it in the password attribute of the user element.
Then uncomment the user element. -->
<basicRegistry id="basic" realm="BasicRealm">
<!-- <user name="yourUserName" password="" /> -->
</basicRegistry>
<!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
<httpEndpoint id="defaultHttpEndpoint"
httpPort="9080"
httpsPort="9443" />
<!-- Automatically expand WAR files and EAR files -->
<applicationManager autoExpand="true"/>
</server>
更新运行时后,您可能需要刷新Eclipse缓存的服务器元数据。转到首选项 |服务器 |运行时环境 | select 19006 运行时 |编辑... |高级选项 |刷新。
我们安装了 WebSphere Liberty,并将服务器添加到 RAD/Eclipse。 server.xml 已创建,开箱即用错误,featuremanager 节点抱怨没有密钥库。所以我添加了我在在线示例中看到的密钥库:
但是该节点也出现错误:
cvc-complex-type.2.4.a: 发现以元素 'keyStore' 开头的无效内容。 '{include, variable, featureManager、executor、config、fileset、logging、zosLogging}' 是预期的。
因此,如果密钥库无效,但它是必需的...该怎么办?
这是完整的 server.xml
<?xml version="1.0" encoding="UTF-8"?>
<server description="new server">
<!-- Enable features -->
<featureManager>
<feature>javaee-7.0</feature>
</featureManager>
<!-- This template enables security. To get the full use of all the capabilities, a keystore and user registry are required. -->
<!-- For the keystore, default keys are generated and stored in a keystore. To provide the keystore password, generate an
encoded password using bin/securityUtility encode and add it below in the password attribute of the keyStore element.
Then uncomment the keyStore element. -->
<keyStore id="defaultKeyStore" password="keyStorePwd"/>
<!--For a user registry configuration, configure your user registry. For example, configure a basic user registry using the
basicRegistry element. Specify your own user name below in the name attribute of the user element. For the password,
generate an encoded password using bin/securityUtility encode and add it in the password attribute of the user element.
Then uncomment the user element. -->
<basicRegistry id="basic" realm="BasicRealm">
<!-- <user name="yourUserName" password="" /> -->
</basicRegistry>
<!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
<httpEndpoint id="defaultHttpEndpoint"
httpPort="9080"
httpsPort="9443" />
<!-- Automatically expand WAR files and EAR files -->
<applicationManager autoExpand="true"/>
</server>
更新运行时后,您可能需要刷新Eclipse缓存的服务器元数据。转到首选项 |服务器 |运行时环境 | select 19006 运行时 |编辑... |高级选项 |刷新。