Ibm mobilefirst 我的Worklight 6.2控制台上没有运行时

Ibm mobilefirst 我的Worklight 6.2控制台上没有运行时,ibm-mobilefirst,worklight-server,websphere-liberty,Ibm Mobilefirst,Worklight Server,Websphere Liberty,在Worklight 6.2环境中部署war文件后,控制台不会显示关联的运行时环境:找不到任何运行时。这是Worklight 6.2的基本用法,但我不知道如何修复它 我所做的: 在WebSphere Liberty 8.5.5.2+DB2 V10.5上安装Worklight Enterprise 6.2 使用我的设置自定义configuration-liberty-db2.xml ant-f myxmlfile数据库 ant-f myxmlfile管理员安装 ant-f myxmlfile数据库

在Worklight 6.2环境中部署war文件后,控制台不会显示关联的运行时环境:找不到任何运行时。这是Worklight 6.2的基本用法,但我不知道如何修复它

我所做的:

  • 在WebSphere Liberty 8.5.5.2+DB2 V10.5上安装Worklight Enterprise 6.2
  • 使用我的设置自定义configuration-liberty-db2.xml
  • ant-f myxmlfile数据库
  • ant-f myxmlfile管理员安装
  • ant-f myxmlfile数据库
  • ant-f myxmlfile安装
  • 我在路径~/worklightconsole中有worklight控制台,但没有运行时! 在自由日志中:


    [6/24/14 15:28:00:978 CEST]00000021 com.worklight.common.util.jmx.LibertyRuntimeBeanHandler I Bean“*”不存在。 [6/24/14 15:28:00:979 CEST]00000021 com.ibm.worklight.admin.services.RuntimeService I未找到mxbeans

    下面是我的server.xml liberty文件的摘录:

    上下文根“/myapp.”的ant任务-->
    Liberty 8.5.5.2类加载器中存在一个缺陷,该缺陷可能会影响Worklight(不仅是6.2版本,而且是所有版本),甚至影响在server.xml文件中定义类加载策略规则的现有非Worklight应用程序。
    解决方法是删除Liberty server工作区目录的内容,并使用--clean选项启动服务器(每次重新启动时也是如此)

    您在哪里找到了MyProject.war文件?MyProject.war位于my Liberty server的apps文件夹中:/opt/IBM/WebSphere/Liberty/usr/servers/server1/apps#ls appcenterconsole.war applicationcenter.war MyProject.war worklightadmin.war worklightconsole.war解决方案不起作用,但我使用了IBM JAVA SDK 7.1。将其更改为IBM JAVA SDK 6解决了这个问题。@Aymeric我也更改为使用IBM JDK 1.6,但即使在空白工作区(仅由worklight studio定义的默认服务器,或者在创建空白应用程序“a”和“在worklight部署服务器上运行”)下运行,仍然没有运行时,我甚至在控制台日志中看到“JMXConnector”war。
    <!-- Declare the IBM Worklight project runtime application. -->
    <application id="myapp" name="myapp" location="MyProject.war" context-root="/myapp" type="war">
        <classloader delegation="parentLast">
            <privateLibrary>
                <fileset dir="${shared.resource.dir}/myapp/lib" includes="worklight-jee-library.jar"/>
            </privateLibrary>
        </classloader>
    </application>
    
    <!-- Declare the JNDI properties for the IBM Worklight project runtime. -->
    <jndiEntry jndiName="myapp/publicWorkLightProtocol" value='"http"'/>
    <jndiEntry jndiName="myapp/publicWorkLightPort" value='"9080"'/>
    
    
    <!-- Declare the jar files for DB2 access through JDBC. -->
    <library id="myapp/DB2Lib">
        <fileset dir="${shared.resource.dir}/myapp/db2" includes="db2jcc4.jar,db2jcc_license_cu.jar"/>
    </library>
    
    <!-- Declare the IBM Worklight Server database. -->
    <dataSource jndiName="myapp/jdbc/WorklightDS" transactional="false">
        <jdbcDriver libraryRef="myapp/DB2Lib"/>
        <properties.db2.jcc databaseName="WRKLGHT" serverName="localhost" portNumber="50001" user="db2inst1" password="db2inst1" currentSchema="WRKLGHT"/>
    </dataSource>
    
    <!-- Declare the IBM Worklight Server reports database. -->
    <dataSource jndiName="myapp/jdbc/WorklightReportsDS" transactional="false">
        <jdbcDriver libraryRef="myapp/DB2Lib"/>
        <properties.db2.jcc databaseName="WRKLGHT" serverName="localhost" portNumber="50001" user="db2inst1" password="db2inst1" currentSchema="WLREPORT"/>
    </dataSource>
    
    <!-- End of configuration added by IBM Worklight <configureApplicationServer> ant task for context root '/myapp'. -->