springmvc+spring+mybatis整个启动tomcat报错

博客内容记录了在启动Tomcat时遇到的错误,涉及SpringMVC、Spring和Mybatis的整合。错误信息显示在解析XML配置文件时出现了问题,具体为在Springmvc.xml的第16行,元素'mvc:annotation-driven'的声明未找到。解决方案是检查并确保正确配置了该元素。
摘要由CSDN通过智能技术生成

/Users/yp-tc-m-2935/Downloads/apache-tomcat-8.0.26/bin/catalina.sh run

[2018-04-12 09:53:50,895] Artifact ssm:war exploded: Server is not connected. Deploy is not available.

Connected to the target VM, address: '127.0.0.1:62228', transport: 'socket'

12-Apr-2018 09:53:53.893 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.0.26

12-Apr-2018 09:53:53.898 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Aug 18 2015 11:38:37 UTC

12-Apr-2018 09:53:53.898 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.0.26.0

12-Apr-2018 09:53:53.899 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Mac OS X

12-Apr-2018 09:53:53.899 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.10.4

12-Apr-2018 09:53:53.899 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          x86_64

12-Apr-2018 09:53:53.899 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre

12-Apr-2018 09:53:53.904 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_74-b02

12-Apr-2018 09:53:53.905 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation

12-Apr-2018 09:53:53.905 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /Users/yp-tc-m-2935/Library/Caches/IntelliJIdea15/tomcat/Unnamed_ssm_3

12-Apr-2018 09:53:53.905 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /Users/yp-tc-m-2935/Downloads/apache-tomcat-8.0.26

12-Apr-2018 09:53:53.906 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/Users/yp-tc-m-2935/Library/Caches/IntelliJIdea15/tomcat/Unnamed_ssm_3/conf/logging.properties

12-Apr-2018 09:53:53.907 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

12-Apr-2018 09:53:53.908 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:62228,suspend=y,server=n

12-Apr-2018 09:53:53.908 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=

12-Apr-2018 09:53:53.909 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099

12-Apr-2018 09:53:53.910 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false

12-Apr-2018 09:53:53.910 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false

12-Apr-2018 09:53:53.911 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1

12-Apr-2018 09:53:53.912 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=/Users/yp-tc-m-2935/Downloads/apache-tomcat-8.0.26/endorsed

12-Apr-2018 09:53:53.913 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/Users/yp-tc-m-2935/Library/Caches/IntelliJIdea15/tomcat/Unnamed_ssm_3

12-Apr-2018 09:53:53.913 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/Users/yp-tc-m-2935/Downloads/apache-tomcat-8.0.26

12-Apr-2018 09:53:53.915 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/Users/yp-tc-m-2935/Downloads/apache-tomcat-8.0.26/temp

12-Apr-2018 09:53:53.915 INFO [main] 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: /Users/yp-tc-m-2935/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.

12-Apr-2018 09:53:54.500 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]

12-Apr-2018 09:53:54.573 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read

12-Apr-2018 09:53:54.585 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]

12-Apr-2018 09:53:54.587 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read

12-Apr-2018 09:53:54.587 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 2256 ms

12-Apr-2018 09:53:54.671 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina

12-Apr-2018 09:53:54.672 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.26

12-Apr-2018 09:53:54.692 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]

12-Apr-2018 09:53:54.712 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]

12-Apr-2018 09:53:54.718 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 130 ms

Connected to server

[2018-04-12 09:53:54,906] Artifact ssm:war exploded: Artifact is being deployed, please wait...

12-Apr-2018 09:53:59.712 INFO [RMI TCP Connection(2)-127.0.0.1] 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.

12-Apr-2018 09:53:59.834 INFO [RMI TCP Connection(2)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Root WebApplicationContext: initialization started

12-Apr-2018 09:53:59.938 INFO [RMI TCP Connection(2)-127.0.0.1] org.springframework.context.support.AbstractApplicationContext.prepareRefresh Refreshing Root WebApplicationContext: startup date [Thu Apr 12 09:53:59 CST 2018]; root of context hierarchy

12-Apr-2018 09:54:00.133 INFO [RMI TCP Connection(2)-127.0.0.1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from class path resource [config/spring/ApplicationContext-Service.xml]

12-Apr-2018 09:54:00.727 INFO [RMI TCP Connection(2)-127.0.0.1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from class path resource [config/spring/beans.xml]

12-Apr-2018 09:54:00.823 INFO [RMI TCP Connection(2)-127.0.0.1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from class path resource [config/spring/ApplicationContext-transactionManager.xml]

12-Apr-2018 09:54:00.869 INFO [RMI TCP Connection(2)-127.0.0.1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from class path resource [config/spring/beans.xml]

12-Apr-2018 09:54:01.909 WARNING [RMI TCP Connection(2)-127.0.0.1] org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner.checkCandidate Skipping MapperFactoryBean with name 'itermsMapperCustom' and 'dao.ItermsMapperCustom' mapperInterface. Bean already defined with the same name!

12-Apr-2018 09:54:01.910 WARNING [RMI TCP Connection(2)-127.0.0.1] org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner.doScan No MyBatis mapper was found in 'dao' package. Please check your configuration.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值