简体   繁体   中英

Websphere Liberty server.xml featuremanager error

In RAD, our Websphere Liberty server.xml shows with a red error whose description is:

The enabled features require that a keyStore element and a user registry are defined in the server configuration.
Use the server configuration editor to add these items.

But, we DO have those things. The passwords are not real pwds. Also this is not the whole server.xml, just the relevant parts.

server.xml

<!-- Enable features -->
<featureManager>
    <feature>localConnector-1.0</feature>
    <feature>javaee-8.0</feature>
    <feature>jaxws-2.2</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. -->

     <sslDefault outboundSSLRef="alternateSSLSettings"/>

     <ssl id="defaultSSLConfig" keyStoreRef="defaultKeyStore" trustStoreRef="defaultTrustStore"/>

     <keyStore id="defaultKeyStore" location="C:\Temp\ARO\ServerKeyFile.jks" password="{xor}MTArbQg2LDo=" type="JKS"/>

     <keyStore id="defaultTrustStore" location="C:\Temp\ARO\ServerKeyFile.jks" password="{xor}MTArbQg2LDo=" type="JKS"/>

     <ssl id="alternateSSLSettings" keyStoreRef="alternateKeyStore" trustStoreRef="alternateTrustStore"/>

     <keyStore id="alternateKeyStore" location="C:\Temp\ARO\ServerKeyFile.jks" password="{xor}MTArbQg2LDo=" type="JKS"/>

     <keyStore id="alternateTrustStore" location="C:\Temp\ARO\ServerKeyFile.jks" password="{xor}MTArbQg2LDo=" type="JKS"/>


<!--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="admin" password="zzzzzz"/>
</basicRegistry>


<!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
<httpEndpoint httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/>

<!-- Automatically expand WAR files and EAR files -->
<applicationManager autoExpand="true"/>

<library id="DB2JCCLib">
    <fileset dir="C:\Program Files\IBM\SQLLIB\java" includes="db2jcc4.jar db2jcc.jar db2jcc_license_cu.jar"/>
</library>

<dataSource id="aroDataSource" jndiName="jdbc/aro" type="javax.sql.DataSource">
    <jdbcDriver libraryRef="DB2JCCLib"/>
    <properties.db2.jcc databaseName="DBNAME" password="zzz" portNumber="60000" serverName="1.2.3.4" user="catsapp"/>
</dataSource>


<applicationMonitor updateTrigger="mbean"/>

<application id="AROEAR" location="AROEAR.ear" type="ear"/>

What am I missing here?

当我server.xml下行添加到server.xml ,它消除了我的错误。

<keyStore id="defaultKeyStore" password="keypassword"/>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM