系统环境:WinXP
数据库:SQL2000
开发工具:MyEclipse5.5M2
之所以采用MyEclipse5.5M2主要时看重这个版本的MyEclipse集成了最新的Spring2.0版本。这个系统采用了SSH框架结构,由于是初次使用,而且人员经验有限,遇到了比较多的问题,其中Error getConfigured / ExtensionValidator error错误是困扰了我两天的问题。
出现这个问题的条件是使用MyEclipse5.5M2,并且使用Spring Core包。
问题的表现形式是,当把项目部署到Tomcat服务器时,出现如下错误:
这个问题出现的原因是commons-attributes-compiler.jar包的MANIFEST.MF文件出现问题,如果对这个包没有依赖,直接删除这个包的引用,项目就可以正常启动,如果对这个包有依赖,那么可以通过以下两种方式来解决。
1、修改MANIFEST.MF文件
原compiler.jar包中的MF文件结构
2、替换compiler.jar包
下载,将我提供的jar包下载之后替换也可以解决这个问题
数据库:SQL2000
开发工具:MyEclipse5.5M2
之所以采用MyEclipse5.5M2主要时看重这个版本的MyEclipse集成了最新的Spring2.0版本。这个系统采用了SSH框架结构,由于是初次使用,而且人员经验有限,遇到了比较多的问题,其中Error getConfigured / ExtensionValidator error错误是困扰了我两天的问题。
出现这个问题的条件是使用MyEclipse5.5M2,并且使用Spring Core包。
问题的表现形式是,当把项目部署到Tomcat服务器时,出现如下错误:
INFO: Deploying web application archive TestSpringMVC.war
Aug 18 , 2006 10 : 21 : 13 AM org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator[ / TestSpringMVC][commons - attributes - api.jar]: Required extension " ant " not found.
Aug 18 , 2006 10 : 21 : 13 AM org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator[ / TestSpringMVC][commons - attributes - compiler.jar]: Required extension " ant " not found.
Aug 18 , 2006 10 : 21 : 13 AM org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator[ / TestSpringMVC][commons - attributes - compiler.jar]: Required extension " javadoc " not found.
Aug 18 , 2006 10 : 21 : 13 AM org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator[ / TestSpringMVC]: Failure to find 3 required extension(s).
Aug 18 , 2006 10 : 21 : 13 AM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Aug 18 , 2006 10 : 21 : 13 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [ / TestSpringMVC] startup failed due to previous errors
Aug 18 , 2006 10 : 21 : 13 AM org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[ / TestSpringMVC] has not been started
这个问题导致项目无法启动,也就无法去访问。
Aug 18 , 2006 10 : 21 : 13 AM org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator[ / TestSpringMVC][commons - attributes - api.jar]: Required extension " ant " not found.
Aug 18 , 2006 10 : 21 : 13 AM org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator[ / TestSpringMVC][commons - attributes - compiler.jar]: Required extension " ant " not found.
Aug 18 , 2006 10 : 21 : 13 AM org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator[ / TestSpringMVC][commons - attributes - compiler.jar]: Required extension " javadoc " not found.
Aug 18 , 2006 10 : 21 : 13 AM org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator[ / TestSpringMVC]: Failure to find 3 required extension(s).
Aug 18 , 2006 10 : 21 : 13 AM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Aug 18 , 2006 10 : 21 : 13 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [ / TestSpringMVC] startup failed due to previous errors
Aug 18 , 2006 10 : 21 : 13 AM org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[ / TestSpringMVC] has not been started
这个问题出现的原因是commons-attributes-compiler.jar包的MANIFEST.MF文件出现问题,如果对这个包没有依赖,直接删除这个包的引用,项目就可以正常启动,如果对这个包有依赖,那么可以通过以下两种方式来解决。
1、修改MANIFEST.MF文件
原compiler.jar包中的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
我们可以看到URL后面的地址中含有一些不必要的字符,将MF文件修改如下
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
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
这个问题就可以解决。
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
2、替换compiler.jar包
下载,将我提供的jar包下载之后替换也可以解决这个问题