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

10

在使用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.

我尝试使用 server start --clean 来解决此问题,如这个论坛帖子所述,但没有起到作用。 在Stackoverflow上有一个类似的问题,但在像IBM这样的PMR之前,也许有人已经遇到并解决了这个问题。
1个回答

11
这些警告表明右侧的JAR(在wsjar:file:...中的JAR)有一个具有Class-Path属性的META-INF/MANIFEST.MF文件,该属性引用左侧的JAR(例如dhbcore.jar),但这些JAR实际上不存在。
此警告表明出现了应用程序打包问题,无法通过更改配置、重新启动服务器等方式解决。它试图帮助您避免类加载问题的常见原因:格式不正确的Class-Path属性和拼写错误的JAR名称。
编辑:从8.5.5.4版本开始,可以使用<logging hideMessage="SRVE9967W">配置在审核这些消息后删除它们。在添加新应用程序(或调试应用程序类路径问题)时,请确保暂时删除隐藏。请参阅知识中心中的Logging and Trace主题。

您好,我已经复制了所有必需的jar文件,但是之后它给出了“找不到jar”错误,但我的项目正常工作,我应该怎么做呢?忽略还是有其他方法来隐藏这样的警告? - Abdullah
1
我建议您开启一个新问题。 - Brett Kail

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接