W_Zk_1745
过客己
2018-06-13 13:22
采纳率: 80%
浏览 1.3k
已采纳

关于SSH框架。搭建好了测试是404

applicationContext.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:tx="http://www.springframework.org/schema/tx" xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util"

    xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd ">  

<context:property-placeholder location="classpath:jdbc.properties"/>
<bean id="dataSource" class="org.apache.commons.dbcp2.BasicDataSource">
    <property name="driverClassName" value="${jdbc.driverClass}"/>
    <property name="url" value="${jdbc.url}"/>
    <property name="username" value="${jdbc.username}"/>
    <property name="password" value="${jdbc.password}"/>
</bean>

<bean id="sessionFactory" class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">
    <property name="dataSource" ref="dataSource"/>
    <property name="mappingResources">
    <list>
    <value></value>
    </list>
    </property>
    <property name="hibernateProperties">
    <props>
    <prop key="hibernate.dialect">
        org.hibernate.dialect.MySQL5InnoDBDialect
    </prop>
    <prop key="show_sql">true</prop>
    <prop key="hibernate.hbm2ddl.auto">update</prop>
    </props>
    </property>
</bean>

<bean id="transactionManager" class="org.springframework.orm.hibernate5.HibernateTransactionManager">
    <property name="sessionFactory" ref="sessionFactory"/>
</bean>

<bean id="LoginAction" scope="prototype" class="www.LoginAction">
    <property name="message" value="SSH框架你好!"></property>
</bean>

<tx:annotation-driven transaction-manager="transactionManager"/>
</beans>

图片说明

图片说明
ng)图片说明
图片说明
图片说明

不知道是那个配置文件错了。

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

