IBM Worklight 6.0 - Worklight Server无法访问。

时间:2021-10-21 01:00:14

When I am trying to build and deploy my application by right-clicking on application name -> Run As -> Build All and Deploy... I am getting a failure notification in the console:

当我试图通过右键单击应用程序的名称来构建和部署我的应用程序时——>运行为->构建所有并部署…我在控制台收到一个失败通知:

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

未能将应用程序部署到Worklight服务器:请验证Worklight服务器已启动并可访问。

I have first installed Eclipse Juno and then installed plug-in of Worklight V6 in it. Is it required to install Worklight server by some other means?

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

This is the entire log:

这是整个日志:

[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.

[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开发服务器的配置编辑器来修改该值。[2013-07-21 09:55:16]应用程序“HelloWorklightApp”,所有环境构建完成。[2013-07-21 09:55:16]将应用“HelloWorklightApp”与所有环境部署到Worklight服务器…[2013-07-21 09:55:38]未能将应用程序部署到Worklight server:请验证Worklight服务器已启动并可访问。

Here is the entire log that i got when started theserver-

这是我刚开始写的整个日志

[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.

[审核]CWWKE0001I:服务器工作灯已经启动。[错误]CWWKO0030E:在启动链锁- defaulthttpendpoint时,由于异常com.ibm.wsspi.channelfw.exception而产生异常。ChannelException: TCP通道:defaultHttpEndpoint—启动通道时发生的问题:无法建立回环连接[AUDIT] CWWKZ0058I:监控应用程序的下拉列表。[审计]CWWKF0011I:服务器工作灯已经准备好运行一个更智能的行星。[审计]CWWKZ0022W: Application _MobileBrowserSimulator在30.002秒内还没有启动。[审计]CWWKZ0022W:应用HelloWorklightProject在30.001秒内还没有启动。[审核]CWWKG0016I:启动服务器配置更新。[AUDIT] CWWKG0018I:服务器配置没有更新。没有检测到功能变化。[审核]CWWKG0016I:启动服务器配置更新。[AUDIT] CWWKG0017I:服务器配置在0.043秒内成功更新。[审计]CWWKZ0022W:应用程序TestWorklightProject没有在30.002秒内启动。

Log after changing the prt and IP address-

更改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.

5 个解决方案

#1


1  

Several suggestions:

几个建议:

  1. This same issue is also reported here. Follow the instructions given there.
  2. 这里也报道了同样的问题。按照这里给出的说明。
  3. Make sure the default port number, 10080, is not taken
  4. 确保未获取默认端口号10080
  5. After creating a new Worklight project and application

    在创建一个新的Worklight项目和应用程序之后

    • Go to the Servers view in Eclipse and start the server (don't build the app); see if it loads properly
    • 转到Eclipse中的Servers视图并启动服务器(不要构建应用程序);看看它是否装载正确
    • You can look at the Worklight Development Server console view for the logs

    • 您可以查看Worklight Development Server控制台视图来查看日志

    Full size image IBM Worklight 6.0 - Worklight Server无法访问。

    全尺寸图像

  6. See if changing the the Host value helps. You can also change here the port in case 10080 is taken and you cannot release it for what ever reason.

    看看改变主机值是否有帮助。您也可以在这里更改端口,以防10080被占用,并且无论出于什么原因,您都不能释放它。

    Full size image IBM Worklight 6.0 - Worklight Server无法访问。

    全尺寸图像

#2


1  

This can also be caused by multiple networks running on your workstation. I find having VMWare installed causes the build side of Worklight to get confused. It starts the server on your host LAN port, but then looks up "localhost" when trying to deploy an application, on my machine this gets the IP address of the VMWare LAN adaptor.

这也可以由在您的工作站上运行的多个网络引起。我发现安装VMWare会使工作灯的构建端变得混乱。它在您的主机LAN端口上启动服务器,但是当尝试部署应用程序时,它会查找“localhost”,在我的机器上,它会获得VMWare LAN适配器的IP地址。

Double click on the server and change the "Host name:" field to the IP address of your local LAN.

双击服务器并将“主机名:”字段更改为本地LAN的IP地址。

I know I'm having problems if I see the following when trying to build and deploy: FWLPL0010W: "localhost" was detected from the target server configuration. Using the primary IP address of the host machine, 192.168.10.1, 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.

如果在构建和部署时看到以下内容,我知道我有问题:FWLPL0010W:“localhost”是从目标服务器配置中检测出来的。使用主机的主IP地址192.168.10.1构建Worklight应用程序。考虑使用完全限定的主机名(避免使用“localhost”)或有效的IP地址。可以通过从“Servers”视图中打开Worklight开发服务器的配置编辑器来修改该值。

#3


0  

I don't know how many people are facing this type of issue and their Worklight server is not working properly but here are few steps that I followed to solve my issue.

我不知道有多少人正面临这类问题,他们的Worklight服务器不能正常工作,但是这里有一些步骤可以帮助我解决这个问题。

1) Deleted my whole Eclipse folder.

1)删除了整个Eclipse文件夹。

2) Extracted again Eclipse folder from the Zipped file which I downloaded from Eclipse site.

2)从我从Eclipse站点下载的压缩文件中再次提取Eclipse文件夹。

