为什么在WebSphere Liberty Profile启动时找不到清单类路径条目?

时间:2014-01-03 15:30:13

标签: classpath manifest websphere-liberty

使用WebSphere Liberty Profile(版本2013.11.0.0 - 8.5.5.Next Alpha及扩展内容)启动我的应用程序时,会出现很多警告:

W SRVE9967W: The manifest class path dhbcore.jar can not be found in jar file wsjar:file:[blablabla] or its parent.
W SRVE9967W: The manifest class path jms.jar can not be found in jar file wsjar:file:[blablabla] or its parent.
W SRVE9967W: The manifest class path com.ibm.mq.jmqi.jar can not be found in jar file wsjar:file:[blablabla] or its parent.
W SRVE9967W: The manifest class path dhbcore.jar can not be found in jar file wsjar:file:[blablabla] or its parent.
W SRVE9967W: The manifest class path rmm.jar can not be found in jar file wsjar:file:[blablabla] or its parent.
W SRVE9967W: The manifest class path jndi.jar can not be found in jar file wsjar:file:[blablabla] or its parent.
W SRVE9967W: The manifest class path ldap.jar can not be found in jar file wsjar:file:[blablabla] or its parent.
W SRVE9967W: The manifest class path fscontext.jar can not be found in jar wsjar:file:[blablabla] or its parent.
W SRVE9967W: The manifest class path providerutil.jar can not be found in jar file wsjar:file:[blablabla] or its parent.
W SRVE9967W: The manifest class path jta.jar can not be found in jar file wsjar:file:[blablabla] or its parent.
W SRVE9967W: The manifest class path com.ibm.mq.ese.jar can not be found in jar wsjar:file:[blablabla] or its parent.

我试图按照this forum thread中的说明使用server start --clean解决这个问题,但它没有帮助。 Stackoverflow上有a similar question,但在IBM建立PMR之前,也许有人也遇到过这个问题并且已经解决了。

1 个答案:

答案 0 :(得分:8)

这些警告说右边的JAR(wsjar:file:...中的那个)有一个META-INF/MANIFEST.MF文件,其Class-Path属性引用左边的JAR(例如, dhbcore.jar),但那些JAR实际上并不存在。

此警告表示应用程序打包问题,而不是可以通过更改配置,重新启动服务器等解决的问题。它正在尝试帮助您避免类加载问题的常见原因:格式错误Class-Path属性和拼写错误的JAR名称。

修改:自8.5.5.4起,<logging hideMessage="SRVE9967W">配置可用于在审核后删除这些消息。确保在添加新应用程序时临时删除隐藏(或调试应用程序类路径问题)。请参阅知识中心中的Logging and Trace主题。