日期:2014-05-19  浏览次数:20689 次

java 项目运行问题
2012-2-7 15:29:48 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.20.
2012-2-7 15:29:48 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2012-2-7 15:29:48 org.apache.catalina.startup.SetAllPropertiesRule begin
警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'minSpareThreads' to '25' did not find a matching property.
2012-2-7 15:29:48 org.apache.catalina.startup.SetAllPropertiesRule begin
警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxSpareThreads' to '75' did not find a matching property.
2012-2-7 15:29:48 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Logger'.
2012-2-7 15:29:49 org.apache.coyote.http11.Http11AprProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2012-2-7 15:29:49 org.apache.coyote.ajp.AjpAprProtocol init
信息: Initializing Coyote AJP/1.3 on ajp-6190
2012-2-7 15:29:49 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 436 ms
2012-2-7 15:29:49 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2012-2-7 15:29:49 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.32
2012-2-7 15:29:49 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor host-manager.xml
2012-2-7 15:29:49 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2012-2-7 15:29:49 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2012-2-7 15:29:49 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ebc-sell
2012-2-7 15:29:49 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(E:\apache-tomcat-6.0\webapps\ebc-sell\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax rvlet/Servlet.class
2012-2-7 15:29:49 org.apache.catalina.core.ApplicationContext log
信息: Set web app root system property: 'ebc-sell.root' = [E:\apache-tomcat-6.0\webapps\ebc-sell\]
2012-2-7 15:29:49 org.apache.catalina.core.ApplicationContext log
信息: Initializing log4j from [E:\apache-tomcat-6.0\webapps\ebc-sell\WEB-INF\log4j.properties]
2012-2-7 15:29:50 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext


到这就没有反映了


------解决方案--------------------
首先换下tomcat版本试试
出现这种情况是这表示没有找到APR
去http://tomcat.heanet.ie/native/下载编译好的tcnative-1.dll文件,目前最新为1.1.14,拷贝至jdk\bin下,再启动就可以成功加载APR了。