首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >启动WebSphere应用程序服务器权限的MobileFirst Platform操作分析时未显示任何数据

启动WebSphere应用程序服务器权限的MobileFirst Platform操作分析时未显示任何数据
EN

Stack Overflow用户
提问于 2015-08-12 15:40:29
回答 1查看 497关注 0票数 1

我在MacApplicationServerV8.5.5.4上安装了MacServerv.7。分析控制台正在打开,但未显示任何数据。Server.xml格式如下:

代码语言:javascript
复制
       <?xml version="1.0" encoding="UTF-8"?>
  <server description="new server">

<!-- Enable features -->
<featureManager>
    <feature>jsp-2.2</feature>
    <feature>jdbc-4.0</feature>
    <feature>appSecurity-2.0</feature>
    <feature>servlet-3.0</feature>
    <!-- End of features added by IBM Worklight installer. -->


    <!-- Begin of features added by IBM Worklight <installWorklightAdmin> ant task for context root '/worklightadmin'. -->
    <feature>jdbc-4.0</feature>
    <feature>appSecurity-2.0</feature>
    <feature>restConnector-1.0</feature>

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

   </featureManager>

    <!-- 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 installer. -->
    <!-- Option soReuseAddr added by IBM Worklight <installWorklightAdmin> ant task for context root '/worklightadmin'. -->
    <!-- Option soReuseAddr added by IBM Worklight <configureApplicationServer> ant task for context root '/MyProj1'. -->
    <!-- Option soReuseAddr added by IBM Worklight <configureApplicationServer> ant task for context root '/MyProj2'. -->
    <!-- Option soReuseAddr added by IBM Worklight <configureApplicationServer> ant task for context root '/MyProj3'. -->
    <tcpOptions soReuseAddr="true"/>

  </httpEndpoint>


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

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

    <!--    Worklight user.
    [Added by IBM Worklight Installation Manager for context root '/applicationcenter'] 
    -->
    <user name="demo" password="demo"/>

    <!--    Worklight user.
    [Added by IBM Worklight Installation Manager for context root '/applicationcenter'] 
    -->
    <user name="appcenteradmin" password="admin"/>

    <!--    IBM Application Center group.
    [Added by IBM Worklight Installation Manager for context root '/applicationcenter'] 
    -->
    <group name="appcentergroup">
        <!--    IBM Application Center group member.
        [Added by IBM Worklight Installation Manager for context root '/applicationcenter'] 
        -->
        <member name="demo"/>

        <!--    IBM Application Center group member.
        [Added by IBM Worklight Installation Manager for context root '/applicationcenter'] 
        -->
        <member name="appcenteradmin"/>

    </group>

   </basicRegistry>

   <!-- Begin of configuration added by IBM Worklight installer. -->

    <!-- Declare the IBM Application Center Console application. -->
    <application id="appcenterconsole" name="appcenterconsole" location="appcenterconsole.war" type="war">
    <application-bnd>
        <security-role name="appcenteradmin">
            <group name="appcentergroup"/>
        </security-role>
    </application-bnd>
   </application>

   <!-- Declare the IBM Application Center Services application. -->
    <application id="applicationcenter" name="applicationcenter" location="applicationcenter.war" type="war">
      <application-bnd>
        <security-role name="appcenteradmin">
            <group name="appcentergroup"/>
        </security-role>
    </application-bnd>
    <classloader delegation="parentLast">
        <commonLibrary>
            <fileset dir="${wlp.install.dir}/lib" includes="com.ibm.ws.crypto.passwordutil_1.0.1.jar"/>
        </commonLibrary>
    </classloader>
   </application>

   <jndiEntry jndiName="android.aapt.dir" value='"/Users/kiranjain/IBM/MobileFirst_Platform_Server/ApplicationCenter/tools/android-sdk"'/>

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

   <!-- Declare the IBM Application Center database. -->
    <dataSource jndiName="jdbc/AppCenterDS" transactional="false">
    <jdbcDriver libraryRef="MySQLLib"/>
    <properties URL="jdbc:mysql://localhost:3306/APPCNTR" user="admin" password="{xor}PjsyNjE="/>
   </dataSource>

   <!-- End of configuration added by IBM Worklight installer. -->


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

   <administrator-role>

    <user>WorklightRESTUser</user>

   </administrator-role>

    <jndiEntry jndiName="ibm.worklight.admin.jmx.host" value="localhost"/>

   <jndiEntry jndiName="ibm.worklight.admin.jmx.port" value="9443"/>

  <jndiEntry jndiName="ibm.worklight.admin.jmx.user" value="WorklightRESTUser"/>

  <jndiEntry jndiName="ibm.worklight.admin.jmx.pwd" value="rsRMSUVWwD5h"/>

  <jndiEntry jndiName="ibm.worklight.topology.platform" value="Liberty"/>

   <jndiEntry jndiName="ibm.worklight.topology.clustermode" value="Standalone"/>


