2014-10-28 192 views
2

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开发服务器上运行。

然后我打开了我的应用程序在浏览器点击预览作为公共资源,但它给浏览器以下异常:

enter image description here

我已经通过一些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 
+0

在服务器日志中存在一个更长的堆栈跟踪时,必须存在“读取超时”异常。你可以请张贴堆栈跟踪。谢谢。用错误日志更新了 – 2014-10-28 10:15:52

+0

。 – Harish 2014-10-29 04:50:28

+1

这不是我期待的。 verifyServletInitialized方法在发现由较早的异常导致的情况时引发异常,很可能在ProjectJeeActivator.contextInitialized内。因此,我期待在堆栈跟踪中包含ProjectJeeActivator.contextInitialized的日志中发现异常。 – 2014-10-30 14:41:16

回答

0

哈里什,

我都面临着类似的问题,我知道这是令人沮丧。这主要是因为配置,没有别的。

关键要素是确保你有正确的eclipse版本并且已经安装了来自市场的插件。我总是喜欢从Android开发人员站点下载ADT,然后安装Marketplace,然后安装Worklight插件。在完成Android配置的方式中,我们仍然需要它。 =>这种安装方式帮助我对工作场所的同事进行配置,没有任何问题。

我不记得了针对此问题的具体修复,但我建议你尝试以下步骤:

  1. 确保Java编译器版本为1.7(Eclipse的>首选项>编译器> 1.7)以及相应的JRE版本。
  2. 如果较低,请将Worklight服务器超时增加到180秒。 (首先通过Eclipse> Window> Show View> Server> Servers启用服务器视图),然后双击(Worklight Development Server),它将为其配置打开一个GUI。在其中,您会发现超时,将启动超时时间增加到180秒。
  3. 通过在工作灯开发服务器 配置jvm.options这样增加分配给JVM内存 - > -Xmx1024m

如果这些上述步骤没有帮助,如果你有足够的时间,那么你就可以开始安装和配置我之前提到的方式。

希望这会有所帮助。

+0

我已经重新安装了worklight6.2 studio,如上所述,但它仍然给出了相同的错误 – Harish 2014-10-30 08:56:20

+0

您是否检查了诸如timeout,jvm等步骤? – 2014-10-30 10:17:39

+0

是啊所有那些我检查他们是正确的这里是[jvm.options](http://pastie.org/9685186) – Harish 2014-10-30 10:22:08