idea创建maven项目报错!!!!!

本文记录了一次使用IntelliJ IDEA部署SSM框架项目到Tomcat 7.0.78过程中遇到的问题,详细分析了由于spring.xml配置文件中beans元素与DOCTYPE声明不匹配导致的启动失败,并附带了完整的错误日志。
摘要由CSDN通过智能技术生成

F:\FeiQ\apache-tomcat-7.0.78\bin\catalina.bat run
[2018-12-03 10:11:37,772] Artifact SSMDemo:war exploded: Waiting for server connection to start artifact deployment…
Using CATALINA_BASE: “C:\Users\K.IntelliJIdea2018.3\system\tomcat\Unnamed_SSMDemo”
Using CATALINA_HOME: “F:\FeiQ\apache-tomcat-7.0.78”
Using CATALINA_TMPDIR: “F:\FeiQ\apache-tomcat-7.0.78\temp”
Using JRE_HOME: “C:\Program Files\Java\jdk1.8.0_181\jre”
Using CLASSPATH: “F:\FeiQ\apache-tomcat-7.0.78\bin\bootstrap.jar;F:\FeiQ\apache-tomcat-7.0.78\bin\tomcat-juli.jar”
2018-12-03 22:11:40 JRebel: Starting logging to file: C:\Users\K.jrebel\jrebel.log
2018-12-03 22:11:40 JRebel:
2018-12-03 22:11:40 JRebel: #############################################################
2018-12-03 22:11:40 JRebel:
2018-12-03 22:11:40 JRebel: JRebel Agent 2018.2.3 (201811261141)
2018-12-03 22:11:40 JRebel: © Copyright ZeroTurnaround AS, Estonia, Tartu.
2018-12-03 22:11:40 JRebel:
2018-12-03 22:11:40 JRebel: Over the last 1 days JRebel prevented
2018-12-03 22:11:40 JRebel: at least 0 redeploys/restarts saving you about 0 hours.
2018-12-03 22:11:40 JRebel:
2018-12-03 22:11:40 JRebel: License acquired from License Server: http://139.199.89.239:1008
2018-12-03 22:11:40 JRebel:
2018-12-03 22:11:40 JRebel: Licensed to K.
2018-12-03 22:11:40 JRebel:
2018-12-03 22:11:40 JRebel:
2018-12-03 22:11:40 JRebel: #############################################################
2018-12-03 22:11:40 JRebel:
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/7.0.78
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: May 10 2017 15:02:19 UTC
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 7.0.78.0
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 10
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 10.0
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: amd64
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: C:\Program Files\Java\jdk1.8.0_181\jre
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.8.0_181-b13
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: C:\Users\K.IntelliJIdea2018.3\system\tomcat\Unnamed_SSMDemo
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: F:\FeiQ\apache-tomcat-7.0.78
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.config.file=C:\Users\K.IntelliJIdea2018.3\system\tomcat\Unnamed_SSMDemo\conf\logging.properties
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Drebel.base=C:\Users\K.jrebel
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Drebel.env.ide.plugin.version=2018.2.3
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Drebel.env.ide.version=2018.3
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Drebel.env.ide.product=IU
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Drebel.env.ide=intellij
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Drebel.notification.url=http://localhost:7714
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -agentpath:C:\Users\K.IntelliJIdea2018.3\config\plugins\jr-ide-idea\lib\jrebel6\lib\jrebel64.dll
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote=
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.port=1099
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.ssl=false
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.rmi.server.hostname=127.0.0.1
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=F:\FeiQ\apache-tomcat-7.0.78\endorsed
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=C:\Users\K.IntelliJIdea2018.3\system\tomcat\Unnamed_SSMDemo
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=F:\FeiQ\apache-tomcat-7.0.78
十二月 03, 2018 10:11:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.io.tmpdir=F:\FeiQ\apache-tomcat-7.0.78\temp
十二月 03, 2018 10:11:41 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: Loaded APR based Apache Tomcat Native library 1.2.12 using APR version 1.5.2.
十二月 03, 2018 10:11:41 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
十二月 03, 2018 10:11:42 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.2k 26 Jan 2017)
十二月 03, 2018 10:11:42 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler [“http-apr-8080”]
十二月 03, 2018 10:11:42 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler [“ajp-apr-8009”]
十二月 03, 2018 10:11:42 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1769 ms
十二月 03, 2018 10:11:43 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
十二月 03, 2018 10:11:43 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.78
十二月 03, 2018 10:11:43 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [“http-apr-8080”]
十二月 03, 2018 10:11:43 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [“ajp-apr-8009”]
十二月 03, 2018 10:11:43 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 172 ms
Connected to server
[2018-12-03 10:11:43,165] Artifact SSMDemo:war exploded: Artifact is being deployed, please wait…
十二月 03, 2018 10:11:45 下午 org.apache.catalina.startup.TldConfig execute
信息: 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.
十二月 03, 2018 10:11:45 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
信息: Root WebApplicationContext: initialization started
十二月 03, 2018 10:11:46 下午 org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
信息: Refreshing Root WebApplicationContext: startup date [Mon Dec 03 22:11:46 CST 2018]; root of context hierarchy
2018-12-03 22:11:46 JRebel: Monitoring Spring bean definitions in ‘E:\IDEA\SSMDemo\target\SSMDemo\WEB-INF\classes\spring.xml’.
十二月 03, 2018 10:11:46 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [spring.xml]
十二月 03, 2018 10:11:46 下午 org.springframework.context.support.PropertySourcesPlaceholderConfigurer loadProperties
信息: Loading properties file from class path resource [sql.properties]
2018-12-03 22:11:46 JRebel: Monitoring properties in ‘file:/E:/IDEA/SSMDemo/target/SSMDemo/WEB-INF/classes/sql.properties’.
十二月 03, 2018 10:11:46 下午 com.mchange.v2.log.MLog
信息: MLog clients using java 1.4+ standard logging.
十二月 03, 2018 10:11:46 下午 com.mchange.v2.c3p0.C3P0Registry banner
信息: Initializing c3p0-0.9.1 [built 16-January-2007 14:46:42; debug? true; trace: 10]
十二月 03, 2018 10:11:47 下午 org.springframework.web.context.support.XmlWebApplicationContext __refresh
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.mybatis.spring.SqlSessionFactoryBean#0’ defined in class path resource [spring.xml]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 134; 文档根元素 “beans” 必须匹配 DOCTYPE 根 “null”。
十二月 03, 2018 10:11:47 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.mybatis.spring.SqlSessionFactoryBean#0’ defined in class path resource [spring.xml]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 134; 文档根元素 “beans” 必须匹配 DOCTYPE 根 “null”。
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
at org.springframework.context.support.AbstractApplicationContext.__refresh(AbstractApplicationContext.java:542)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:41010)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1863)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45009)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45012)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:618)
at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:565)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45009)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45012)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
at javax.management.remote.rmi.RMIConnectionImpl.access 300 ( R M I C o n n e c t i o n I m p l . j a v a : 76 ) a t j a v a x . m a n a g e m e n t . r e m o t e . r m i . R M I C o n n e c t i o n I m p l 300(RMIConnectionImpl.java:76) at javax.management.remote.rmi.RMIConnectionImpl 300(RMIConnectionImpl.java:76)atjavax.management.remote.rmi.RMIConnectionImplPrivilegedOperation.run(RMIConnectionImpl.java:1309)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45009)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45012)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport 1. r u n ( T r a n s p o r t . j a v a : 197 ) a t j a v a . s e c u r i t y . A c c e s s C o n t r o l l e r . d o P r i v i l e g e d ( N a t i v e M e t h o d ) a t s u n . r m i . t r a n s p o r t . T r a n s p o r t . s e r v i c e C a l l ( T r a n s p o r t . j a v a : 196 ) a t s u n . r m i . t r a n s p o r t . t c p . T C P T r a n s p o r t . h a n d l e M e s s a g e s ( T C P T r a n s p o r t . j a v a : 573 ) a t s u n . r m i . t r a n s p o r t . t c p . T C P T r a n s p o r t 1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:196) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573) at sun.rmi.transport.tcp.TCPTransport 1.run(Transport.java:197)atjava.security.AccessController.doPrivileged(NativeMethod)atsun.rmi.transport.Transport.serviceCall(Transport.java:196)atsun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)atsun.rmi.transport.tcp.TCPTransportConnectionHandler.run0(TCPTransport.java:834)
at sun.rmi.transport.tcp.TCPTransport C o n n e c t i o n H a n d l e r . l a m b d a ConnectionHandler.lambda ConnectionHandler.lambdarun 0 ( T C P T r a n s p o r t . j a v a : 688 ) a t j a v a . s e c u r i t y . A c c e s s C o n t r o l l e r . d o P r i v i l e g e d ( N a t i v e M e t h o d ) a t s u n . r m i . t r a n s p o r t . t c p . T C P T r a n s p o r t 0(TCPTransport.java:688) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport 0(TCPTransport.java:688)atjava.security.AccessController.doPrivileged(NativeMethod)atsun.rmi.transport.tcp.TCPTransportConnectionHandler.run(TCPTransport.java:687)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor W o r k e r . r u n ( T h r e a d P o o l E x e c u t o r . j a v a : 624 ) a t j a v a . l a n g . T h r e a d . r u n ( T h r e a d . j a v a : 748 ) C a u s e d b y : o r g . a p a c h e . i b a t i s . b u i l d e r . B u i l d e r E x c e p t i o n : E r r o r c r e a t i n g d o c u m e n t i n s t a n c e . C a u s e : o r g . x m l . s a x . S A X P a r s e E x c e p t i o n ; l i n e N u m b e r : 4 ; c o l u m n N u m b e r : 134 ; 文 档 根 元 素 &quot; b e a n s &quot; 必 须 匹 配 D O C T Y P E 根 &quot; n u l l &quot; 。 a t o r g . a p a c h e . i b a t i s . p a r s i n g . X P a t h P a r s e r . c r e a t e D o c u m e n t ( X P a t h P a r s e r . j a v a : 259 ) a t o r g . a p a c h e . i b a t i s . p a r s i n g . X P a t h P a r s e r . &lt; i n i t &gt; ( X P a t h P a r s e r . j a v a : 125 ) a t o r g . a p a c h e . i b a t i s . b u i l d e r . x m l . X M L C o n f i g B u i l d e r . &lt; i n i t &gt; ( X M L C o n f i g B u i l d e r . j a v a : 81 ) a t o r g . m y b a t i s . s p r i n g . S q l S e s s i o n F a c t o r y B e a n . b u i l d S q l S e s s i o n F a c t o r y ( S q l S e s s i o n F a c t o r y B e a n . j a v a : 406 ) a t o r g . m y b a t i s . s p r i n g . S q l S e s s i o n F a c t o r y B e a n . a f t e r P r o p e r t i e s S e t ( S q l S e s s i o n F a c t o r y B e a n . j a v a : 380 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . i n v o k e I n i t M e t h o d s ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 1687 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . i n i t i a l i z e B e a n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 1624 ) . . . 64 m o r e C a u s e d b y : o r g . x m l . s a x . S A X P a r s e E x c e p t i o n ; l i n e N u m b e r : 4 ; c o l u m n N u m b e r : 134 ; 文 档 根 元 素 &quot; b e a n s &quot; 必 须 匹 配 D O C T Y P E 根 &quot; n u l l &quot; 。 a t c o m . s u n . o r g . a p a c h e . x e r c e s . i n t e r n a l . u t i l . E r r o r H a n d l e r W r a p p e r . c r e a t e S A X P a r s e E x c e p t i o n ( E r r o r H a n d l e r W r a p p e r . j a v a : 203 ) a t c o m . s u n . o r g . a p a c h e . x e r c e s . i n t e r n a l . u t i l . E r r o r H a n d l e r W r a p p e r . e r r o r ( E r r o r H a n d l e r W r a p p e r . j a v a : 134 ) a t c o m . s u n . o r g . a p a c h e . x e r c e s . i n t e r n a l . i m p l . X M L E r r o r R e p o r t e r . r e p o r t E r r o r ( X M L E r r o r R e p o r t e r . j a v a : 396 ) a t c o m . s u n . o r g . a p a c h e . x e r c e s . i n t e r n a l . i m p l . X M L E r r o r R e p o r t e r . r e p o r t E r r o r ( X M L E r r o r R e p o r t e r . j a v a : 327 ) a t c o m . s u n . o r g . a p a c h e . x e r c e s . i n t e r n a l . i m p l . X M L E r r o r R e p o r t e r . r e p o r t E r r o r ( X M L E r r o r R e p o r t e r . j a v a : 284 ) a t c o m . s u n . o r g . a p a c h e . x e r c e s . i n t e r n a l . i m p l . d t d . X M L D T D V a l i d a t o r . r o o t E l e m e n t S p e c i f i e d ( X M L D T D V a l i d a t o r . j a v a : 1599 ) a t c o m . s u n . o r g . a p a c h e . x e r c e s . i n t e r n a l . i m p l . d t d . X M L D T D V a l i d a t o r . h a n d l e S t a r t E l e m e n t ( X M L D T D V a l i d a t o r . j a v a : 1877 ) a t c o m . s u n . o r g . a p a c h e . x e r c e s . i n t e r n a l . i m p l . d t d . X M L D T D V a l i d a t o r . s t a r t E l e m e n t ( X M L D T D V a l i d a t o r . j a v a : 742 ) a t c o m . s u n . o r g . a p a c h e . x e r c e s . i n t e r n a l . i m p l . X M L D o c u m e n t F r a g m e n t S c a n n e r I m p l . s c a n S t a r t E l e m e n t ( X M L D o c u m e n t F r a g m e n t S c a n n e r I m p l . j a v a : 1359 ) a t c o m . s u n . o r g . a p a c h e . x e r c e s . i n t e r n a l . i m p l . X M L D o c u m e n t S c a n n e r I m p l Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 134; 文档根元素 &quot;beans&quot; 必须匹配 DOCTYPE 根 &quot;null&quot;。 at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:259) at org.apache.ibatis.parsing.XPathParser.&lt;init&gt;(XPathParser.java:125) at org.apache.ibatis.builder.xml.XMLConfigBuilder.&lt;init&gt;(XMLConfigBuilder.java:81) at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:406) at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:380) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624) ... 64 more Caused by: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 134; 文档根元素 &quot;beans&quot; 必须匹配 DOCTYPE 根 &quot;null&quot;。 at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootElementSpecified(XMLDTDValidator.java:1599) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1877) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:742) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1359) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl Worker.run(ThreadPoolExecutor.java:624)atjava.lang.Thread.run(Thread.java:748)Causedby:org.apache.ibatis.builder.BuilderException:Errorcreatingdocumentinstance.Cause:org.xml.sax.SAXParseException;lineNumber:4;columnNumber:134;"beans"DOCTYPE"null"atorg.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:259)atorg.apache.ibatis.parsing.XPathParser.<init>(XPathParser.java:125)atorg.apache.ibatis.builder.xml.XMLConfigBuilder.<init>(XMLConfigBuilder.java:81)atorg.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:406)atorg.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:380)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)...64moreCausedby:org.xml.sax.SAXParseException;lineNumber:4;columnNumber:134;"beans"DOCTYPE"null"atcom.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)atcom.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)atcom.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)atcom.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)atcom.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284)atcom.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootElementSpecified(XMLDTDValidator.java:1599)atcom.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1877)atcom.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:742)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1359)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImplContentDriver.scanRootElementHook(XMLDocumentScannerImpl.java:1289)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl F r a g m e n t C o n t e n t D r i v e r . n e x t ( X M L D o c u m e n t F r a g m e n t S c a n n e r I m p l . j a v a : 3132 ) a t c o m . s u n . o r g . a p a c h e . x e r c e s . i n t e r n a l . i m p l . X M L D o c u m e n t S c a n n e r I m p l FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3132) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3132)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImplPrologDriver.next(XMLDocumentScannerImpl.java:852)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:257)
… 70 more

十二月 03, 2018 10:11:47 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
十二月 03, 2018 10:11:47 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/SSMDemo_war_exploded] startup failed due to previous errors
[2018-12-03 10:11:47,370] Artifact SSMDemo:war exploded: Error during artifact deployment. See server log for details.
十二月 03, 2018 10:11:53 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\FeiQ\apache-tomcat-7.0.78\webapps\manager
十二月 03, 2018 10:11:53 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory F:\FeiQ\apache-tomcat-7.0.78\webapps\manager has finished in 141 ms

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值