- 启动 Tomcat servlet 引擎 tomcat7 [失败]
CATALINA日志
> Nov 26, 2013 9:02:09 AM org.apache.catalina.core.AprLifecycleListener
> init INFO: The APR based Apache Tomcat Native library which allows
> optimal performance in production environments was not found on the
> java.library.path:
> /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/li Nov 26,
> 2013 9:02:09 AM org.apache.tomcat.util.digester.SetPropertiesRule
> begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting
> property 'debug' to '0' did not find a matching property. Nov 26, 2013
> 9:02:09 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting
> property 'debug' to '0' did not find a matching property. Nov 26, 2013
> 9:02:09 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting
> property 'debug' to '0' did not find a matching property. Nov 26, 2013
> 9:02:09 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting
> property 'debug' to '0' did not find a matching property. Nov 26, 2013
> 9:02:09 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting
> property 'debug' to '0' did not find a matching property. Nov 26, 2013
> 9:02:09 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting
> property 'debug' to '0' did not find a matching property. Nov 26, 2013
> 9:02:09 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting
> property 'debug' to '0' did not find a matching property. Nov 26, 2013
> 9:02:09 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting
> property 'debug' to '0' did not find a matching property. Nov 26, 2013
> 9:02:09 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting
> property 'debug' to '0' did not find a matching property. Nov 26, 2013
> 9:02:09 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting
> property 'debug' to '0' did not find a matching property. Nov 26, 2013
> 9:02:09 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting
> property 'debug' to '0' did not find a matching property. Nov 26, 2013
> 9:02:10 AM org.apache.coyote.AbstractProtocol init INFO: Initializing
> ProtocolHandler ["http-bio-8080"] Nov 26, 2013 9:02:10 AM
> org.apache.coyote.AbstractProtocol init INFO: Initializing
> ProtocolHandler ["ajp-bio-8009"] Nov 26, 2013 9:02:10 AM
> org.apache.catalina.startup.Catalina load INFO: Initialization
> processed in 1148 ms Nov 26, 2013 9:02:10 AM
> org.apache.catalina.core.StandardService startInternal INFO: Starting
> service Catalina Nov 26, 2013 9:02:10 AM
> org.apache.catalina.core.StandardEngine startInternal INFO: Starting
> Servlet Engine: Apache Tomcat/7.0.26 ... Nov 26, 2013 9:02:25 AM
> org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web
> application archive
> /ingress/www/firstfx.ro/docs/test#ContactForm#contactpageTest2.war Nov
> 26, 2013 9:02:25 AM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive
> /ingress/www/firstfx.ro/docs/maria1_store.war Nov 26, 2013 9:02:25 AM
> org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web
> application archive /ingress/www/firstfx.ro/docs/test#newaccount.war
> Nov 26, 2013 9:02:26 AM org.apache.catalina.startup.HostConfig
> deployWAR INFO: Deploying web application archive
> /ingress/www/firstfx.ro/docs/test#ContactForm.war Nov 26, 2013 9:02:26
> AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying
> web application archive
> /ingress/www/firstfx.ro/docs/test#ImageViewer.war Nov 26, 2013 9:02:26
> AM org.apache.catalina.startup.HostConfig deployDirectory INFO:
> Deploying web application directory
> /ingress/www/firstfx.ro/docs/workdesk Nov 26, 2013 9:02:26 AM
> org.apache.catalina.startup.SetContextPropertiesRule begin WARNING:
> [SetContextPropertiesRule]{Context} Setting property 'debug' to '100'
> did not find a matching property. Nov 26, 2013 9:02:28 AM
> org.apache.catalina.core.NamingContextListener addResource WARNING:
> Failed to register in JMX: javax.naming.NamingException: Could not
> load resource factory class [Root exception is
> java.lang.ClassNotFoundException:
> org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory] Nov 26, 2013
> 9:02:28 AM org.apache.catalina.startup.HostConfig deployWAR
当我启动 tomcat 时日志文件中没有错误,但是它实际上可以正常工作,为什么却显示[失败]?
答案1
该故障是由于未能在 JMX 中注册资源而导致的。这并不是致命的。这仅意味着在查看可用 MBean(例如通过 JConsole)时将看不到该资源。Tomcat 不会通过 JMX 访问资源,因此即使资源未在 JMX 中注册,对 Tomcat(或应用程序)来说也无关紧要。