3) Installed Worklight v6 Plugin using "Install new software" option in "Help" tab in Eclipse. More detailed info to install using this process is available at this link-

3)在Eclipse的“Help”选项卡中使用“安装新软件”选项安装Worklight v6插件。使用这个过程安装的更详细的信息可以在这个链接上找到

http://www.ibm.com/developerworks/mobile/worklight/download/install.html

http://www.ibm.com/developerworks/mobile/worklight/download/install.html

My suggestion is not to use Eclipse Marketplace to install the plugin as I got trouble in my two systems while using it.

我的建议是不要使用Eclipse Marketplace来安装插件,因为我在使用这两个系统时遇到了麻烦。

4) Restart Eclipse and check.

4)重新启动Eclipse并检查。

#4


0  

In my case it was a proxy problem. Check if you have a proxy configured in IE Tools->Connections->LAN Settings. I had to disable it in order to make deployment work.

在我看来,这是一个代理问题。检查是否在IE工具->连接->LAN设置中配置了代理。我不得不禁用它以使部署工作。

#5


0  

I to faced the same problem, but in my case the problem was i used Jre 1.8. So by checking all the possible was finally i changed the jre7 path by the fallowing way.

我也遇到了同样的问题,但在我的例子中,问题是我使用了Jre 1.8。所以,通过检查所有可能的情况,我最终改变了jre7路径。

Actually it IBM Worklight needs JRE and JDK 1.7(7)

实际上,IBM Worklight需要JRE和JDK 1.7(7)

  1. In Worklight Studio, open the Servers view.
  2. 在Worklight Studio中,打开Servers视图。
  3. Double-click Worklight Development Server to open the Overview page.
  4. 双击Worklight开发服务器打开Overview页面。
  5. In Overview page click on the Runtime Environment
  6. 在Overview页面中单击运行时环境。
  7. Runtime Environment window in JRE Pane click on Configure JREs...,
  8. 在JRE窗格中的运行时环境窗口单击Configure JREs…,
  9. It shows Preferences window, in that click on add button.
  10. 它显示首选项窗口,在单击add按钮。
  11. it shows another window called Add JRE in that select Standard VM and click on next, In JRE Definition click on Dictionary of JRE Home:, Now select the 1.7 JRE path then click on next then click finish
  12. 它显示了另一个名为Add JRE的窗口,在该窗口中选择标准VM并单击next,在JRE定义中单击JRE Home:,现在选择1.7 JRE路径,然后单击next,然后单击finish
  13. In Preferences window check jre7 and click on OK, finally click on Finish and restart the Eclipse
  14. 在Preferences窗口中检查jre7并单击OK,最后单击Finish并重启Eclipse。

Now run your application on Worklight development server.

现在在Worklight开发服务器上运行应用程序。

#1


1  

Several suggestions:

