Required extension "ant" 和 "qdox" not found.

Attributes 架包下载地址:   http://commons.apache.org/attributes/

错误:

2011-4-16 16:09:52 org.apache.catalina.util.ExtensionValidator validateManifestResources
信息: ExtensionValidator[/xxx][commons-attributes-api-2.2.jar]: Required extension "ant" not found.
2011-4-16 16:09:52 org.apache.catalina.util.ExtensionValidator validateManifestResources
信息: ExtensionValidator[/xxx][commons-attributes-api-2.2.jar]: Required extension "qdox" not found.
2011-4-16 16:09:52 org.apache.catalina.util.ExtensionValidator validateManifestResources
信息: ExtensionValidator[/xxx]: Failure to find 2 required extension(s).
2011-4-16 16:09:52 org.apache.catalina.core.StandardContext start
严重: Error getConfigured
2011-4-16 16:09:52 org.apache.catalina.core.StandardContext start
严重: Context [/xxx] startup failed due to previous errors
2011-4-16 16:09:52 org.apache.catalina.core.StandardContext stop
信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/xxx] has not been started

解决方法:

打开META-INF.MF可以看到配置信息

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3 
Created-By: Apache Maven
Built-By: hen
Package: org.apache.commons.attributes
Build-Jdk: 1.4.2_05
Extension-Name: commons-attributes-api
Specification-Title: Client API for Jakarta Commons Attributes.
Specification-Vendor: The Apache Software Foundation
Implementation-Title: org.apache.commons.attributes
Implementation-Vendor: The Apache Software Foundation
Implementation-Version: 2.2
Extension-List: ant qdox
ant-Extension-Name: ant
ant-Implementation-Version: 1.5
ant-Implementation-URL: http://www.ibiblio.org/maven/ant/jars/ant-1.5.
 jar
qdox-Extension-Name: qdox
qdox-Implementation-Version: 1.5
qdox-Implementation-URL: http://www.ibiblio.org/maven/qdox/jars/qdox-1
 .5.jar
Implementation-Vendor-Id: org.apache
X-Compile-Source-JDK: 1.4
X-Compile-Target-JDK: 1.4

删除不必要的Extension

Extension-List: ant qdox
ant-Extension-Name: ant
ant-Implementation-Version: 1.5
ant-Implementation-URL: http://www.ibiblio.org/maven/ant/jars/ant-1.5.
 jar
qdox-Extension-Name: qdox
qdox-Implementation-Version: 1.5
qdox-Implementation-URL: http://www.ibiblio.org/maven/qdox/jars/qdox-1
 .5.jar

删除后文件内容:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3 
Created-By: Apache Maven
Built-By: hen
Package: org.apache.commons.attributes
Build-Jdk: 1.4.2_05
Extension-Name: commons-attributes-api
Specification-Title: Client API for Jakarta Commons Attributes.
Specification-Vendor: The Apache Software Foundation
Implementation-Title: org.apache.commons.attributes
Implementation-Vendor: The Apache Software Foundation
Implementation-Version: 2.2
Implementation-Vendor-Id: org.apache
X-Compile-Source-JDK: 1.4
X-Compile-Target-JDK: 1.4

保存文件重新部署

此时可能不会替换Tomcat中的jar包请删除Tomcat中的文件重新部署即可解决问题

ant

相关推荐