Websphere 为什么我的Liberty本地安装中的部署工具被阻止?

Websphere 为什么我的Liberty本地安装中的部署工具被阻止?,websphere,websphere-liberty,Websphere,Websphere Liberty,我想知道,因为我本地安装的管理中心中的deploy tool页面被阻止(我已经在我的电脑中安装了WAS Liberty) 我得到这个信息: 无法访问服务器上的主机或部署规则信息 这是我的server.xml <server description="new server"> <!-- Enable features --> <featureManager> <feature>javaee-7.0</feat

我想知道,因为我本地安装的管理中心中的deploy tool页面被阻止(我已经在我的电脑中安装了WAS Liberty)

我得到这个信息:

无法访问服务器上的主机或部署规则信息

这是我的server.xml

<server description="new server">

    <!-- Enable features -->
    <featureManager>
        <feature>javaee-7.0</feature>
        <feature>localConnector-1.0</feature>
        <feature>adminCenter-1.0</feature>
        <feature>collectiveController-1.0</feature>
        <feature>collectiveMember-1.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 password=""/> 
    -->

    <!--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="" />  -->
        <user name="admin" password="adminpwd"/>
    </basicRegistry>

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

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

    <keyStore location="${server.output.dir}/resources/security/liberty.jks" password="adminadmin"/>
    <administrator-role>
        <user>admin</user>
    </administrator-role>

    <remoteFileAccess>
       <writeDir>${server.config.dir}</writeDir>
    </remoteFileAccess>

    <applicationMonitor updateTrigger="mbean"/>

    <webApplication id="prueba" location="prueba.war" name="prueba"/>
</server>

javaee-7.0
localConnector-1.0
adminCenter-1.0
collectiveController-1.0
集体成员-1.0
管理
${server.config.dir}

感谢您的帮助。

根据提供的信息很难确定,但我猜您手动添加了collectiveController-1.0功能,但实际上没有创建集合(您可以通过运行“collective create{serverName}来创建集合)'来自wlp/bin的命令。由于部署工具仅适用于集合控制器,因此如果配置不正确,它将无法工作


您可以在此处找到创建集合的详细说明:

我尝试按照该教程进行操作,但在triedo execue命令:collective join myMember时出错……我收到一条错误消息,上面说:“端口9443不可用”(因为它是为另一个进程创建的)。使用resmon(Windows工具)我可以看到,当execue命令javaw.exe进程使用端口9443时。就好像他们有一个崩溃…好吧…我被停止了…当您试图将您的成员加入到集合控制器时,该错误消息听起来好像集合控制器没有运行,但这并不是您看到的有关管理中心部署工具的问题的原因ce为了使用部署工具,您不需要任何成员,只需要一个配置好的控制器,这将是完成上述链接中的步骤1的结果。我遵循了IBM页面的这一点。这里指出我应该创建一个成员…因此,我只应该创建一个控制器?您可以创建任意数量的成员;我的观点是simp很明显,您不需要使用部署工具。问题似乎是控制器设置不正确。步骤1e通过检查“CWWKX9003I”日志说明“验证集合控制器服务器已正确启动并准备好接收成员”。我猜您不会在日志中看到这一点,因为控制器配置不正确,因为我看不到collective create命令创建的sever.xml中的所有密钥库(或者也看不到将导入它们的密钥库)作为后续操作,请注意,按照说明,您需要在执行集体创建时设置--createConfigFile并将该文件包含在server.xml中,或者将集体创建的输出复制并粘贴到server.xml中;这似乎是您在帖子中粘贴的内容中缺少的内容。