当我尝试通过右键单击应用程序名称 -> 运行方式 -> 构建全部并部署来构建和部署我的应用程序时...我在控制台中收到失败通知:
未能将应用程序部署到 Worklight 服务器:请验证 Worklight 服务器是否已启动且可访问。
我先安装了Eclipse Juno,然后在里面安装了Worklight V6的插件。是否需要通过其他方式安装 Worklight 服务器?
这是整个日志:
[2013-07-21 09:55:04] FWLPL0001W:服务器尚未启动。构建可能在第一次试用时失败。[2013-07-21 09:55:13] 开始构建过程:应用程序“HelloWorklightApp”,所有环境 [2013-07-21 09:55:14] FWLPL0010W:从目标服务器配置中检测到“localhost”。使用主机的主 IP 地址 101.218.109.86 来构建 Worklight 应用程序。考虑使用完全限定的主机名(避免使用“localhost”)或有效的 IP 地址。可以通过从“服务器”视图打开 Worklight Development Server 的配置编辑器来修改该值。[2013-07-21 09:55:16] 已完成所有环境构建的应用程序“HelloWorklightApp”。[2013-07-21 09:55:16] 部署应用程序'
未能将应用程序部署到 Worklight 服务器:请验证 Worklight 服务器是否已启动且可访问。
这是我启动服务器时得到的整个日志-
[AUDIT ] CWWKE0001I: 服务器工作灯已启动。[错误] CWWKO0030E:由于异常 com.ibm.wsspi.channelfw.exception.ChannelException:启动链 CHAIN-defaultHttpEndpoint 时生成异常:TCP 通道:defaultHttpEndpoint-启动通道时出现问题:无法建立环回连接 [AUDIT] CWWKZ0058I :监控应用程序的dropins。[AUDIT ] CWWKF0011I: 服务器工作灯已准备好运行更智能的星球。[AUDIT ] CWWKZ0022W: 应用程序 _MobileBrowserSimulator 未在 30.002 秒内启动。[AUDIT ] CWWKZ0022W: 应用程序 HelloWorklightProject 未在 30.001 秒内启动。[AUDIT] CWWKG0016I: 正在启动服务器配置更新。[AUDIT] CWWKG0018I: 服务器配置未更新。未检测到功能变化。[AUDIT] CWWKG0016I: 正在启动服务器配置更新。[AUDIT ] CWWKG0017I: 服务器配置已在 0.043 秒内成功更新。[AUDIT ] CWWKZ0022W: 应用程序 TestWorklightProject 未在 30.002 秒内启动。
更改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.