当我尝试通过右键单击应用程序名称 -> 运行方式 -> 构建全部并部署来构建和部署我的应用程序时...我在控制台中收到失败通知:
无法将应用程序部署到 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] 部署应用程序“HelloWorklightApp”
所有环境到 Worklight Server... [2013-07-21 09:55:38]
无法将应用程序部署到 Worklight 服务器:请验证
Worklight 服务器已启动且可访问。
这是我启动服务器时得到的完整日志-
[审核] CWWKE0001I:服务器 worklight 已启动。 [错误
] CWWKO0030E: 启动链时生成异常
CHAIN-defaultHttpEndpoint 因为异常
com.ibm.wsspi.channelfw.exception.ChannelException:TCP 通道:
defaultHttpEndpoint-启动通道时出现问题:无法
建立环回连接 [AUDIT ] CWWKZ0058I:监控
应用程序的下降。 [审核] CWWKF0011I:服务器工作灯
已准备好运行一个更智慧的星球。 [审核] CWWKZ0022W:应用程序
_MobileBrowserSimulator 在 30.002 秒内尚未启动。 [审核] CWWKZ0022W:应用程序 HelloWorklightProject 尚未启动
30.001 秒。 [审核] CWWKG0016I:正在开始服务器配置更新。 [AUDIT ] CWWKG0018I:服务器配置不正确
更新。未检测到功能变化。 [审核] CWWKG0016I:
开始服务器配置更新。 [审核] CWWKG0017I:
服务器配置在 0.043 秒内成功更新。 [审计
] 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.
几点建议:
- 这个同样的问题也被报道在这里。请按照此处给出的说明进行操作。
- 确保默认端口号 10080 未被占用
-
创建新的 Worklight 项目和应用程序后
- 转到 Eclipse 中的 Servers 视图并启动服务器(不要构建应用程序);看看它是否正确加载
- 您可以查看 Worklight Development Server 控制台视图中的日志
Full size image
-
查看更改主机值是否有帮助。您还可以在此处更改端口,以防 10080 被占用并且您因任何原因无法释放它。
Full size image
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)