几个建议:

  1. This same issue is also reported here. Follow the instructions given there.
  2. 这里也报道了同样的问题。按照这里给出的说明。
  3. Make sure the default port number, 10080, is not taken
  4. 确保未获取默认端口号10080
  5. After creating a new Worklight project and application

    在创建一个新的Worklight项目和应用程序之后

    • Go to the Servers view in Eclipse and start the server (don't build the app); see if it loads properly
    • 转到Eclipse中的Servers视图并启动服务器(不要构建应用程序);看看它是否装载正确
    • You can look at the Worklight Development Server console view for the logs

    • 您可以查看Worklight Development Server控制台视图来查看日志

    Full size image IBM Worklight 6.0 - Worklight Server无法访问。

    全尺寸图像

  6. See if changing the the Host value helps. You can also change here the port in case 10080 is taken and you cannot release it for what ever reason.

    看看改变主机值是否有帮助。您也可以在这里更改端口,以防10080被占用,并且无论出于什么原因,您都不能释放它。

    Full size image IBM Worklight 6.0 - Worklight Server无法访问。

    全尺寸图像

#2


1  

This can also be caused by multiple networks running on your workstation. I find having VMWare installed causes the build side of Worklight to get confused. It starts the server on your host LAN port, but then looks up "localhost" when trying to deploy an application, on my machine this gets the IP address of the VMWare LAN adaptor.

这也可以由在您的工作站上运行的多个网络引起。我发现安装VMWare会使工作灯的构建端变得混乱。它在您的主机LAN端口上启动服务器,但是当尝试部署应用程序时,它会查找“localhost”,在我的机器上,它会获得VMWare LAN适配器的IP地址。

Double click on the server and change the "Host name:" field to the IP address of your local LAN.

双击服务器并将“主机名:”字段更改为本地LAN的IP地址。

I know I'm having problems if I see the following when trying to build and deploy: FWLPL0010W: "localhost" was detected from the target server configuration. Using the primary IP address of the host machine, 192.168.10.1, 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.

如果在构建和部署时看到以下内容,我知道我有问题:FWLPL0010W:“localhost”是从目标服务器配置中检测出来的。使用主机的主IP地址192.168.10.1构建Worklight应用程序。考虑使用完全限定的主机名(避免使用“localhost”)或有效的IP地址。可以通过从“Servers”视图中打开Worklight开发服务器的配置编辑器来修改该值。

#3


0  

I don't know how many people are facing this type of issue and their Worklight server is not working properly but here are few steps that I followed to solve my issue.

我不知道有多少人正面临这类问题,他们的Worklight服务器不能正常工作,但是这里有一些步骤可以帮助我解决这个问题。

1) Deleted my whole Eclipse folder.

1)删除了整个Eclipse文件夹。

2) Extracted again Eclipse folder from the Zipped file which I downloaded from Eclipse site.

2)从我从Eclipse站点下载的压缩文件中再次提取Eclipse文件夹。

3) Installed Worklight v6 Plugin using "Install new software" option in "Help" tab in Eclipse. More detailed info to install using this process is available at this link-

3)在Eclipse的“Help”选项卡中使用“安装新软件”选项安装Worklight v6插件。使用这个过程安装的更详细的信息可以在这个链接上找到

http://www.ibm.com/developerworks/mobile/worklight/download/install.html

http://www.ibm.com/developerworks/mobile/worklight/download/install.html

My suggestion is not to use Eclipse Marketplace to install the plugin as I got trouble in my two systems while using it.

我的建议是不要使用Eclipse Marketplace来安装插件,因为我在使用这两个系统时遇到了麻烦。

4) Restart Eclipse and check.

4)重新启动Eclipse并检查。

#4


0  

In my case it was a proxy problem. Check if you have a proxy configured in IE Tools->Connections->LAN Settings. I had to disable it in order to make deployment work.

在我看来,这是一个代理问题。检查是否在IE工具->连接->LAN设置中配置了代理。我不得不禁用它以使部署工作。

#5


0  

I to faced the same problem, but in my case the problem was i used Jre 1.8. So by checking all the possible was finally i changed the jre7 path by the fallowing way.

我也遇到了同样的问题,但在我的例子中,问题是我使用了Jre 1.8。所以,通过检查所有可能的情况,我最终改变了jre7路径。

Actually it IBM Worklight needs JRE and JDK 1.7(7)

实际上,IBM Worklight需要JRE和JDK 1.7(7)

  1. In Worklight Studio, open the Servers view.
  2. 在Worklight Studio中,打开Servers视图。
  3. Double-click Worklight Development Server to open the Overview page.
  4. 双击Worklight开发服务器打开Overview页面。
  5. In Overview page click on the Runtime Environment
  6. 在Overview页面中单击运行时环境。
  7. Runtime Environment window in JRE Pane click on Configure JREs...,
  8. 在JRE窗格中的运行时环境窗口单击Configure JREs…,
  9. It shows Preferences window, in that click on add button.
  10. 它显示首选项窗口,在单击add按钮。
  11. it shows another window called Add JRE in that select Standard VM and click on next, In JRE Definition click on Dictionary of JRE Home:, Now select the 1.7 JRE path then click on next then click finish
  12. 它显示了另一个名为Add JRE的窗口,在该窗口中选择标准VM并单击next,在JRE定义中单击JRE Home:,现在选择1.7 JRE路径,然后单击next,然后单击finish
  13. In Preferences window check jre7 and click on OK, finally click on Finish and restart the Eclipse
  14. 在Preferences窗口中检查jre7并单击OK,最后单击Finish并重启Eclipse。

Now run your application on Worklight development server.

现在在Worklight开发服务器上运行应用程序。