<webContainer invokeFlushAfterService="false" deferServletLoad="false"/>

<executor id="default" name="LargeThreadPool"
          coreThreads="200" maxThreads="400" keepAlive="60s"
          stealPolicy="STRICT" rejectedWorkPolicy="CALLER_RUNS"/>


   <!-- Declare the IBM Worklight project runtime application. -->
   <application id="MyProj1" name="MyProj1" location="MyProj1.war" type="war">
    <classloader delegation="parentLast">
        <privateLibrary id="worklightlib_MyProj1">
            <fileset dir="${shared.resource.dir}/MyProj1/lib" includes="worklight-jee-library.jar"/>
            <fileset dir="${wlp.install.dir}/lib" includes="com.ibm.ws.crypto.passwordutil_1.0.1.jar"/>
        </privateLibrary>
       </classloader>
   </application>
<!-- Declare the JNDI properties for the IBM Worklight project runtime. -->
   <jndiEntry jndiName="MyProj1/publicWorkLightProtocol" value='"http"'/>
   <jndiEntry jndiName="MyProj1/publicWorkLightPort" value='"9080"'/>

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

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

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

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

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

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

  <!-- Declare the JNDI properties for the IBM Worklight project runtime. -->
  <jndiEntry jndiName="MyProj2/publicWorkLightProtocol" value='"http"'/>
  <jndiEntry jndiName="MyProj2/publicWorkLightPort" value='"9080"'/>

  <!-- Declare the jar files for MySQL access through JDBC. -->
  <library id="MyProj2/MySQLLib">
    <fileset dir="${shared.resource.dir}/MyProj2/mysql" includes="mysql-connector-java-5.1.36-bin.jar"/>
   </library>
   <!-- Declare the IBM Worklight Server database. -->
   <dataSource jndiName="MyProj2/jdbc/WorklightDS" transactional="false">
    <jdbcDriver libraryRef="MyProj2/MySQLLib"/>
    <properties URL="jdbc:mysql://localhost:3306/incident_WRKLGHT" user="admin" password="{xor}PjsyNjE="/>
   </dataSource>

   <!-- Declare the IBM Worklight Server reports database. -->
   <dataSource jndiName="IncidentAware16Jun/jdbc/WorklightReportsDS" transactional="false">
    <jdbcDriver libraryRef="MyProj2/MySQLLib"/>
    <properties URL="jdbc:mysql://localhost:3306/incident_WLREPORT" user="admin" password="{xor}PjsyNjE="/>
  </dataSource>

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

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

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

        </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_worklightadmin">

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

    <application id="analytics" location="analytics.ear" name="analytics" type="ear">
  <application-bnd>
  <security-role name="worklightadmin">
   <user name="admin"/>
  </security-role>
  <security-role name="worklightdeployer">
   <user name="deployer"/>
</security-role>
<security-role name="worklightmonitor">
   <user name="monitor"/>
</security-role>
<security-role name="worklightoperator">
   <user name="operator"/>
  </security-role>
   </application-bnd>
  </application>
  <library id="worklightadmin/MySQLLib">
    <fileset dir="${shared.resource.dir}/worklightadmin/mysql" includes="mysql-connector-java-5.1.36-bin.jar"/>
</library>

  <!-- Declare the IBM Worklight Administration database. -->
<dataSource jndiName="worklightadmin/jdbc/WorklightAdminDS" transactional="false">
    <jdbcDriver libraryRef="worklightadmin/MySQLLib"/>
    <properties URL="jdbc:mysql://localhost:3306/WLADMIN" user="admin" password="{xor}PjsyNjE="/>
