[commons-attributes-api-2.2.jar]: Required extension [ant] not found.
来源:互联网 发布:双枪入洞什么感觉知乎 编辑:程序博客网 时间:2024/06/05 20:20
web应用的war包部署到tomcat下面时有如下类似错误信息:
[commons-attributes-api-2.2.jar]: Required extension [ant] not found.
这个错误会导致项目启动失败,无法访问应用。这个问题出现的原因是commons-attributes-api-2.2.jar包的MF文件存在问题导致的。如果对这个jar包没有依赖,直接删除该jar包的引用即可;如果对这个包有依赖,那么可以通过修改 jar包里的 META-INF/MANIFEST.MF 文件的方式来解决:
原文件的有问题的内容如下:
Extension-List: ant qdoxant-Extension-Name: antant-Implementation-Version: 1.5ant-Implementation-URL: http://www.ibiblio.org/maven/ant/jars/ant-1.5. jarqdox-Extension-Name: qdoxqdox-Implementation-Version: 1.5qdox-Implementation-URL: http://www.ibiblio.org/maven/qdox/jars/qdox-1 .5.jar
多了两个回车换行,修改后如下:
Extension-List: ant qdoxant-Extension-Name: antant-Implementation-Version: 1.5ant-Implementation-URL: http://www.ibiblio.org/maven/ant/jars/ant-1.5.jarqdox-Extension-Name: qdoxqdox-Implementation-Version: 1.5qdox-Implementation-URL: http://www.ibiblio.org/maven/qdox/jars/qdox-1.5.jar
修改后的jar包替换原来得,重新启动项目就正常了。
ps:如果项目中有 commons-attributes-compiler-2.2.jar 包也需要修改 MF文件,同样存在该问题。
0 0
- [commons-attributes-api-2.2.jar]: Required extension [ant] not found.
- commons-attributes-compiler.jar]: Required extension qdox not found问题(转)
- Required extension "ant" not found
- A required library with BLAS API not found.
- Ant error: Could not find xml-commons-apis Java extension for this JVM解决方法
- Ant error: Could not find xml-commons-apis Java extension for this JVM解决方法
- delphi required package"....." not found
- 暂记Required package *** not found
- delphi required package"....." not found
- 解决FindBLAS.cmake error LAPACK/BLAS: A required library with BLAS API not found.
- Access restriction: The type 'Application' is not API (restriction on required library rt.jar)
- Executable extension definition for "class" not found.
- required file `config.h.in' not found
- required file `build/ltmain.sh' not found
- mvn eclipse eclipse required goal not found
- E2202 Required package 'rtl' not found
- required file `./ltmain.sh' not found
- Maven tools.jar not found
- KMP算法
- iOS 解决tableview分割线右缩进15像素问题
- [前端] js prototype简单理解
- OpenGL:屏幕二维坐标转化为三维模型坐标
- eclipse打开当前文件所在文件夹的两种方法
- [commons-attributes-api-2.2.jar]: Required extension [ant] not found.
- 数字证书详解
- @property的使用
- SpEL(2)
- HTML cellpadding与cellspacing属性图文
- ActiveXObject 留以备用
- HDOJ 1873 看病要排队
- Java内存管理: stack and heap
- RTP 与RTCP 解释. 含同步时间戳