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