IBM Worklight 6.2 SRVE0777E:应用程序类“com.worklight.core.auth.impl.AuthenticationFilter.verifyServletIni

Posted

技术标签:

【中文标题】IBM Worklight 6.2 SRVE0777E:应用程序类“com.worklight.core.auth.impl.AuthenticationFilter.verifyServletInitialized:422”引发异常【英文标题】:IBM Worklight 6.2 SRVE0777E: Exception thrown by application class 'com.worklight.core.auth.impl.AuthenticationFilter.verifyServletInitialized:422' 【发布时间】:2014-10-28 08:24:29 【问题描述】:

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 -> Run on worklight development server。

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

我已经经历了其中的一些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

【问题讨论】:

必须有一个关于“读取超时”的异常,在服务器日志中记录了较长的堆栈跟踪。您能否发布该堆栈跟踪。谢谢。 已更新错误日志。 这不是我所期望的。 verifyServletInitialized 方法在发现由早期异常引起的情况时抛出异常,很可能在 ProjectJeeActivator.contextInitialized 内部。因此,我希望在堆栈跟踪中包含 ProjectJeeActivator.contextInitialized 的日志中找到一个异常。 更新了我在 worklight 中安装和创建应用程序所遵循的所有步骤。 【参考方案1】:

哈里什,

我也遇到过类似的问题,我知道这很令人沮丧。主要是配置原因,没有别的原因。

关键是确保您拥有正确的 eclipse 版本并从市场安装了插件。我总是喜欢从 android Developer Site 下载 ADT,然后安装 Marketplace,然后再安装 Worklight 插件。在某种程度上也完成了 Android 配置,无论如何我们都需要它。 => 这种安装方式帮助我很好地配置了它,而我的同事在工作场所没有问题。

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

    确保 Java 编译器是 1.7 版(Eclipse > Preferences > Compiler > 1.7)和相应的 JRE 版本。 将 Worklight 服务器超时时间增加到 180 秒(如果更低)。 (首先通过 Eclipse > Window > Show View > Server > Servers 启用服务器视图)然后双击(Worklight Development Server),这将为其配置打开一个 GUI。在里面你会发现Timeouts,把启动超时时间增加到180秒。 通过在 Worklight Development Server 下配置 jvm.options 来增加分配给 JVM 的内存 像这样 -> -Xmx1024m

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

希望这会有所帮助。

【讨论】:

我已经按照你上面说的重新安装了worklight6.2 studio,但仍然出现同样的错误 超时、jvm等步骤检查了吗? 是的,我检查过的所有这些都是正确的,这里是jvm.options 我认为您必须在帖子中指定整个配置,例如 eclipse 版本、使用的 java 版本、wl 版本等,您还需要整个堆栈跟踪。检查日志文件。当前堆栈跟踪显示还有 5 个。展示所有这些内容将有助于更好地了解问题。 更新了我在 worklight 中安装和创建应用程序所遵循的所有步骤。

以上是关于IBM Worklight 6.2 SRVE0777E:应用程序类“com.worklight.core.auth.impl.AuthenticationFilter.verifyServletIni的主要内容,如果未能解决你的问题,请参考以下文章

IBM Worklight 6.2。分析拓扑。主节点和数据节点

IBM Worklight 6.2 ChallengeHandler submitFailure:未按预期运行

IBM Worklight 6.2 Development Server 自动停止

IBM Worklight 6.2 无法设置状态。响应已提交

IBM Worklight 6.2:JMX 配置错误。无法获取 MBean

IBM Worklight - 尝试部署应用程序/适配器时出错