Ibm mobilefirst IBM Worklight 6.2 SRVE0777E:应用程序类引发的异常';com.worklight.core.auth.impl.AuthenticationFilter.verifyServletInitialized:422';

Ibm mobilefirst IBM Worklight 6.2 SRVE0777E:应用程序类引发的异常';com.worklight.core.auth.impl.AuthenticationFilter.verifyServletInitialized:422';,ibm-mobilefirst,worklight-server,worklight-studio,Ibm Mobilefirst,Worklight Server,Worklight Studio,1) 我已安装Java版本“1.7.0_71” 2) 我下载eclipse版本:开普勒服务发行版1 构建id:20130919-0819并已提取 3) 我在安装worklight6.2的同时尝试安装worklight6.2,因此根据该帖子中的建议,我已从该站点下载了worklight6.2并进行了配置 4) 然后用我的eclipse配置了ADT插件 5) 现在我已经创建了一个 6) 通过右键单击Worklight development server并启动来启动服务器 7) 现在右键单击Hell

1) 我已安装Java版本“1.7.0_71”

2) 我下载eclipse版本:开普勒服务发行版1 构建id:20130919-0819并已提取

3) 我在安装worklight6.2的同时尝试安装worklight6.2,因此根据该帖子中的建议,我已从该站点下载了worklight6.2并进行了配置

4) 然后用我的eclipse配置了ADT插件

5) 现在我已经创建了一个

6) 通过右键单击Worklight development server并启动来启动服务器

7) 现在右键单击HelloWorld Run As->Run on worklight development server

然后,我在浏览器中打开了我的应用程序,并单击“预览”作为常用资源,但在浏览器中出现以下例外情况:

我已经经历了其中一些,但这些都没有帮助

错误日志如下所示

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
哈里什

我也遇到过类似的问题,我知道这很令人沮丧。这主要是因为配置而不是其他原因

关键是要确保您拥有正确的eclipse版本,并且已经从市场上安装了插件。我总是喜欢从Android开发者网站下载ADT,然后安装Marketplace,然后再安装Worklight插件。在某种程度上,我们也需要完成Android配置这种安装方式帮助我很好地配置了它,不会给工作场所的同事带来任何问题

我不记得该问题的确切解决方法,但我建议您尝试以下步骤:

  • 确保Java编译器的版本为1.7(Eclipse>首选项>编译器>1.7)和相应的JRE版本
  • 如果较低,请将Worklight server超时增加到180秒。(首先通过Eclipse>窗口>显示视图>服务器>服务器来启用服务器视图),然后双击(Worklight Development server),这将为其配置打开GUI。在其中,您将发现超时,将启动超时增加到180秒
  • 通过配置Worklight Development Server下的JVM.options,增加分配给JVM的内存 像这样->-Xmx1024m
  • 如果上述步骤没有帮助,并且您有足够的时间,那么您可以按照我前面提到的方式开始安装和配置


    希望这能有所帮助。

    服务器日志中的堆栈跟踪字段较长,因此必须存在与“读取超时”相关的异常。你能把那个堆栈跟踪贴出来吗。谢谢。更新了错误日志。这不是我所期望的。verifyServletInitialized方法在发现由早期异常(很可能在ProjectJeeActivator.contextInitialized内部)引起的情况时抛出异常。因此,我希望在包含堆栈跟踪中初始化的ProjectJeeActivator.contextInitialized的日志中发现异常。更新了我在worklight中安装和创建应用程序所遵循的所有步骤。我已重新安装了worklight6.2 studio,如上所述,但仍然出现相同的错误。是否检查了超时等步骤,jvm等等?是的,我检查过的所有这些都是正确的,我想你必须在你的帖子中指定你的整个配置,比如eclipse版本、使用的java版本、wl版本等等,你还需要整个堆栈跟踪。检查日志文件。当前堆栈跟踪显示还有5个。显示所有这些将更好地了解问题。更新了我在worklight中安装和创建应用程序所遵循的所有步骤。