在Mobilefirst中找不到运行时

时间:2015-07-21 11:29:19

标签: ibm-mobilefirst

我们安装了上面提到的软件

(a) WAS Liberty Profile 8.5.5.6
(b) Mobile First Server 6.3
(c) MySQL  5.1.73-community 
(d) JDK 1.7

我们通过application server创建了runtime environmentServer configuration tool,但我们遇到了错误

  

找不到运行时

我们尝试了堆栈溢出和其他调查问卷中的许多选项,但没有任何效果。

我们真的陷入困境,不确定接下来应该做什么以及如何检查运行时环境的部署是否成功(通过服务器配置工具)

请帮助我们解决此问题

我们在日志中看到以下异常,但不确定这些异常是否是根本原因

[root@oc3855733574 Liberty]# cat ./usr/servers/simpleServer/logs/messages.log | grep "E " 
java.runtime = Java(TM) SE Runtime Environment (pxa6470sr9-20150417_01 (SR9))
[7/21/15 14:48:29:124 IST] 0000001d com.ibm.ws.config.internal.xml.ConfigUpdater                 E CWWKG0031E: The value worklight/ibm.worklight.admin.environmentid specified for unique attribute jndiName is already in use.
[7/21/15 14:48:38:826 IST] 00000019 com.ibm.ws.webcontainer.webapp                               E SRVE0283E: Exception caught while initializing context: java.lang.NoClassDefFoundError: com.worklight.common.i18n.MessageCatalog
[7/21/15 14:48:39:042 IST] 00000019 org.apache.wink.server.internal.servlet.RestServlet          E com.worklight.authorization.endpoint.AuthorizationServerRestApplication
[7/21/15 14:48:39:114 IST] 00000019 com.ibm.ws.webcontainer.webapp                               E SRVE0276E: Error while initializing Servlet [OAuthAuthorizationServer]: javax.servlet.UnavailableException: com.worklight.authorization.endpoint.AuthorizationServerRestApplication
[7/21/15 14:48:39:269 IST] 00000019 com.ibm.ws.webcontainer.servlet                              E Uncaught.init.exception.thrown.by.servlet 
[7/21/15 14:48:39:274 IST] 00000019 com.ibm.ws.webcontainer.webapp                               E SRVE0266E: Error occured while initializing servlets: javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet
[7/21/15 14:48:39:372 IST] 00000019 com.ibm.ws.webcontainer.filter                               E SRVE0321E: The [OAuthServletFilter] filter did not load during start up.
[7/21/15 14:48:39:474 IST] 00000019 com.ibm.ws.webcontainer.filter                               E SRVE0321E: The [authorizationServerFilter] filter did not load during start up.

1 个答案:

答案 0 :(得分:0)

根据messages.log文件中的错误,它无法找到Worklight JEE .jar文件。

根据server.xml文件,该文件未放置在安装过程设置的通常默认位置。

您需要验证server.xml文件中显示的位置是否与文件系统中的位置匹配。

<application id="worklight" name="worklight" location="clsapp.war" type="war">
    <classloader delegation="parentLast">
        <privateLibrary id="worklightlib_worklight">
            <fileset dir="${shared.resource.dir}/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> 

通常情况下,该位置为${shared.resource.dir}/lib/worklight(或者代替&#34;工作灯&#34;会有您的上下文根...)。