SRVE9967W:在jar文件中找不到清单类路径xercesImpl.jar

时间:2014-12-05 10:29:46

标签: java eclipse maven jar websphere-liberty

我一直在这个圈子里。我们正在使用WebSphere Liberty,Eclipse和Maven。我收到了几个警告,比如

[WARNING ] SRVE9967W: The manifest class path xercesImpl.jar can not be found in jar file file:/C:/Users/.m2/repository/xalan/xalan/2.7.1/xalan-2.7.1.jar or its parent.

当我启动服务器时。对于所有“class path something.jar”,它们位于我项目中的Maven Dependencies文件夹中,并且在我的repo中虽然它们附加了版本号(例如xercesImpl-2.11.0.jar)。它声称该应用程序是可用的,但如果我尝试去地址,我会得到各种令人讨厌的错误,大部分是找不到的。

当我尝试通过Maven打包我的项目时,我正在

[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to all-external-repositories-mirror (http://mirror/m2-repo/content/groups/adc-standard-repositories): null to http://mirror/m2-repo/content/groups/adc-standard-repositories/org/apache/maven/plugins/maven-metadata.xml

我大约70%肯定这个问题归结为我们的项目的Maven使用了一个我无法从这里访问的镜像这一事实,我大约90%确定有一个工作可以使用我的本地回购,但我无法弄清楚在哪里做出改变。我尝试在整个工作区中搜索任何xerces或xalan,但没有提到任何东西。

我发誓,只要我有罐子,就可以使用我当地的仓库。我也觉得很奇怪,它编译并让我运行测试而不抱怨这个。

任何想法,即使只是在哪里看都会非常感激。我发现有很多关于类似错误的事情提到了WebSphere(更具体地说是Liberty),所以我也想知道它是否与WebSphere部署的方式有关。

1 个答案:

答案 0 :(得分:4)

它实际上与WebSphere无关。在添加到项目中的xalan-2.7.1.jar中,有META-INF/MANIFEST.MF个文件。在其中,您将找到类似这样的类路径:

Manifest-Version: 1.0
Created-By: 1.3.1 
Main-Class: org.apache.xalan.xslt.Process
Class-Path: xercesImpl.jar xml-apis.jar serializer.jar

正如您所看到的,类路径引用xercesImpl.jar,遗憾的是您的构建正在创建xercesImpl-2.11.0.jar,因此无法解析。但是,这只是一个警告,如果类路径中的xercesImpl类可用,应用程序应运行正常。