我在WAS Liberty 8.5.5.7上安装了MF 6.3,并使用了“服务器配置工具”向导来创建运行时。部署成功。但是当我加载MobileFirst控制台时,我看到"没有找到运行时"。
我使用Oracle Java 1.7_80
我看到其他答案建议添加JNDI,但它已经存在了。我也尝试部署不同的war文件,这些文件在其他服务器上运行良好,但仍然可以得到相同的#34;没有找到Runtime"问题。
这是我的server.xml
<!-- 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'. -->
这是我的日志:
答案 0 :(得分:2)
MFP 6.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的功能,可以通过jdbc-4.1和servlet 3.1在server.xml中替换它们。 但这是一种不受官方支持的配置。 如果您可以使用支持JEE6的Liberty,则更安全。
答案 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 E CWWKX0203E: WebSphere Java Management Extensions REST客户端收到带有消息&#的意外响应代码404 39;未找到&#39;来自连接休息的URL https://localhost:9443/IBMJMXConnectorREST的服务器:localhost:9443 WorklightRESTUser 3
您是否有某些防火墙或任何可能阻止该URL的内容? https://localhost:9443/IBMJMXConnectorREST
您可以尝试在安装期间使用IP地址或主机名而不是localhost
我也看到了这条消息
[审核] CWWKE0100I:此产品已获得开发许可,并且生产使用有限。可在此处查看完整许可条款:https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/license/base_ilan/ilan/8.5.5.7/lafiles/en.html [错误] CWWKF0001E:找不到jdbc-4.0的功能定义
您是否可能尝试在Liberty(生产)服务器中使用Studio中的war文件?你是怎么得到安装文件的?您是否手动更改了worklightadmin.war文件?
我建议从头开始重新安装Liberty和MFP服务器。
此外,根据日志,您在Windows 7上运行MFP服务器。虽然它可能有效,但它不受官方支持 - http://www-969.ibm.com/software/reports/compatibility/clarity-reports/report/html/osForProduct?deliverableId=1404132386734#osFamily-5