2011-5-1 12:21:35 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: D:\sofewareZone\java\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:/sofewareZone/java/bin/client;D:/sofewareZone/java/bin;D:/sofewareZone/java/lib/i386;D:\sofewareZone\oracle\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;c:\program files\microsoft sql server\100\tools\binn\;c:\program files\microsoft sql server\100\dts\binn\;c:\program files\microsoft sql server\100\tools\binn\vsshell\common7\ide\;c:\program files\microsoft visual studio 9.0\common7\ide\privateassemblies\;c:\windows\system32\windowspowershell\v1.0;c:\program files\microsoft sql server\90\tools\binn\;d:\matlab\bin;d:\matlab\bin\win32;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;D:\sofewareZone\java;\bin;D:\sofewareZone\android\sdk\android-sdk-windows\platform-tools;;D:\sofewareZone\eclipse;
2011-5-1 12:21:35 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:android' did not find a matching property.
2011-5-1 12:21:35 org.apache.coyote.AbstractProtocolHandler init
信息: Initializing ProtocolHandler ["http-bio-8080"]
2011-5-1 12:21:35 org.apache.coyote.AbstractProtocolHandler init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
2011-5-1 12:21:35 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 418 ms
2011-5-1 12:21:35 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
2011-5-1 12:21:35 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.12
2011-5-1 12:21:36 org.apache.catalina.util.ExtensionValidator validateManifestResources
信息: ExtensionValidator[/android][commons-attributes-compiler.jar]: Required extension [ant] not found.
2011-5-1 12:21:36 org.apache.catalina.util.ExtensionValidator validateManifestResources
信息: ExtensionValidator[/android][commons-attributes-compiler.jar]: Required extension [qdox] not found.
2011-5-1 12:21:36 org.apache.catalina.util.ExtensionValidator validateManifestResources
信息: ExtensionValidator[/android][commons-attributes-compiler.jar]: Required extension [commons-attributes-api] not found.
2011-5-1 12:21:36 org.apache.catalina.util.ExtensionValidator validateManifestResources
信息: ExtensionValidator[/android][commons-attributes-compiler.jar]: Required extension [javadoc] not found.
2011-5-1 12:21:36 org.apache.catalina.util.ExtensionValidator validateManifestResources
信息: ExtensionValidator[/android]: Failure to find [4] required extension(s).
2011-5-1 12:21:36 org.apache.catalina.core.StandardContext startInternal
严重: Error getConfigured
2011-5-1 12:21:36 org.apache.catalina.core.StandardContext startInternal
严重: Context [/android] startup failed due to previous errors
2011-5-1 12:21:36 org.apache.coyote.AbstractProtocolHandler start
信息: Starting ProtocolHandler ["http-bio-8080"]
2011-5-1 12:21:36 org.apache.coyote.AbstractProtocolHandler start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
2011-5-1 12:21:36 org.apache.catalina.startup.Catalina start
信息: Server startup in 289 ms

解决方案 »

  1.   

    我把lib下的commons-attributes-compiler.jar"、"commons-attributes-api.jar"删除了就可以了,我不知道是什么原因
      

  2.   

    还有补充一下,我用的是eclipse不是myeclipse
    applicationContext.xml在src目录下,web.xml中配置
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
    那么applicationContext.xml路径要怎么配,applicationContext.xml在build的classes下
    web的contextConfigLocation要怎么配
      

  3.   

    applicationContext.xml这个文件要放在/WEB-INF目录下
      

  4.   

    对应文件applicationContex.xml是自动放在build文件夹下,如果要放在/WEB-INF,要手工操作
      

  5.   

    若不想放配置文件到WEB-INF目录下,则可以这么配置:
        <context-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>
    classpath:/applicationContext.xml
            </param-value>
        </context-param>
      

  6.   

    小弟愚钝,那个classpath表示什么路径,不过小弟最后把classes默认改到WEB-INF下,就可以了
      

  7.   

    classpath表示资源来自于类路径(src/classes)而不是WebApplicationContext默认的Web路径。