Bug 56309

Summary: ExtensionValidator doesn't handle wrapped lines in MANIFEST.MF
Product: Tomcat 7 Reporter: vincent_daniels
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED INVALID    
Severity: normal CC: larry3833-tech
Priority: P2    
Version: 7.0.37   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Bug Depends on: 45628    
Bug Blocks:    

Description vincent_daniels 2014-03-25 13:20:21 UTC
+++ This bug was initially created as a clone of Bug #45628 +++

Deploying webapps that contain commons-attributes-api.jar or commons-attributes-compiler.jar (downloaded from the Maven repository) fail with a message from ExtensionValidator along the lines of 'Required extension "ant" not found'. 

. . .

Bug #45628 claims this was fixed in Apache 5.5.? and 6.0, but I'm using 7.0 and have this exact condition which keeps my context from running.  

INFO: ExtensionValidator[][commons-attributes-api-2.2.jar]: Required extension [ant] not found.
Mar 25, 2014 9:05:01 AM org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator[]: Failure to find [1] required extension(s).
Mar 25, 2014 9:05:01 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
Mar 25, 2014 9:05:01 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors
Mar 25, 2014 9:05:13 AM org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator[][commons-attributes-api-2.2.jar]: Required extension [ant] not found.
Mar 25, 2014 9:05:13 AM org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator[]: Failure to find [1] required extension(s).
Mar 25, 2014 9:05:13 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
Mar 25, 2014 9:05:13 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors
Comment 1 Mark Thomas 2014-03-25 20:15:40 UTC
Just like bug 45628, there is no issue handling wrapped lines in manifest files. The error message is valid and correct.

The extensions defined in the common-attributes-api.jar, on the other hand, looks to be invalid. The specified extension name doesn't match the extension name used in the Ant JARs.