We installed WebSphere Liberty and I added the server to RAD/Eclipse. The server.xml was created and had errors right out of the box with the featuremanager node complaining that there was no keystore. So I added the keystore as I saw in an online example:
But that node ALSO gets an error:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'keyStore'. One of '{include, variable, featureManager, executor, config, fileset, logging, zosLogging}' is expected.
So if keystore isn't valid, but it's required...what to do?
Here's the full 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>
After updating the runtime, you may need to refresh the server metadata cached by Eclipse. Go to Preferences | Server | Runtime Environments | select the 19006 runtime | Edit... | Advanced options | Refresh.