MyEclipse安装tomcat遇到的问题
011-11-8 22:40:08 org.apache.catalina.core.AprLifecycleListener init
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;D:\Program Files\apache-tomcat-6.0.14\apache-tomcat-6.0.14\bin
2011-11-8 22:40:08 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2011-11-8 22:40:08 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 644 ms
2011-11-8 22:40:08 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2011-11-8 22:40:08 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.14
2011-11-8 22:40:09 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2011-11-8 22:40:09 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2011-11-8 22:40:09 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\Program Files\apache-tomcat-6.0.14\apache-tomcat-6.0.14\webapps\UestcMobile\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2011-11-8 22:40:10 org.apache.catalina.core.ApplicationContext log
信息: Set web app root system property: 'PersonalInfoSystem' = [D:\Program Files\apache-tomcat-6.0.14\apache-tomcat-6.0.14\webapps\UestcMobile\]
2011-11-8 22:40:10 org.apache.catalina.core.ApplicationContext log
信息: Initializing log4j from [D:\Program Files\apache-tomcat-6.0.14\apache-tomcat-6.0.14\webapps\UestcMobile\WEB-INF\log4j.xml]
2011-11-8 22:40:10 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
[08 22:40:10,703 INFO ] [main] context.ContextLoader - Root WebApplicationContext: initialization started
[08 22:40:10,828 INFO ] [main] support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@e34726: display name [Root WebApplicationContext]; startup date [Tue Nov 08 22:40:10 CST 2011]; root of context hierarchy
[08 22:40:11,031 INFO ] [main] xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [D:\Program Files\apache-tomcat-6.0.14\apache-tomcat-6.0.14\webapps\UestcMobile\WEB-INF\classes\spring-action-background.xml]
[08 22:40:11,203 INFO ] [main] xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [D:\Program Files\apache-tomcat-6.0.14\apache-tomcat-6.0.14\webapps\UestcMobile\WEB-INF\classes\spring-action.xml]
[08 22:40:11,250 INFO ] [main] xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [D:\Program Files\apache-tomcat-6.0.14\apache-tomcat-6.0.14\webapps\UestcMobile\WEB-INF\classes\spring-dao-jdbc.xml]
[08 22:40:11,281 INFO ] [main] xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [D:\Program Files\apache-tomcat-6.0.14\apache-tomcat-6.0.14\webapps\UestcMobile\WEB-INF\classes\spring-dao.xml]
[08 22:40:11,312 INFO ] [main] xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [D:\Program Files\apache-tomcat-6.0.14\apache-tomcat-6.0.14\webapps\UestcMobile\WEB-INF\classes\spring-datasource.xml]
[08 22:40:11,421 INFO ] [main] xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [D:\Program Files\apache-tomcat-6.0.14\apache-tomcat-6.0.14\webapps\UestcMobile\WEB-INF\classes\spring-hibernate.xml]
[08 22:40:11,453 INFO ] [main] xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [D:\Program Files\apache-tomcat-6.0.14\apache-tomcat-6.0.14\webapps\UestcMobile\WEB-INF\classes\spring-service-baseinfo.xml]
[08 22:40:11,546 INFO ] [main] xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [D:\Program Files\apache-tomcat-6.0.14\apache-tomcat-6.0.14\webapps\UestcMobile\WEB-INF\classes\spring-service.xml]
[08 22:40:11,796 INFO ] [main] support.XmlWebApplicationContext - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@e34726]: org.springframework.beans.factory.support.DefaultListableBeanFactory@aea710
[08 22:40:12,390 INFO ] [main] config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [jdbc.properties]
[08 22:40:12,406 INFO ] [main] config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [jdbc.properties]
[08 22:40:12,500 INFO ] [main] support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@aea710: defining beans [indexAction,busAction,contactAction,newsAction,userAction,noticeAction,ssoAction,studentAction,busInfoAction,yellowPageAction,scheduleAction,bookInfoAction,newsInfoAction,dbHelper,jdbcTemplate,studentInfoDao,tacheDao,tacheStatusDao,noticeDao,busInfoDao,yellowPageDao,userDao,undergraduateScheduleDao,graduateScheduleDao,bookInfoDao,newsInfoDao,baseDAO,studentDao,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#1,sessionFactory,studentService,tacheService,tacheStatusService,noticeService,busInfoService,yellowPageService,userService,undergraduateScheduleService,graduateScheduleService,bookInfoService,newsInfoService,transactionManager,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,serviceMethod,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0]; root of factory hierarchy
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/Program%20Files/apache-tomcat-6.0.14/apache-tomcat-6.0.14/webapps/UestcMobile/WEB-INF/lib/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/Program%20Files/apache-tomcat-6.0.14/apache-tomcat-6.0.14/webapps/UestcMobile/WEB-INF/lib/slf4j-simple-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
[08 22:40:13,781 INFO ] [main] annotations.Version - Hibernate Annotations 3.4.0.GA
[08 22:40:13,828 INFO ] [main] cfg.Environment - Hibernate 3.3.1.GA
[08 22:40:13,828 INFO ] [main] cfg.Environment - hibernate.properties not found
[08 22:40:13,843 INFO ] [main] cfg.Environment - Bytecode provider name : javassist
[08 22:40:13,859 INFO ] [main] cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
[08 22:40:14,109 INFO ] [main] common.Version - Hibernate Commons Annotations 3.1.0.GA
[08 22:40:14,562 INFO ] [main] cfg.HbmBinder - Mapping class: um.entity.Student -> t_welcome_student
[08 22:40:14,640 INFO ] [main] cfg.AnnotationConfiguration - Hibernate Validator not found: ignoring
[08 22:40:14,640 INFO ] [main] annotation.AnnotationSessionFactoryBean - Building new Hibernate SessionFactory
[08 22:40:14,656 INFO ] [main] search.HibernateSearchEventListenerRegister - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
[08 22:40:14,859 INFO ] [main] connection.ConnectionProviderFactory - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
[08 22:40:36,656 WARN ] [main] util.JDBCExceptionReporter - SQL Error: 0, SQLState: null
[08 22:40:36,656 WARN ] [main] cfg.SettingsFactory - Could not obtain connection metadata
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure
[解决办法]
好长的错误报告...你tomcat的jdk是哪个版本的,不会是跟myEclipse冲突了吧,别的也看不出啥了
[解决办法]
环境变量配下 slf4j-log4j12.jar看这个包少不 mysql驱动包夜看下
------解决方案--------------------
最上面那个提示,可能是数据源配置有问题!
[解决办法]
在系统环境变量中添加了tomcat的安装信息了么?
JAVA_HOME:值为JDK的安装目录(bin目录的上一层目录),D:\......\jdk1.6.0
CATALINA_HOME:值为Tomcat的安装目录
[解决办法]
因该是环境变量的问题。你用安装版的 tomcat.这样就不要配置环境变量了,省了很多麻烦。强烈建议安装版本的。
[解决办法]
直接下个绿色版的tomcat导入试一下