Ibm mobilefirst 在MobileFirst控制台中找不到运行时

Ibm mobilefirst 在MobileFirst控制台中找不到运行时,ibm-mobilefirst,Ibm Mobilefirst,我在WAS Liberty 8.5.5.7上安装了MF 6.3,并使用服务器配置工具向导创建运行时。部署成功。但是当我加载MobileFirst控制台时,我看到“找不到运行时” 我的使用Oracle Java 1.7_80 我看到其他答案建议添加JNDI,但它已经存在了。我还尝试部署不同的war文件,这些文件在其他服务器上运行良好,但仍然遇到相同的“找不到运行时”问题 这是我的server.xml javaee-7.0 ssl-1.0 servlet-3.0 jdbc-4.0 jndi-1

我在WAS Liberty 8.5.5.7上安装了MF 6.3,并使用服务器配置工具向导创建运行时。部署成功。但是当我加载MobileFirst控制台时,我看到“找不到运行时”

我的使用Oracle Java 1.7_80

我看到其他答案建议添加JNDI,但它已经存在了。我还尝试部署不同的war文件,这些文件在其他服务器上运行良好,但仍然遇到相同的“找不到运行时”问题

这是我的server.xml


javaee-7.0
ssl-1.0
servlet-3.0
jdbc-4.0
jndi-1.0
restConnector-1.0
appSecurity-1.0
ssl-1.0
servlet-3.0
jdbc-4.0
jndi-1.0


消息日志

MFP管理服务无法启动

日志中有几个类似的错误消息

[9/23/15 8:57:57:962 PDT]00000111 com.worklight.common.util.jmx.LibertyRuntimeMBeanHandler I建立到服务的REST连接:jmx:rest://localhost:9443/IBMJMXConnectorREST [9/23/15 8:57:58:009 PDT]00000111 jmx.connector.client.rest.internal.RESTMBeanServerConnection CWWKX0203E:WebSphere Java Management Extensions rest客户端从服务器接收到一个意外响应代码404,其中包含连接rest上URL的消息“未找到”:本地主机:9443 WorklightRESTUser 3

您是否有防火墙或任何可能阻止该URL的东西

在安装过程中,您可以尝试使用IP地址或主机名而不是本地主机

我也看到了这条信息

【审核】CWWKE0100I:本产品获得开发许可,并限制生产使用。可在此处查看完整的许可条款: [错误]CWWKF0001E:找不到jdbc-4.0的功能定义

您是否正在尝试在Liberty(生产)服务器中使用Studio中的war文件?您是如何获得安装文件的?您是否手动更改了worklightadmin.war文件

我建议重新安装Liberty和MFP服务器


另外,根据日志,您正在Windows 7上运行MFP服务器。尽管它可以工作,但它没有得到官方支持-

MFP6.3不支持javaee-7.0功能 根据我的测试,至少与javaee-7.0中包含的特性jaxrs20存在冲突。它还包括servler 3.1,它与servlet 3.0冲突,JDBC 4.1与JDBC-40冲突

您需要删除javaee-7.0

如果您没有jdbc-4.0和servlet-3.0的特性,可以在server.xml中用jdbc-4.1和servlet 3.1替换它们。 但这是一种官方不支持的配置。
如果您可以使用支持JEE6的Liberty,则更安全。

我没有任何防火墙设置。MFP管理服务启动失败是否会导致“找不到运行时”问题?我使用了war文件,previosly部署在完整配置文件webspherer和另一个Liberty上,没有任何问题。我采用了与我们在另一个working Liberty上使用的相同的设置(java、WL和wpl),但在我的env上出现了此错误(在windows 7、windows Server 2012 R2数据中心和windows 10上出现了相同的错误)。因此,我认为问题在于独立于战争档案。我从来没有手动修改过任何war文件。我们在不同的环境中重新安装了Liberty和MFP服务器,但都出现了相同的错误(只有一次成功)。或者,降级到Liberty 8.5.5.5或8.5.5.6您仍然可以使用Liberty 8.5.5.7,但完整的配置文件不是Java EE 7 Web配置文件。
<!-- Enable features -->
<featureManager>
    <feature>javaee-7.0</feature>

    <!-- Begin of features added by IBM Worklight <installWorklightAdmin> ant task for context root '/wladmin'. -->
    <!-- The following lines will be removed when the application is uninstalled -->
    <feature>ssl-1.0</feature>
    <feature>servlet-3.0</feature>
    <feature>jdbc-4.0</feature>
    <feature>jndi-1.0</feature>
    <feature>restConnector-1.0</feature>
    <feature>appSecurity-1.0</feature>
    <!-- End of features added by IBM Worklight <installWorklightAdmin> ant task for context root '/wladmin'. -->


    <!-- Begin of features added by IBM Worklight <configureApplicationServer> ant task for context root '/TRIRIGAAnywhere'. -->
    <!-- The following lines will be removed when the application is uninstalled -->
    <feature>ssl-1.0</feature>
    <feature>servlet-3.0</feature>
    <feature>jdbc-4.0</feature>
    <feature>jndi-1.0</feature>
    <!-- End of features added by IBM Worklight <configureApplicationServer> ant task for context root '/TRIRIGAAnywhere'. -->