</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="admin"/>

        </security-role>

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

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

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

    </application-bnd>

  </application>

   <application id="analytics-service" name="analytics-service" location="analytics-service.war" type="war">
    <application-bnd>
        <security-role name="worklightadmin">
            <user name="admin"/>

        </security-role>

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

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

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

    </application-bnd>

   </application>
     <application id="analytics-ui" name="analytics-ui" location="analytics-ui.war" type="war">
    <application-bnd>
        <security-role name="worklightadmin">
            <user name="admin"/>

        </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='"*://*:*/worklightadmin"'/>


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


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

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

<!-- Declare the JNDI properties for the IBM Worklight project runtime. -->
<jndiEntry jndiName="MyProj3/publicWorkLightProtocol" value='"http"'/>
<jndiEntry jndiName="MyProj3/publicWorkLightPort" value='"9080"'/>
<jndiEntry jndiName="MyProj3/serverSessionTimeout" value='"10"'/>
<jndiEntry jndiName="MyProj3/wl.analytics.url" value='"http://localhost:9080/analytics-service/data"'/>
<jndiEntry jndiName="MyProj3/wl.analytics.console.url" value='"http://localhost:9080/analytics/console"'/>
<jndiEntry jndiName="MyProj3/wl.analytics.username" value='"admin"'/>
<jndiEntry jndiName="MyProj3/wl.analytics.password" value='"admin"'/>
<jndiEntry jndiName="MyProj3/wl.analytics.queue.size" value='"1"'/>


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

  <!-- Declare the IBM Worklight Server database. -->
  <dataSource jndiName="MyTime/jdbc/WorklightDS" transactional="false">
    <jdbcDriver libraryRef="MyTime/MySQLLib"/>
    <properties URL="jdbc:mysql://localhost:3306/MyTime_WRKLGT" user="admin" password="{xor}PjsyNjE="/>
  </dataSource>

  <!-- Declare the IBM Worklight Server reports database. -->
  <dataSource jndiName="MyTime/jdbc/WorklightReportsDS" transactional="false">
    <jdbcDriver libraryRef="MyTime/MySQLLib"/>
    <properties URL="jdbc:mysql://localhost:3306/MyTime_WRKREPRT" user="admin" password="{xor}PjsyNjE="/>
  </dataSource>
   </server>

我使用了analytics-ui.war、analytics-service.war和analytics.ear,但它仍然不起作用。

我在带有适配器的MobileFirst服务器上安装了3个项目,但它们没有反映在分析控制台上。

在console.log中,我得到以下错误:无法启动web应用程序分析-ear。ERROR CWWKZ0002E:启动应用程序analytics-ear时出现异常。异常消息是: com.ibm.ws.container.service.state.StateChangeException: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException:无法加载webapp:上下文根/analytics/*已绑定。无法启动应用程序分析

最初,我首先设置了移动服务器并部署了我的2个应用程序,然后在应用程序文件夹中添加了analytics.ear并在Server.xml中进行了必要的更改。在此之后,我重新启动了WAS服务器。为了检查分析,我使用JNDI属性部署了MyProj3,但它没有反映在分析控制台上。我试图清理并重新启动服务器,但仍然不起作用。

帮我解决这个问题

EN

回答 1

Stack Overflow用户

发布于 2015-09-17 21:58:22

Kiran通过电子邮件给我发了更多的日志。我认为失败是由于日志中的以下错误:

代码语言:javascript
复制
[ERROR   ] Error sending bulk request: java.lang.RuntimeException: failure in bulk execution:
[0]: index [worklight], type [server_logs], id [3Vuqfw2aTSWqD6g-pw3IkA], message [EsRejectedExecutionException[rejected execution (queue capacity 50) on org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1@605876e2]]

解决此问题的方法是添加以下jndi条目:

代码语言:javascript
复制
<jndiEntry jndiName="<analytics-context-root>/threadpool.bulk.queue_size" value="1000" />  

只需将线程批量线程池大小增加到适当的数字即可。这个数字取决于您的基础架构。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31958929

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档