1)Java版本" 1.7.0_71"我已经安装了
2)我下载了eclipse版本:Kepler Service Release 1 构建ID:20130919-0819并解压缩。
3)我尝试安装worklight6.2 as said in this,同时安装我遇到了this issue,因此根据该帖子中的建议,我已经从该站点下载了worklight6.2并进行了配置。
4)然后用我的eclipse配置ADT插件。
5)现在我创建了一个Hello world app as per the instructions。
6)右键单击Worklight开发服务器启动服务器并启动。
7)现在右键点击HelloWorld Run As - >在worklight开发服务器上运行。
然后我在浏览器中打开了我的应用程序并单击预览作为常用资源它但它在浏览器中给出以下异常:
我已经完成了其中一些links,但那些没有帮助。
ErrorLog如下..
Listening for transport dt_socket at address: 10777
Launching worklight (WebSphere Application Server 8.5.5.1/wlp-1.0.4.cl50120131011-1639) on Java HotSpot(TM) Client VM, version 1.7.0_71-b14 (en_US)
[AUDIT ] CWWKE0001I: The server worklight has been launched.
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[WARNING ] CWNEN0070W: The javax.ws.rs.QueryParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.PathParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.HeaderParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.core.Context annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.CookieParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.MatrixParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.QueryParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.PathParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.HeaderParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.core.Context annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.CookieParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.MatrixParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[AUDIT ] CWWKZ0022W: Application WorklightConsole has not started in 30.012 seconds.
[AUDIT ] CWWKF0011I: The server worklight is ready to run a smarter planet.
[AUDIT ] CWWKZ0022W: Application HelloWorld has not started in 30.027 seconds.
[AUDIT ] CWWKZ0022W: Application _MobileBrowserSimulator has not started in 30.016 seconds.
[AUDIT ] CWWKZ0022W: Application WorklightServices has not started in 30.017 seconds.
[AUDIT ] CWWKZ0022W: Application _analytics has not started in 30.013 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://Harish:10080/IBMJMXConnectorREST/
[AUDIT ] CWWKT0016I: Web application available (default_host): http://Harish:10080/worklightadmin/
[AUDIT ] CWWKZ0001I: Application WorklightServices started in 84.379 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://Harish:10080/_analytics/
[AUDIT ] CWWKZ0001I: Application _analytics started in 77.031 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://Harish:10080/HelloWorld/
[AUDIT ] CWWKZ0001I: Application HelloWorld started in 86.932 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://Harish:10080/_MobileBrowserSimulator/
[AUDIT ] CWWKZ0001I: Application _MobileBrowserSimulator started in 84.441 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://Harish:10080/worklightconsole/
[AUDIT ] CWWKZ0001I: Application WorklightConsole started in 87.959 seconds.
[ERROR ] FWLST0003E: ========= Failed starting project /HelloWorld [project HelloWorld]
java.lang.reflect.InvocationTargetException
[ERROR ] FWLST0003E: ========= Failed starting project /HelloWorld [project HelloWorld]
java.lang.reflect.InvocationTargetException
[ERROR ] SRVE0315E: An execption occurred: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: java.net.SocketTimeoutException: Read timed out
at com.worklight.core.auth.impl.AuthenticationFilter.verifyServletInitialized(AuthenticationFilter.java:435)
at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:128)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at [internal classes]
Caused by: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: java.net.SocketTimeoutException: Read timed out
... 5 more
答案 0 :(得分:0)
哈里什,
我遇到过类似的问题,我知道这令人沮丧。这主要是因为配置而没有别的。
关键要素是确保您拥有正确的eclipse版本并安装了市场上的插件。我总是喜欢从Android开发者网站下载ADT,然后安装Marketplace,然后安装Worklight插件。在某种程度上也完成了Android配置,无论如何我们都需要它。 =>这种安装方式帮助我很好地配置它,而不会给我在工作场所的同事带来任何问题。
我不记得此问题的确切修复方法,但我建议您尝试以下步骤:
如果以上步骤没有帮助,并且您有足够的时间,那么您可以开始安装和配置我之前提到的方式。
希望这有帮助。