我在用Struts 2和Spring做项目启动Tomcat时出现如下信息:
2009-8-30 22:52:42 org.apache.catalina.core.StandardContext start
严重: Error getConfigured
2009-8-30 22:52:42 org.apache.catalina.core.StandardContext start
严重: Context [/spring] startup failed due to previous errors这是其中的两个最主要的信息,
完整信息如下:
2009-8-30 22:52:27 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_13\bin;E:\apache-tomcat-6.0.18\bin
2009-8-30 22:52:28 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8081
2009-8-30 22:52:28 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1687 ms
2009-8-30 22:52:28 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-8-30 22:52:28 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.18
2009-8-30 22:52:30 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2009-8-30 22:52:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2009-8-30 22:52:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2009-8-30 22:52:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts.xml, skipping
2009-8-30 22:52:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2009-8-30 22:52:33 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2009-8-30 22:52:34 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2009-8-30 22:52:34 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2009-8-30 22:52:34 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2009-8-30 22:52:36 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2009-8-30 22:52:36 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2009-8-30 22:52:39 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2009-8-30 22:52:40 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2009-8-30 22:52:40 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2009-8-30 22:52:40 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2009-8-30 22:52:42 org.apache.catalina.util.ExtensionValidator validateManifestResources
信息: ExtensionValidator[/spring][commons-attributes-compiler.jar]: Required extension "ant" not found.
2009-8-30 22:52:42 org.apache.catalina.util.ExtensionValidator validateManifestResources
信息: ExtensionValidator[/spring][commons-attributes-compiler.jar]: Required extension "qdox" not found.
2009-8-30 22:52:42 org.apache.catalina.util.ExtensionValidator validateManifestResources
信息: ExtensionValidator[/spring][commons-attributes-compiler.jar]: Required extension "commons-attributes-api" not found.
2009-8-30 22:52:42 org.apache.catalina.util.ExtensionValidator validateManifestResources
信息: ExtensionValidator[/spring][commons-attributes-compiler.jar]: Required extension "javadoc" not found.
2009-8-30 22:52:42 org.apache.catalina.util.ExtensionValidator validateManifestResources
信息: ExtensionValidator[/spring]: Failure to find 4 required extension(s).
2009-8-30 22:52:42 org.apache.catalina.core.StandardContext start
严重: Error getConfigured
2009-8-30 22:52:42 org.apache.catalina.core.StandardContext start
严重: Context [/spring] startup failed due to previous errors
2009-8-30 22:52:42 org.apache.catalina.core.StandardContext stop
信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/spring] has not been started
2009-8-30 22:52:44 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2009-8-30 22:52:44 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2009-8-30 22:52:44 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2009-8-30 22:52:45 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2009-8-30 22:52:46 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8081
2009-8-30 22:52:47 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2009-8-30 22:52:47 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/109  config=null
2009-8-30 22:52:47 org.apache.catalina.startup.Catalina start
信息: Server startup in 18858 ms
希望高手指点一下,谢谢了!

解决方案 »

  1.   

    原因可能是 commons-attributes-compiler.jar 所造成的 
    可以嘗試把這個 jar 移走, 或修改它的 META-INF/MANIFEST.MF 
      

  2.   

    我把commons-attributes-compiler.jar 移走了,可还是出现同样的问题,
      

  3.   

    我的META-INF/MANIFEST.MF 也没办法修改,怎么办呀?
      

  4.   

    谢谢各位的帮助,我的问题已经解决了,原因是我加载的jar包太多了,不仅把commons-attributes-compiler.jar 包删了,还把很多包也一起删了,再启动时就没问题了,谢谢了!