eclipse tomcat 项目发布出现问题
2013 15:59:13 INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started2013 15:59:13 INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Wed Apr 03 15:59:13 CST 2013]; root of context hierarchy
2013 15:59:13 INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring/ApplicationContext.xml]
2013 15:59:14 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@104d3c8: defining beans [multipartResolver,dataSource,adPictureController,cityIntroController,loginController,mapControlController,menuController,operationLogController,roleController,secCodeController,settingController,subjectController,userController,vaneController,adRightsHandlerInterceptor,rightsHandlerInterceptor,cateServiceImpl,cityIntroServiceImpl,menuServiceImpl,pictureImpl,poibaseinfoServiceImpl,roleServiceImpl,sdhotelServiceImpl,sdleisureServiceImpl,sdvaneServiceImpl,subjectServiceImpl,tbOperationLogServiceImpl,tbPageServiceImpl,tdtcityServiceImpl,tdttypeServiceImpl,themeClassicicationServiceImpl,themeDetailsServiceImpl,themeManagerImpl,touristattractionsServiceImpl,userPraiseFlagServiceImpl,userServiceImpl,vaneServiceImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,sqlSessionFactory,sqlSession,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManager,cateMapper,cityIntroMapper,menuMapper,pictureMapper,poibaseinfoMapper,roleMapper,sdattractionsMapper,sdhotelMapper,sdleisureMapper,sdvaneMapper,subjectMapper,tbOperationLogMapper,tbPageMapper,tdtcityMapper,tdttypeMapper,themeClassificationMapper,themeDetailsMapper,themeManagerMapper,userMapper,userPraiseFlagMapper,vaneMapper]; root of factory hierarchy
2013 15:59:14 INFO org.springframework.jdbc.datasource.DriverManagerDataSource - Loaded JDBC driver: com.mysql.jdbc.Driver
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2013 15:59:47 WARN org.apache.axis.utils.JavaUtils - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
2013 15:59:55 INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 42188 ms
--------------------编程问答-------------------- 希望大侠们能帮助一下 --------------------编程问答-------------------- 看不出来额,连接超时了,顶一下 --------------------编程问答-------------------- Failed to load class "org.slf4j.impl.StaticLoggerBinder".应该是hibernate的配置时候出了问题,缺少slf4j-nop.jar --------------------编程问答-------------------- 我们项目没用hibernate!!! --------------------编程问答-------------------- 把启动时间改长点。 --------------------编程问答-------------------- workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。
<servers>
<server auto-publish-setting="2" auto-publish-time="1" configuration-id="/Servers/Tomcat v6.0 Server at localhost-config" deployDir="wtpwebapps" hostname="localhost" id="Tomcat v6.0 Server at localhost" name="Tomcat v6.0 Server at localhost" runtime-id="Apache Tomcat v6.0" server-type="org.eclipse.jst.server.tomcat.60" server-type-id="org.eclipse.jst.server.tomcat.60" start-timeout="45" stop-timeout="15" testEnvironment="true" timestamp="3"/>
</servers>
start-timeout="45" 改为 start-timeout="100" 或者更长,重启eclipse就可以了。 --------------------编程问答-------------------- http://blog.csdn.net/lujinan858/article/details/4391350
--------------------编程问答-------------------- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
tomcat webapps下面没有其他项目,删掉后试试
补充:Java , Web 开发