Bug 56309 - ExtensionValidator doesn't handle wrapped lines in MANIFEST.MF
Summary: ExtensionValidator doesn't handle wrapped lines in MANIFEST.MF
Status: RESOLVED INVALID
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 7.0.37
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on: 45628
Blocks:
  Show dependency tree
 
Reported: 2014-03-25 13:20 UTC by vincent_daniels
Modified: 2014-03-25 20:15 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.