MyEclipse Error getConfigured / ExtensionValidator error解決方案
Posted on 2007-04-26 10:30 姜海龍 閱讀(5335) 評論(13) 編輯 收藏 所屬分類: SSH系統環境:WinXP
數據庫: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
這個問題導致項目無法啟動,也就無法去訪問。
這個問題出現的原因是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文件修改如下
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
這個問題就可以解決。
2、替換compiler.jar包
下載,將我提供的jar包下載之后替換也可以解決這個問題
數據庫: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包下載之后替換也可以解決這個問題