当我尝试通过右键单击应用程序名称->“运行为”->“构建全部并部署...”来构建和部署我的应用程序时,控制台中会出现失败通知:
“无法将应用程序部署到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地址。该值可以通过从“Servers”视图打开Worklight Development Server的配置编辑器来修改。 [2013-07-21 09:55:16] 应用程序'HelloWorklightApp'与所有环境的构建已完成。 [2013-07-21 09:55:16] 正在将具有所有环境的应用程序“HelloWorklightApp”部署到Worklight服务器... [2013-07-21 09:55:38] 无法将应用程序部署到Worklight服务器:请验证Worklight服务器是否已启动并可访问。
这是我启动服务器时获得的整个日志:
[AUDIT] CWWKE0001I: 服务器worklight已启动。[ERROR] CWWKO0030E: 在启动链CHAIN-defaultHttpEndpoint时生成了异常,原因是com.ibm.wsspi.channelfw.exception.ChannelException异常:TCP通道:defaultHttpEndpoint-在启动通道时发生问题:无法建立回环连接[AUDIT] CWWKZ0058I:监视应用程序的dropins。[AUDIT] CWWKF0011I:服务器worklight准备运行更智能的星球。[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地址后的日志-
“无法将应用程序部署到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地址。该值可以通过从“Servers”视图打开Worklight Development Server的配置编辑器来修改。 [2013-07-21 09:55:16] 应用程序'HelloWorklightApp'与所有环境的构建已完成。 [2013-07-21 09:55:16] 正在将具有所有环境的应用程序“HelloWorklightApp”部署到Worklight服务器... [2013-07-21 09:55:38] 无法将应用程序部署到Worklight服务器:请验证Worklight服务器是否已启动并可访问。
这是我启动服务器时获得的整个日志:
[AUDIT] CWWKE0001I: 服务器worklight已启动。[ERROR] CWWKO0030E: 在启动链CHAIN-defaultHttpEndpoint时生成了异常,原因是com.ibm.wsspi.channelfw.exception.ChannelException异常:TCP通道:defaultHttpEndpoint-在启动通道时发生问题:无法建立回环连接[AUDIT] CWWKZ0058I:监视应用程序的dropins。[AUDIT] CWWKF0011I:服务器worklight准备运行更智能的星球。[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.