1)Java版本 “1.7.0_71” 我已经安装了IBM工作灯6.2 SRVE0777E:通过应用程序类抛出的异常 'com.worklight.core.auth.impl.AuthenticationFilter.verifyServletInitialized:422'
2)我下载eclipse版本:Kepler Service Release 1 Build ID:20130919-0819并提取。
3)我试图安装worklight6.2 as said in this安装时我遇到了this issue,因此根据该帖子中的建议,我从该站点下载了worklight6.2并进行了配置。
4)然后用我的日食配置ADT插件。
5)现在我创建了一个Hello world app as per the instructions。
6)右键单击Worklight开发服务器并启动,启动服务器。
7)现在右键单击HelloWorld Run As - >在worklight开发服务器上运行。
然后我打开了我的应用程序在浏览器点击预览作为公共资源,但它给浏览器以下异常:
我已经通过一些links,但那些确实不见了没有帮助。
错误日志如下..
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
在服务器日志中存在一个更长的堆栈跟踪时,必须存在“读取超时”异常。你可以请张贴堆栈跟踪。谢谢。用错误日志更新了 – 2014-10-28 10:15:52
。 – Harish 2014-10-29 04:50:28
这不是我期待的。 verifyServletInitialized方法在发现由较早的异常导致的情况时引发异常,很可能在ProjectJeeActivator.contextInitialized内。因此,我期待在堆栈跟踪中包含ProjectJeeActivator.contextInitialized的日志中发现异常。 – 2014-10-30 14:41:16