gpt4 book ai didi

ibm-mobilefirst - IBM Worklight 6.0 - 无法访问 Worklight Server

转载 作者:行者123 更新时间:2023-12-04 07:07:03 27 4
gpt4 key购买 nike

当我尝试通过右键单击应用程序名称 -> Run As -> Build All and Deploy 来构建和部署我的应用程序时...我在控制台中收到失败通知:

Failed to deploy the application to Worklight server: please verify that the Worklight server is started and reachable.

我先安装了Eclipse Juno,然后在里面安装了Worklight V6的插件。是否需要通过其他方式安装 Worklight 服务器?

这是整个日志:

[2013-07-21 09:55:04] FWLPL0001W: Server not started yet. Build may fail at first trial. [2013-07-21 09:55:13] Starting build process: application 'HelloWorklightApp', all environments [2013-07-21 09:55:14] FWLPL0010W: "localhost" was detected from the target server configuration. Using the primary IP address of the host machine, 101.218.109.86, to build the Worklight application(s). Consider using a fully qualified hostname (avoid using "localhost") or a valid IP address instead. The value can be modified by opening the configuration editor of Worklight Development Server from the "Servers" view. [2013-07-21 09:55:16] Application 'HelloWorklightApp' with all environments build finished. [2013-07-21 09:55:16] Deploying application 'HelloWorklightApp' with all environments to Worklight Server... [2013-07-21 09:55:38]
Failed to deploy the application to Worklight server: please verify that the Worklight server is started and reachable.

这是我启动服务器时得到的完整日志-

[AUDIT ] CWWKE0001I: The server worklight has been launched. [ERROR ] CWWKO0030E: An exception was generated when starting chain CHAIN-defaultHttpEndpoint because of exception com.ibm.wsspi.channelfw.exception.ChannelException: TCP Channel: defaultHttpEndpoint- Problem occurred while starting channel: Unable to establish loopback connection [AUDIT ] CWWKZ0058I: Monitoring dropins for applications. [AUDIT ] CWWKF0011I: The server worklight is ready to run a smarter planet. [AUDIT ] CWWKZ0022W: Application _MobileBrowserSimulator has not started in 30.002 seconds. [AUDIT ] CWWKZ0022W: Application HelloWorklightProject has not started in 30.001 seconds. [AUDIT ] CWWKG0016I: Starting server configuration update. [AUDIT ] CWWKG0018I: The server configuration was not updated. No functional changes were detected. [AUDIT ] CWWKG0016I: Starting server configuration update. [AUDIT ] CWWKG0017I: The server configuration was successfully updated in 0.043 seconds. [AUDIT ] CWWKZ0022W: Application TestWorklightProject has not started in 30.002 seconds.

更改prt和IP地址后登录-

Launching worklight (WebSphere Application Server 8.5.5.0/wlp-1.0.3.20130524-0951) on Java HotSpot(TM) 64-Bit Server VM, version 1.6.0_45-b06 (en_IN)
[AUDIT ] CWWKE0001I: The server worklight has been launched.
[ERROR ] CWWKO0221E: TCP Channel defaultHttpEndpoint initialization did not succeed. The socket bind did not succeed for host 10.0.0.1 and port 8080. The port might already be in use.
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[err] 255 WorklightPU WARN [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightPU', root URL [file:/C:/Users/Anil%20kumar/workspace/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
[err] 2256 WorklightPU INFO [Scheduled Executor-thread-1] openjpa.Runtime - Starting OpenJPA 1.2.2
[err] 2850 WorklightPU INFO [Scheduled Executor-thread-1] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.HSQLDictionary".
[err] 1 WorklightReportsPU WARN [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightReportsPU', root URL [file:/C:/Users/Anil%20kumar/workspace/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
[AUDIT ] CWWKF0011I: The server worklight is ready to run a smarter planet.
[err] 1 WorklightPU WARN [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightPU', root URL [file:/C:/Users/Anil%20kumar/workspace/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
[err] 214 WorklightPU INFO [Scheduled Executor-thread-1] openjpa.Runtime - Starting OpenJPA 1.2.2
[err] 216 WorklightPU INFO [Scheduled Executor-thread-1] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.HSQLDictionary".
[err] 0 WorklightReportsPU WARN [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightReportsPU', root URL [file:/C:/Users/Anil%20kumar/workspace/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
[AUDIT ] CWWKZ0022W: Application _MobileBrowserSimulator has not started in 33.066 seconds.
[AUDIT ] CWWKZ0022W: Application TestWorklightProject has not started in 31.548 seconds.
[AUDIT ] CWWKZ0022W: Application HelloWorklightProject has not started in 30.002 seconds.

最佳答案

几点建议:

  1. 同一个问题 is also reported here .按照那里给出的说明进行操作。
  2. 确保未占用默认端口号 10080
  3. 创建新的 Worklight 项目和应用程序之后

    • 转到 Eclipse 中的服务器 View 并启动服务器(不要构建应用程序);查看它是否正确加载
    • 您可以在 Worklight Development Server 控制台 View 中查看日志

    Full size image enter image description here

  4. 查看更改主机值是否有帮助。您也可以在此处更改端口,以防 10080 被占用而您出于任何原因无法释放它。

    Full size image enter image description here

关于ibm-mobilefirst - IBM Worklight 6.0 - 无法访问 Worklight Server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17769156/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com