11条回答 默认 最新

  • u013278277
    竹林智者 2018-06-14 06:11
    已采纳

    图片说明

    然后你需要 创建实体类 与 映射文件保持一致

    点赞 评论
  • qq_35832184
    qq_35832184 2018-06-13 13:25

    问题主要由于加载spring的默认配置文件位置一般是在/WEB-INF/下找applicationContext.xml文件。而Myeclipse文件自动生成的applicationContext文件是放在/WEB-INF/classes/applicationContext.xml。所以在默认加载中是找不到applicationContext.xml文件的,必须加入上面配置

    点赞 评论
  • strongwyl
    strongwyl 2018-06-13 13:33

    看看你的目录结构和tomcat控制台的信息截图

    点赞 评论
  • qq_39537939
    看不懂的人 2018-06-13 13:40

    访问路径为:localhost:8080/ssh/login 还是错误的话就需要修改web,xml中ssh

    点赞 评论
  • u013278277
    竹林智者 2018-06-13 16:16

    你需要看下 你的Tomcat log日志 看下到底是那块报的错误 或者直接看下你eclipse 控制台有么有什么错误信息 这样才能定位那块出了问题
    是开始的时候数据库加载出了问题还是什么 现在来说还是无法定位

    点赞 评论
  • W_Zk_1745
    过客己 2018-06-14 00:44

    错误信息:

     六月 14, 2018 8:45:26 上午 org.apache.tomcat.util.digester.Digester endElement
    警告:   No rules found matching 'Server/Service/Content'.
    六月 14, 2018 8:45:27 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin
    警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ssh' did not find a matching property.
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server version:        Apache Tomcat/9.0.6
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server built:          Mar 5 2018 09:34:35 UTC
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Server number:         9.0.6.0
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: OS Name:               Windows 10
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: OS Version:            10.0
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Architecture:          amd64
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Java Home:             C:\Program Files\Java\jre1.8.0_151
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: JVM Version:           1.8.0_151-b12
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: JVM Vendor:            Oracle Corporation
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: CATALINA_BASE:         D:\Tomcat 9\apache-tomcat-9.0.6
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: CATALINA_HOME:         D:\Tomcat 9\apache-tomcat-9.0.6
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dcatalina.base=D:\Tomcat 9\apache-tomcat-9.0.6
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dcatalina.home=D:\Tomcat 9\apache-tomcat-9.0.6
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dwtp.deploy=D:\Tomcat 9\apache-tomcat-9.0.6\wtpwebapps
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Djava.endorsed.dirs=D:\Tomcat 9\apache-tomcat-9.0.6\endorsed
    六月 14, 2018 8:45:27 上午 org.apache.catalina.startup.VersionLoggerListener log
    信息: Command line argument: -Dfile.encoding=GBK
    六月 14, 2018 8:45:27 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    信息: Loaded APR based Apache Tomcat Native library [1.2.16] using APR version [1.6.3].
    六月 14, 2018 8:45:27 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
    六月 14, 2018 8:45:27 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    信息: APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
    六月 14, 2018 8:45:27 上午 org.apache.catalina.core.AprLifecycleListener initializeSSL
    信息: OpenSSL successfully initialized [OpenSSL 1.0.2m  2 Nov 2017]
    六月 14, 2018 8:45:27 上午 org.apache.coyote.AbstractProtocol init
    信息: Initializing ProtocolHandler ["http-nio-8080"]
    六月 14, 2018 8:45:28 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
    信息: Using a shared selector for servlet write/read
    六月 14, 2018 8:45:28 上午 org.apache.coyote.AbstractProtocol init
    信息: Initializing ProtocolHandler ["ajp-nio-8009"]
    六月 14, 2018 8:45:28 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
    信息: Using a shared selector for servlet write/read
    六月 14, 2018 8:45:28 上午 org.apache.catalina.startup.Catalina load
    信息: Initialization processed in 1539 ms
    六月 14, 2018 8:45:28 上午 org.apache.catalina.core.StandardService startInternal
    信息: Starting service [Catalina]
    六月 14, 2018 8:45:28 上午 org.apache.catalina.core.StandardEngine startInternal
    信息: Starting Servlet Engine: Apache Tomcat/9.0.6
    六月 14, 2018 8:45:33 上午 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.
    六月 14, 2018 8:45:33 上午 org.apache.catalina.core.ApplicationContext log
    信息: No Spring WebApplicationInitializer types detected on classpath
    六月 14, 2018 8:45:33 上午 org.apache.catalina.core.ApplicationContext log
    信息: Initializing Spring root WebApplicationContext
    六月 14, 2018 8:45:33 上午 org.springframework.web.context.ContextLoader initWebApplicationContext
    信息: Root WebApplicationContext: initialization started
    六月 14, 2018 8:45:33 上午 org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
    信息: Refreshing Root WebApplicationContext: startup date [Thu Jun 14 08:45:33 CST 2018]; root of context hierarchy
    六月 14, 2018 8:45:33 上午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    信息: Loading XML bean definitions from class path resource [applicationContext.xml]
    ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
    六月 14, 2018 8:45:35 上午 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 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.boot.InvalidMappingException: Could not parse mapping document: null (INPUT_STREAM)
    六月 14, 2018 8:45:35 上午 org.springframework.web.context.ContextLoader initWebApplicationContext
    严重: Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.boot.InvalidMappingException: Could not parse mapping document: null (INPUT_STREAM)
        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:867)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4579)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5041)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
        at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)
    Caused by: org.hibernate.boot.InvalidMappingException: Could not parse mapping document: null (INPUT_STREAM)
        at org.hibernate.boot.jaxb.internal.InputStreamXmlSource.doBind(InputStreamXmlSource.java:46)
        at org.hibernate.boot.jaxb.internal.InputStreamXmlSource.doBind(InputStreamXmlSource.java:38)
        at org.hibernate.boot.spi.XmlMappingBinderAccess.bind(XmlMappingBinderAccess.java:94)
        at org.hibernate.boot.MetadataSources.addInputStream(MetadataSources.java:381)
        at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:475)
        at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:412)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
        ... 42 more
    Caused by: org.hibernate.boot.MappingException: Error accessing stax stream : origin(null)
        at org.hibernate.boot.jaxb.internal.AbstractBinder.seekRootElementStartEvent(AbstractBinder.java:141)
        at org.hibernate.boot.jaxb.internal.AbstractBinder.doBind(AbstractBinder.java:101)
        at org.hibernate.boot.jaxb.internal.AbstractBinder.bind(AbstractBinder.java:57)
        at org.hibernate.boot.jaxb.internal.InputStreamXmlSource.doBind(InputStreamXmlSource.java:43)
        ... 49 more
    Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
    Message: 前言中不允许有内容。
        at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(Unknown Source)
        at com.sun.xml.internal.stream.XMLEventReaderImpl.peek(Unknown Source)
        at javax.xml.stream.util.EventReaderDelegate.peek(Unknown Source)
        at org.hibernate.boot.jaxb.internal.stax.BufferedXMLEventReader.peek(BufferedXMLEventReader.java:96)
        at org.hibernate.boot.jaxb.internal.AbstractBinder.seekRootElementStartEvent(AbstractBinder.java:137)
        ... 52 more
    
    六月 14, 2018 8:45:35 上午 org.apache.catalina.core.StandardContext listenerStart
    严重: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.boot.InvalidMappingException: Could not parse mapping document: null (INPUT_STREAM)
        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:867)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4579)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5041)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
        at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)
    Caused by: org.hibernate.boot.InvalidMappingException: Could not parse mapping document: null (INPUT_STREAM)
        at org.hibernate.boot.jaxb.internal.InputStreamXmlSource.doBind(InputStreamXmlSource.java:46)
        at org.hibernate.boot.jaxb.internal.InputStreamXmlSource.doBind(InputStreamXmlSource.java:38)
        at org.hibernate.boot.spi.XmlMappingBinderAccess.bind(XmlMappingBinderAccess.java:94)
        at org.hibernate.boot.MetadataSources.addInputStream(MetadataSources.java:381)
        at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:475)
        at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:412)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
        ... 42 more
    Caused by: org.hibernate.boot.MappingException: Error accessing stax stream : origin(null)
        at org.hibernate.boot.jaxb.internal.AbstractBinder.seekRootElementStartEvent(AbstractBinder.java:141)
        at org.hibernate.boot.jaxb.internal.AbstractBinder.doBind(AbstractBinder.java:101)
        at org.hibernate.boot.jaxb.internal.AbstractBinder.bind(AbstractBinder.java:57)
        at org.hibernate.boot.jaxb.internal.InputStreamXmlSource.doBind(InputStreamXmlSource.java:43)
        ... 49 more
    Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
    Message: 前言中不允许有内容。
        at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(Unknown Source)
        at com.sun.xml.internal.stream.XMLEventReaderImpl.peek(Unknown Source)
        at javax.xml.stream.util.EventReaderDelegate.peek(Unknown Source)
        at org.hibernate.boot.jaxb.internal.stax.BufferedXMLEventReader.peek(BufferedXMLEventReader.java:96)
        at org.hibernate.boot.jaxb.internal.AbstractBinder.seekRootElementStartEvent(AbstractBinder.java:137)
        ... 52 more
    
    六月 14, 2018 8:45:35 上午 org.apache.catalina.core.StandardContext startInternal
    严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
    六月 14, 2018 8:45:35 上午 org.apache.catalina.core.StandardContext startInternal
    严重: Context [/ssh] startup failed due to previous errors
    六月 14, 2018 8:45:35 上午 org.apache.catalina.core.ApplicationContext log
    信息: Closing Spring root WebApplicationContext
    六月 14, 2018 8:45:35 上午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory [D:\Tomcat 9\apache-tomcat-9.0.6\webapps\docs]
    六月 14, 2018 8:45:37 上午 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.
    六月 14, 2018 8:45:37 上午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory [D:\Tomcat 9\apache-tomcat-9.0.6\webapps\docs] has finished in [2,512] ms
    六月 14, 2018 8:45:37 上午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory [D:\Tomcat 9\apache-tomcat-9.0.6\webapps\examples]
    六月 14, 2018 8:45:41 上午 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.
    六月 14, 2018 8:45:41 上午 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: contextInitialized()
    六月 14, 2018 8:45:41 上午 org.apache.catalina.core.ApplicationContext log
    信息: SessionListener: contextInitialized()
    六月 14, 2018 8:45:41 上午 org.apache.catalina.core.ApplicationContext log
    信息: ContextListener: attributeAdded('StockTicker', 'async.Stockticker@2fc1964')
    六月 14, 2018 8:45:41 上午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory [D:\Tomcat 9\apache-tomcat-9.0.6\webapps\examples] has finished in [4,042] ms
    六月 14, 2018 8:45:41 上午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory [D:\Tomcat 9\apache-tomcat-9.0.6\webapps\host-manager]
    六月 14, 2018 8:45:43 上午 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.
    六月 14, 2018 8:45:44 上午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory [D:\Tomcat 9\apache-tomcat-9.0.6\webapps\host-manager] has finished in [2,223] ms
    六月 14, 2018 8:45:44 上午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory [D:\Tomcat 9\apache-tomcat-9.0.6\webapps\manager]
    六月 14, 2018 8:45:46 上午 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.
    六月 14, 2018 8:45:46 上午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory [D:\Tomcat 9\apache-tomcat-9.0.6\webapps\manager] has finished in [2,223] ms
    六月 14, 2018 8:45:46 上午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory [D:\Tomcat 9\apache-tomcat-9.0.6\webapps\ROOT]
    六月 14, 2018 8:45:48 上午 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.
    六月 14, 2018 8:45:48 上午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory [D:\Tomcat 9\apache-tomcat-9.0.6\webapps\ROOT] has finished in [2,202] ms
    六月 14, 2018 8:45:48 上午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory [D:\Tomcat 9\apache-tomcat-9.0.6\webapps\Zk]
    六月 14, 2018 8:45:50 上午 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.
    六月 14, 2018 8:45:50 上午 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deployment of web application directory [D:\Tomcat 9\apache-tomcat-9.0.6\webapps\Zk] has finished in [2,061] ms
    六月 14, 2018 8:45:50 上午 org.apache.coyote.AbstractProtocol start
    信息: Starting ProtocolHandler ["http-nio-8080"]
    六月 14, 2018 8:45:50 上午 org.apache.coyote.AbstractProtocol start
    信息: Starting ProtocolHandler ["ajp-nio-8009"]
    六月 14, 2018 8:45:50 上午 org.apache.catalina.startup.Catalina start
    信息: Server startup in 22398 ms
    
    
    点赞 评论
  • W_Zk_1745
    过客己 2018-06-14 00:46

    图片说明

    点赞 评论
  • weixin_38652136
    邪恶八进制 2018-06-14 01:09

    ssh主配置文件应该命名为applicationContext.xml

    点赞 评论
  • xiaom_m
    xiaom_m 2018-06-14 01:32

    这个会不会是你配置文件放错位置 然后就读取不到配置文件了

    点赞 评论
  • Lee304277901
    小蚂蚁大猩猩 2018-06-14 02:53

    org.eclipse.jst.jee.server:SSH2

    这个文件没有对应的匹配的路径。

    点赞 评论
  • u013278277
    竹林智者 2018-06-14 03:09

    Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.boot.InvalidMappingException: Could not parse mapping document: null (INPUT_STREAM)

    你的mapping document 没有写

    图片说明

    setMappingResources(java.lang.String... mappingResources)
    Set Hibernate mapping resources to be found in the class path, like "example.hbm.xml" or "mypackage/example.hbm.xml".

    点赞 评论

相关推荐