3349 [localhost-startStop-1] INFO org.hibernate.cfg.SettingsFactory - Named query checking : enabled
3349 [localhost-startStop-1] INFO org.hibernate.cfg.SettingsFactory - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
4049 [localhost-startStop-1] INFO org.quartz.core.QuartzScheduler - Scheduler scheduler_$_NON_CLUSTERED shutting down.
4049 [localhost-startStop-1] INFO org.quartz.core.QuartzScheduler - Scheduler scheduler_$_NON_CLUSTERED paused.
4053 [localhost-startStop-1] INFO org.quartz.core.QuartzScheduler - Scheduler scheduler_$_NON_CLUSTERED shutdown complete.
Mar 02, 2016 4:01:45 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Mar 02, 2016 4:01:45 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/heximobile] startup failed due to previous errors
Mar 02, 2016 4:01:45 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
SEVERE: The web application [/heximobile] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Mar 02, 2016 4:01:45 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
SEVERE: The web application [/heximobile] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.
Mar 02, 2016 4:01:45 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
SEVERE: The web application [/heximobile] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak.
Mar 02, 2016 4:01:45 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/apache-tomcat-7.0.67/webapps/heximobile has finished in 50,024 ms
Mar 02, 2016 4:01:45 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-1303"]
Mar 02, 2016 4:01:45 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Mar 02, 2016 4:01:45 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 50731 ms
1.web.xml文件,这个文件中定义了很多web服务启动需要的类、xml文件,如果这些找不到就会发生startup failed due to previous errors错误。
2.如果使用spring的话,在applicationContext.xml中定义的类、xml文件找不到也会报这个错误。
3。如果使用ibatis的话,在SqlMapConfig.xml中定义的xml文件找不到也会报这个错误。
总结的经验就是一定要把配置文件中定义的每条信息弄清楚,不要拿来别人的代码就使用,这样就会解决这个问题。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。