整合SSH后,TOMCAT启动不了,控制台也没报错,用的eclipse

weixin_39305744 2018-03-02 10:04:10
三月 02, 2018 9:51:48 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:sshcrm' did not find a matching property.
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/8.5.27
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Jan 18 2018 20:12:40 UTC
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 8.5.27.0
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 10
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 10.0
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: amd64
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: D:\JDK\install2
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.8.0_161-b12
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: D:\TomCat
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: D:\TomCat
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\TomCat
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\TomCat
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\TomCat\wtpwebapps
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\TomCat\endorsed
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
三月 02, 2018 9:51:48 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [D:\JDK\install2\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:/JDK/install2/bin/server;D:/JDK/install2/bin;D:/JDK/install2/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\JDK\install\bin;C:\Program Files\MySQL\MySQL Server 5.7;C:\Users\mawen\AppData\Local\Microsoft\WindowsApps;;C:\Users\mawen\Desktop;;.]
三月 02, 2018 9:51:48 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8080"]
三月 02, 2018 9:51:48 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
三月 02, 2018 9:51:48 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-nio-8009"]
三月 02, 2018 9:51:48 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
三月 02, 2018 9:51:48 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 638 ms
三月 02, 2018 9:51:48 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Catalina]
三月 02, 2018 9:51:48 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.5.27
三月 02, 2018 9:51:52 下午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
三月 02, 2018 9:51:52 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
三月 02, 2018 9:51:52 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
就这样一直卡着,过大概30秒弹框说不能启动服务器
...全文
794 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
且听师说 2018-03-05
  • 打赏
  • 举报
回复
首先检查下你的数据库能不能连接上,可能是数据库长时间无回复导致服务器等待时间过长超时了。如果数据库没问题就将spring中需要加载的配置进行缩减,像是log4j之类的都去掉先
老王就是我 2018-03-05
  • 打赏
  • 举报
回复
是不是tomcat的问题?重新下一个?或者换另一个版本?
csdn越来越坑 2018-03-05
  • 打赏
  • 举报
回复
把tomcat启动时间设长点试试,默认是45s。
licip 2018-03-05
  • 打赏
  • 举报
回复
tomcat服务器有默认设置启动的时长,45s,如果45s没有启动起来,那就会报错。如果你系统中,创建的东西确实比较多,会超过45s,那你去tomcat的设置,把启动时长调长一些。
weixin_40066981 2018-03-04
  • 打赏
  • 举报
回复
你这个是tomcat的启动时间过长了,没起来,你可以设置一下tomcat的启动时间,或者每次启动之前都先clean一下
weixin_39305744 2018-03-02
  • 打赏
  • 举报
回复
求大神帮帮忙 找了一天的方法没弄出来
weixin_39305744 2018-03-02
  • 打赏
  • 举报
回复
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
原本是报这个错误的,按照百度的加了个log4j2.xml变成了上面那样子,服务器还是启动不了
weixin_39305744 2018-03-02
  • 打赏
  • 举报
回复
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd "> <context:property-placeholder location="classpath:db.properties"/> <bean name="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"> <property name="driverClass" value="${jdbc.driverClass}"></property> <property name="jdbcUrl" value="${jdbc.jdbcUrl}"></property> <property name="user" value="${jdbc.user}"></property> <property name="password" value="${jdbc.password}"></property> </bean> <!-- ======================================================================================= --> <bean name="transactionManager" class="org.springframework.orm.hibernate5.HibernateTransactionManager"> <property name="sessionFactory" ref="sessionFactory"></property> </bean> <tx:advice id="txadvice" transaction-manager="transactionManager"> <tx:attributes > <tx:method name="save*" isolation="REPEATABLE_READ" propagation="REQUIRED" read-only="false"/> <tx:method name="update*" isolation="REPEATABLE_READ" propagation="REQUIRED" read-only="false"/> <tx:method name="delete*" isolation="REPEATABLE_READ" propagation="REQUIRED" read-only="false"/> <tx:method name="get*" isolation="REPEATABLE_READ" propagation="REQUIRED" read-only="false"/> </tx:attributes> </tx:advice> <aop:config> <aop:pointcut expression="execution(* com.mawen.service.impl.*serviceimpl.*(..))" id="txpc"/> <aop:advisor advice-ref="txadvice" pointcut-ref="txpc"/> </aop:config> <!-- ======================================================================================= --> <bean name="sessionFactory" class="org.springframework.orm.hibernate5.LocalSessionFactoryBean"> <property name="dataSource" ref="dataSource"></property> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop> <prop key="hibernate.show_sql">true</prop> <prop key="hibernate.format_sql">true</prop> <prop key="hibernate.hbm2ddl.auto">update</prop> </props> </property> <property name="mappingDirectoryLocations" value="classpath:com/mawen/domain"></property> </bean> <bean name="userAction" class="com.mawen.action.UserAction" scope="prototype"></bean> </beans> 这个是我的applicationContext.xml

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