</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">
    <!--    Worklight user.
    [Added by IBM Worklight <installWorklightAdmin> Ant task for context root '/wladmin'] 
    -->
    <user name="WorklightRESTUser" password="rAmi3hMxUQ6s"/>

    <!--    Worklight user.
    [Added by IBM Worklight <installWorklightAdmin> Ant task for context root '/wladmin'] 
    -->
    <user name="demo" password="demo"/>

    <!-- <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" host="*" >

    <!-- Option soReuseAddr added by IBM Worklight <installWorklightAdmin> ant task for context root '/wladmin'. -->
    <!-- Option soReuseAddr added by IBM Worklight <configureApplicationServer> ant task for context root '/TRIRIGAAnywhere'. -->
    <tcpOptions soReuseAddr="true"/>

</httpEndpoint>

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

<administrator-role>
    <!--    Worklight JMX User.
    [Added by IBM Worklight <installWorklightAdmin> Ant task for context root '/wladmin'] 
    -->
    <user>WorklightRESTUser</user>

</administrator-role>
<!--    Worklight JNDI property for JMX connection.
    [Added by IBM Worklight <installWorklightAdmin> Ant task for context root '/wladmin'] 
-->
<jndiEntry jndiName="ibm.worklight.admin.jmx.host" value="localhost"/>
<!--    Worklight JNDI property for JMX connection.
    [Added by IBM Worklight <installWorklightAdmin> Ant task for context root '/wladmin'] 
-->
<jndiEntry jndiName="ibm.worklight.admin.jmx.port" value="9443"/>
<!--    Worklight JNDI property for JMX connection.
    [Added by IBM Worklight <installWorklightAdmin> Ant task for context root '/wladmin'] 
-->
<jndiEntry jndiName="ibm.worklight.admin.jmx.user" value="WorklightRESTUser"/>
<!--    Worklight JNDI property for JMX connection.
    [Added by IBM Worklight <installWorklightAdmin> Ant task for context root '/wladmin'] 
-->
<jndiEntry jndiName="ibm.worklight.admin.jmx.pwd" value="rAmi3hMxUQ6s"/>
<!--    Worklight JNDI property for JMX connection.
    [Added by IBM Worklight <installWorklightAdmin> Ant task for context root '/wladmin'] 
-->
<jndiEntry jndiName="ibm.worklight.topology.platform" value="Liberty"/>
<!--    Worklight JNDI property for JMX connection.
    [Added by IBM Worklight <installWorklightAdmin> Ant task for context root '/wladmin'] 
-->
<jndiEntry jndiName="ibm.worklight.topology.clustermode" value="Standalone"/>

<!--    WebContainer statement.
    [Added by IBM Worklight <installWorklightAdmin> Ant task for context root '/wladmin'] 
    [Added by IBM Worklight <configureApplicationServer> Ant task for context root '/TRIRIGAAnywhere'] 
-->
<webContainer invokeFlushAfterService="false" deferServletLoad="false"/>

<!-- Element <executor> added by IBM Worklight <installWorklightAdmin> ant task for id 'wladmin'. -->
<executor id="default" name="LargeThreadPool"
          coreThreads="200" maxThreads="400" keepAlive="60s"
          stealPolicy="STRICT" rejectedWorkPolicy="CALLER_RUNS"/>


<!-- Begin of configuration added by IBM Worklight <installWorklightAdmin> ant task for context root '/wladmin'. -->

<!-- Declare the Worklight Administration Service application. -->
<application id="wladmin" name="wladmin" location="worklightadmin.war" type="war">
    <application-bnd>
        <security-role name="worklightadmin">
            <user name="demo"/>

        </security-role>

        <security-role name="worklightdeployer">
        </security-role>

        <security-role name="worklightmonitor">
        </security-role>

        <security-role name="worklightoperator">
        </security-role>

    </application-bnd>

    <classloader delegation="parentLast">
        <commonLibrary id="worklightlib_wladmin">

            <fileset dir="${wlp.install.dir}/lib" includes="com.ibm.ws.crypto.passwordutil_1.0.10.jar"/>
        </commonLibrary>
    </classloader>
</application>

<!-- Declare the JNDI properties for the Worklight Administration Service. -->
<jndiEntry jndiName="wladmin/ibm.worklight.admin.environmentid" value='"WLP"'/>


<!-- Declare the jar files for MySQL access through JDBC. -->
<library id="wladmin/MySQLLib">
    <fileset dir="${shared.resource.dir}/wladmin/mysql" includes="mysql-connector-java-5.1.36-bin.jar"/>
</library>

<!-- Declare the IBM Worklight Administration database. -->
<dataSource jndiName="wladmin/jdbc/WorklightAdminDS" transactional="false">
    <jdbcDriver libraryRef="wladmin/MySQLLib"/>
    <properties URL="jdbc:mysql://localhost:3306/WLADMIN" user="root" password=""/>
</dataSource>

<!-- Declare the Worklight Administration Console application. -->
<application id="worklightconsole" name="worklightconsole" location="worklightconsole.war" type="war">
    <application-bnd>
        <security-role name="worklightadmin">
            <user name="demo"/>

        </security-role>

        <security-role name="worklightdeployer">
        </security-role>

        <security-role name="worklightmonitor">
        </security-role>

        <security-role name="worklightoperator">
        </security-role>

    </application-bnd>

</application>

<!-- Declare the JNDI properties for the Worklight Administration Console. -->
<jndiEntry jndiName="worklightconsole/ibm.worklight.admin.endpoint" value='"*://*:*/wladmin"'/>


<!-- End of configuration added by IBM Worklight <installWorklightAdmin> ant task for context root '/wladmin'. -->


<!-- Begin of configuration added by IBM Worklight <configureApplicationServer> ant task for context root '/TRIRIGAAnywhere'. -->

<!-- Declare the IBM Worklight project runtime application. -->
<application id="TRIRIGAAnywhere" name="TRIRIGAAnywhere" location="TRIRIGAAnywhere.war" type="war">
    <classloader delegation="parentLast">
        <privateLibrary id="worklightlib_TRIRIGAAnywhere">
            <fileset dir="${shared.resource.dir}/TRIRIGAAnywhere/lib" includes="worklight-jee-library.jar"/>
            <fileset dir="${wlp.install.dir}/lib" includes="com.ibm.ws.crypto.passwordutil_1.0.10.jar"/>
        </privateLibrary>
    </classloader>
</application>

<!-- Declare the JNDI properties for the IBM Worklight project runtime. -->
<jndiEntry jndiName="TRIRIGAAnywhere/publicWorkLightProtocol" value='"http"'/>
<jndiEntry jndiName="TRIRIGAAnywhere/publicWorkLightPort" value='"9080"'/>
<jndiEntry jndiName="TRIRIGAAnywhere/ibm.worklight.admin.environmentid" value='"WLP"'/>


<!-- Declare the jar files for MySQL access through JDBC. -->
<library id="TRIRIGAAnywhere/MySQLLib">
    <fileset dir="${shared.resource.dir}/TRIRIGAAnywhere/mysql" includes="mysql-connector-java-5.1.36-bin.jar"/>
</library>

<!-- Declare the IBM Worklight Server database. -->
<dataSource jndiName="TRIRIGAAnywhere/jdbc/WorklightDS" transactional="false">
    <jdbcDriver libraryRef="TRIRIGAAnywhere/MySQLLib"/>
    <properties URL="jdbc:mysql://localhost:3306/WRKLGHT" user="root" password=""/>
</dataSource>

<!-- Declare the IBM Worklight Server reports database. -->
<dataSource jndiName="TRIRIGAAnywhere/jdbc/WorklightReportsDS" transactional="false">
    <jdbcDriver libraryRef="TRIRIGAAnywhere/MySQLLib"/>
    <properties URL="jdbc:mysql://localhost:3306/WLREPORT" user="root" password=""/>
</dataSource>

<!-- End of configuration added by IBM Worklight <configureApplicationServer> ant task for context root '/TRIRIGAAnywhere'. -->