星辰Kee 2017-02-15 06:44 采纳率: 33.3%
浏览 3376
已采纳

启动Tomcat控制台报错:Could not parse mapping document from input stream

启动Tomcat控制台报错如下

 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AccountHistorySVCImpl': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AccountHistoryDaoImpl' defined in ServletContext resource [/WEB-INF/dataAccessContext-local.xml]: Cannot resolve reference to bean 'SessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SessionFactory' defined in ServletContext resource [/WEB-INF/dataAccessContext-local.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:292)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:959)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:672)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1859)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AccountHistoryDaoImpl' defined in ServletContext resource [/WEB-INF/dataAccessContext-local.xml]: Cannot resolve reference to bean 'SessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SessionFactory' defined in ServletContext resource [/WEB-INF/dataAccessContext-local.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)
    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:435)
    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)
    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:537)
    at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:180)
    at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:289)
    ... 29 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SessionFactory' defined in ServletContext resource [/WEB-INF/dataAccessContext-local.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
    ... 47 more
Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
    at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:508)
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:631)
    at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
    ... 57 more
Caused by: org.dom4j.DocumentException: Error on line 21 of document  : 元素类型 "class" 必须由匹配的结束标记 "</class>" 终止。 Nested exception: 元素类型 "class" 必须由匹配的结束标记 "</class>" 终止。
    at org.dom4j.io.SAXReader.read(SAXReader.java:482)
    at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:499)
    ... 61 more

dataAccessContext-local.xml配置文件内容如下

 <?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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-2.5.xsd
       http://www.springframework.org/schema/aop
       http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
       http://www.springframework.org/schema/tx
       http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">


    <bean id="dataSource2" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
        <property name="driverClass" value="oracle.jdbc.driver.OracleDriver"/>
        <property name="jdbcUrl" value="jdbc:oracle:thin:@192.168.1.2:1521:CEMP" />
        <property name="user" value="cs_imrs" />
        <property name="password" value="123123" />
        <property name="maxPoolSize" value="15"/>
        <property name="minPoolSize" value="10"/>
        <property name="initialPoolSize" value="5"/>
        <property name="maxIdleTime" value="60"/>
    </bean>

    <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
        <property name="driverClass" value="oracle.jdbc.driver.OracleDriver"/>
        <property name="jdbcUrl" value="jdbc:oracle:thin:@192.168.0.92:1521:ORCL" />
        <property name="user" value="CS_IMRS" />
        <property name="password" value="CS_IMRS" />
        <property name="maxPoolSize" value="15"/>
        <property name="minPoolSize" value="10"/>
        <property name="initialPoolSize" value="5"/>
        <property name="maxIdleTime" value="60"/>
    </bean>

    <bean id="dataSource3" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
        <property name="driverClass" value="oracle.jdbc.driver.OracleDriver"/>
        <property name="jdbcUrl" value="jdbc:oracle:thin:@192.168.1.177:1521:orcl" />
        <property name="user" value="energy" />
        <property name="password" value="energy" />
        <property name="maxPoolSize" value="15"/>
        <property name="minPoolSize" value="10"/>
        <property name="initialPoolSize" value="5"/>
        <property name="maxIdleTime" value="60"/>
    </bean>
    <bean id="SessionFactory"
        class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
        <property name="dataSource">
            <ref local="dataSource" />
        </property>
        <property name="mappingResources">
            <list>
                <value>com/hd/imrs/log/map/LogEntity.hbm.xml</value>
                <value>com/hd/imrs/system/map/SubSystemEntity.hbm.xml</value>
                <value>com/hd/imrs/system/map/ModuleEntity.hbm.xml</value>
                <value>com/hd/imrs/system/map/OperationEntity.hbm.xml</value>
                <value>com/hd/imrs/system/map/RoleEntity.hbm.xml</value>
                <value>com/hd/imrs/system/map/SystemParamEntity.hbm.xml</value>
                <value>com/hd/imrs/system/map/UserEntity.hbm.xml</value>
                <value>com/hd/imrs/system/map/SendingEntity.hbm.xml</value>


                <value>com/hd/imrs/archive/map/BuildingEntity.hbm.xml</value>
                <value>com/hd/imrs/archive/map/ConcentratorEntity.hbm.xml</value>
                <value>com/hd/imrs/archive/map/CollectorEntity.hbm.xml</value>
                <value>com/hd/imrs/archive/map/OrganizationEntity.hbm.xml</value>
                <value>com/hd/imrs/archive/map/FactoryEntity.hbm.xml</value>
                <value>com/hd/imrs/archive/map/MeterEntity.hbm.xml</value>
                <value>com/hd/imrs/archive/map/FaultEntity.hbm.xml</value>
                <value>com/hd/imrs/archive/map/ArchiveEntity.hbm.xml</value>
                <value>com/hd/imrs/archive/map/SiteEntity.hbm.xml</value>
                <value>com/hd/imrs/archive/map/RoomEntity.hbm.xml</value>
                <value>com/hd/imrs/archive/map/ModelEntity.hbm.xml</value>
                <value>com/hd/imrs/archive/map/YxvEntity.hbm.xml</value>
                <value>com/hd/imrs/archive/map/MarketingEntity.hbm.xml</value>
                <value>com/hd/imrs/archive/map/SimEntity.hbm.xml</value>

                <value>com/hd/imrs/rate/map/RateItem.hbm.xml</value>
                <value>com/hd/imrs/rate/map/BasicWaterRate.hbm.xml</value>
                <value>com/hd/imrs/rate/map/Rate.hbm.xml</value>
                <value>com/hd/imrs/rate/map/OverDue.hbm.xml</value>
                <value>com/hd/imrs/rate/map/RateSet.hbm.xml</value>
                <value>com/hd/imrs/rate/map/RateSubSidy.hbm.xml</value>
                <value>com/hd/imrs/rate/map/AreaUser.hbm.xml</value>
                <value>com/hd/imrs/rate/map/SubSidySend.hbm.xml</value>
                <value>com/hd/imrs/rate/map/SubSidySendDetal.hbm.xml</value>
                <value>com/hd/imrs/rate/map/Dayily.hbm.xml</value>
                <value>com/hd/imrs/rate/map/Month.hbm.xml</value>
                <value>com/hd/imrs/rate/map/RecordEntity.hbm.xml</value>

                <value>com/hd/imrs/maintain/map/RunTaskEntity.hbm.xml</value>
                <value>com/hd/imrs/maintain/map/WarningSetEntity.hbm.xml</value>
                <value>com/hd/imrs/maintain/map/WarningInfoEntity.hbm.xml</value>
                <value>com/hd/imrs/maintain/map/DayusedtempEntity.hbm.xml</value>
                <value>com/hd/imrs/maintain/map/BlacklistEntity.hbm.xml</value>
                <value>com/hd/imrs/maintain/map/BlacklistEntityResult.hbm.xml</value>
                <value>com/hd/imrs/maintain/map/FaultmEntity.hbm.xml</value>
                <value>com/hd/imrs/maintain/map/ChangeEntity.hbm.xml</value>
                <value>com/hd/imrs/maintain/map/FreezeEntity.hbm.xml</value>
                <value>com/hd/imrs/maintain/map/SwitchEntity.hbm.xml</value>
                <value>com/hd/imrs/maintain/map/MtCountEntity.hbm.xml</value>
                <value>com/hd/imrs/maintain/map/MessageEntity.hbm.xml</value>
                <value>com/hd/imrs/maintain/map/DataCommunicationEntity.hbm.xml</value>

                <value>com/hd/imrs/monitor/map/MeterHourCurveEntity.hbm.xml</value>
                <value>com/hd/imrs/monitor/map/MeterDayCurveEntity.hbm.xml</value>
                <value>com/hd/imrs/monitor/map/MeterMonthCurveEntity.hbm.xml</value>
                <value>com/hd/imrs/monitor/map/MeterDayLoss.hbm.xml</value>
                <value>com/hd/imrs/monitor/map/MeterMonthLoss.hbm.xml</value>
                <value>com/hd/imrs/monitor/map/MeterDayConsuEntity.hbm.xml</value>
                <value>com/hd/imrs/monitor/map/BuildMonthConstituteEntity.hbm.xml</value>

                <value>com/hd/imrs/monitor/map/UnitHourcurveEntity.hbm.xml</value>
                <value>com/hd/imrs/monitor/map/UnitDaycurveEntity.hbm.xml</value>
                <value>com/hd/imrs/monitor/map/UnitMonthcurveEntity.hbm.xml</value>



                <value>com/hd/imrs/account/map/AccountEntity.hbm.xml</value>
                <value>com/hd/imrs/account/map/AccountHistoryET.hbm.xml</value>
                <value>com/hd/imrs/payment/map/PaymentEntity.hbm.xml</value>
                <value>com/hd/imrs/payment/map/NetworkEntity.hbm.xml</value>
                <value>com/hd/imrs/statistical/map/SubmitDayEntity.hbm.xml</value>
                <value>com/hd/imrs/statistical/map/SubmitMonthEntity.hbm.xml</value>
                <value>com/hd/imrs/statistical/map/DosageEntity.hbm.xml</value>
                <value>com/hd/imrs/statistical/map/MeterDayilyEntity.hbm.xml</value>
                <value>com/hd/imrs/statistical/map/FeedayilyEntity.hbm.xml</value>


                <value>com/hd/quartz/msg/map/MsgEntity.hbm.xml</value>
                <value>com/hd/quartz/msg/map/BillEntity.hbm.xml</value>
                <value>com/hd/quartz/map/JobBeanEntity.hbm.xml</value>


                <value>com/hd/imrs/decision/map/PsEntity.hbm.xml</value>
                <value>com/hd/imrs/decision/map/FeeEntity.hbm.xml</value>
                <value>com/hd/imrs/decision/map/MrrEntity.hbm.xml</value>
                <value>com/hd/imrs/decision/map/FmrrEntity.hbm.xml</value>
                <value>com/hd/imrs/decision/map/FaultsEntity.hbm.xml</value>
                <value>com/hd/imrs/master/map/SimmEntity.hbm.xml</value>
                <value>com/hd/imrs/master/map/MasterEntity.hbm.xml</value>
                <value>com/hd/imrs/master/map/CommunicationEntity.hbm.xml</value>

                <value>com/hd/imrs/presm/map/PresmDetailEntity.hbm.xml</value>
                <value>com/hd/imrs/presm/map/PresmSetEntity.hbm.xml</value>

                <value>com/hd/imrs/community/map/PersonnelEntity.hbm.xml</value>
                <value>com/hd/imrs/community/map/SpecialEntity.hbm.xml</value>
                <value>com/hd/imrs/community/map/SpecialWarnEntity.hbm.xml</value>

                <value>com/hd/imrs/scene/map/DesignEntity.hbm.xml</value>
            </list>
        </property>
        <property name="hibernateProperties">
            <props>
                <prop key="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</prop>
                <prop key="hibernate.show_sql">true</prop>
                <prop key="hibernate.bytecode.use_reflection_optimizer">true</prop>
                <prop key="hibernate.connection.release_mode">auto</prop>
                <prop key="hibernate.cglib.use_reflection_optimizer">true</prop>
                <prop key="hibernate.jdbc.batch_size">20</prop>
            </props>
        </property>
    </bean>

    <!-- 配置事务管理器 -->
    <bean id="TransactionManager"
        class="org.springframework.orm.hibernate3.HibernateTransactionManager">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <!-- 配置事务传播特性 -->
    <tx:advice id="txAdvice" transaction-manager="TransactionManager">
        <tx:attributes>
            <tx:method name="save*" propagation="REQUIRED" />
            <tx:method name="update*" propagation="REQUIRED" />
            <tx:method name="del*" propagation="REQUIRED" />
            <tx:method name="execute*" propagation="REQUIRED" />
            <tx:method name="create*" propagation="REQUIRED" />
            <tx:method name="find*" read-only="true" />
            <tx:method name="query*" read-only="true" />
        </tx:attributes>
    </tx:advice>

    <!-- 通知织入接口 -->
    <aop:config>
        <aop:pointcut id="ServicePointcut"
            expression="execution(* com.hd.imrs.*.service.impl.*ServiceImpl.*(..))" />
        <aop:advisor advice-ref="txAdvice" pointcut-ref="ServicePointcut" />
    </aop:config>

    <bean id="HibernateDaoImpl" class="com.hd.imrs.dao.HibernateDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="LogDaoImpl" class="com.hd.imrs.log.dao.impl.LogDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="UserDaoImpl" class="com.hd.imrs.system.dao.impl.UserDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="RoleDaoImpl" class="com.hd.imrs.system.dao.impl.RoleDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="OperationDaoImpl" class="com.hd.imrs.system.dao.impl.OperationDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="ModuleDaoImpl" class="com.hd.imrs.system.dao.impl.ModuleDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="SubSystemDaoImpl" class="com.hd.imrs.system.dao.impl.SubSystemDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="SystemParamDaoImpl" class="com.hd.imrs.system.dao.impl.SystemParamDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="SendingDaoImpl" class="com.hd.imrs.system.dao.impl.SendingDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>


    <bean id="BuildingDaoImpl" class="com.hd.imrs.archive.dao.impl.BuildingDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="OrganizationDaoImpl" class="com.hd.imrs.archive.dao.impl.OrganizationDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="ConcentratorDaoImpl" class="com.hd.imrs.archive.dao.impl.ConcentratorDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean> 
    <bean id="CollectorDaoImpl" class="com.hd.imrs.archive.dao.impl.CollectorDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="ConsumeDaoImpl" class="com.hd.imrs.archive.dao.impl.ConsumeDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

        <bean id="SiteDaoImpl" class="com.hd.imrs.archive.dao.impl.SiteDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="FactoryDaoImpl" class="com.hd.imrs.archive.dao.impl.FactoryDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="MeterDaoImpl" class="com.hd.imrs.archive.dao.impl.MeterDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="FaultDaoImpl" class="com.hd.imrs.archive.dao.impl.FaultDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="SwitchDaoImpl" class="com.hd.imrs.maintain.dao.impl.SwitchDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
       <bean id="MtCountDaoImpl" class="com.hd.imrs.maintain.dao.impl.MtCountDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="ArchiveDaoImpl" class="com.hd.imrs.archive.dao.impl.ArchiveDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="RoomDaoImpl" class="com.hd.imrs.archive.dao.impl.RoomDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
        <bean id="ModelDaoImpl" class="com.hd.imrs.archive.dao.impl.ModelDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="YxvDaoImpl" class="com.hd.imrs.archive.dao.impl.YxvDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="MarketingDaoImpl" class="com.hd.imrs.archive.dao.impl.MarketingDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="SimDaoImpl" class="com.hd.imrs.archive.dao.impl.SimDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>



    <bean id="RunTaskDaoImpl" class="com.hd.imrs.maintain.dao.impl.RunTaskDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="WarningSetDaoImpl" class="com.hd.imrs.maintain.dao.impl.WarningSetDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="WarningInfoDaoImpl" class="com.hd.imrs.maintain.dao.impl.WarningInfoDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>


    <bean id="DayusedtempDaoImpl" class="com.hd.imrs.maintain.dao.impl.DayusedtempDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="BlacklistDaoImpl" class="com.hd.imrs.maintain.dao.impl.BlacklistDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="MessageDaoImpl" class="com.hd.imrs.maintain.dao.impl.MessageDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean> 

    <bean id="BlacklistResultDaoImpl" class="com.hd.imrs.maintain.dao.impl.BlacklistResultDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="FaultmDaoImpl" class="com.hd.imrs.maintain.dao.impl.FaultmDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="ChangeDaoImpl" class="com.hd.imrs.maintain.dao.impl.ChangeDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>



    <bean id="MeterHourCurveDaoImpl" class="com.hd.imrs.monitor.dao.impl.MeterHourCurveDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="MeterDayCurveDaoImpl" class="com.hd.imrs.monitor.dao.impl.MeterDayCurveDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="MeterMonthCurveDaoImpl" class="com.hd.imrs.monitor.dao.impl.MeterMonthCurveDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>


    <bean id="UnitHourCurveDaoImpl" class="com.hd.imrs.monitor.dao.impl.UnitHourCurveDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="UnitDayCurveDaoImpl" class="com.hd.imrs.monitor.dao.impl.UnitDayCurveDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="UnitMonthCurveDaoImpl" class="com.hd.imrs.monitor.dao.impl.UnitMonthCurveDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>


    <bean id="MeterDayLossDaoImpl" class="com.hd.imrs.monitor.dao.impl.MeterDayLossDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="MeterMonthLossDaoImpl" class="com.hd.imrs.monitor.dao.impl.MeterMonthLossDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="MeterDayConsuDaoImpl" class="com.hd.imrs.monitor.dao.impl.MeterDayConsuDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="AccountDaoImpl" class="com.hd.imrs.account.dao.impl.AccountDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <!-- 
    <bean id="AccountHistoryDaoImpl" class="com.hd.imrs.account.dao.impl.AccountHistoryDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
     -->
    <bean id="AccountHistoryDaoImpl" class="com.hd.imrs.account.dao.impl.AccountHistoryDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean> 
    <bean id="RateDaoImpl" class="com.hd.imrs.rate.impl.RateDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="RateItemDaoImpl" class="com.hd.imrs.rate.impl.RateItemDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="NewRateItemDaoImpl" class="com.hd.imrs.rate.impl.NewRateItemDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="BasicWaterRateDaoImpl" class="com.hd.imrs.rate.impl.BasicWaterRateDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
   <bean id="OverDueDaoImpl" class="com.hd.imrs.rate.impl.OverDueDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
     <bean id="RateSetDaoImpl" class="com.hd.imrs.rate.impl.RateSetDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
     <bean id="SubSidyDaoImpl" class="com.hd.imrs.rate.impl.SubSidyDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="SubSidySendDaoImpl" class="com.hd.imrs.rate.impl.SubSidySendDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="SubSidySendDetalDaoImpl" class="com.hd.imrs.rate.impl.SubSidySendDetalDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
     <bean id="AreaDaoImpl" class="com.hd.imrs.rate.impl.AreaDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="DayilyDaoImpl" class="com.hd.imrs.rate.impl.DayilyDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="MonthDaoImpl" class="com.hd.imrs.rate.impl.MonthDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="RecordDaoImpl" class="com.hd.imrs.rate.impl.RecordDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>


     <bean id="PaymentDaoImpl" class="com.hd.imrs.payment.dao.impl.PaymentDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="NetworkDaoImpl" class="com.hd.imrs.payment.dao.impl.NetworkDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>



    <bean id="DesignDaoImpl" class="com.hd.imrs.scene.dao.impl.DesignDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>






    <bean id="SubmitDayDaoImpl" class="com.hd.imrs.statistical.dao.impl.SubmitDayDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="SubmitMonthDaoImpl" class="com.hd.imrs.statistical.dao.impl.SubmitMonthDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="CostDaoImpl" class="com.hd.imrs.statistical.dao.impl.CostDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="PsDaoImpl" class="com.hd.imrs.decision.dao.impl.PsDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="FeeDaoImpl" class="com.hd.imrs.decision.dao.impl.FeeDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="MrrDaoImpl" class="com.hd.imrs.decision.dao.impl.MrrDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="FmrrDaoImpl" class="com.hd.imrs.decision.dao.impl.FmrrDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="FaultsDaoImpl" class="com.hd.imrs.decision.dao.impl.FaultsDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="SimmDaoImpl" class="com.hd.imrs.master.dao.impl.SimmDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

      <bean id="MasterDaoImpl" class="com.hd.imrs.master.dao.impl.MasterDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>


      <bean id="DetailDaoImpl" class="com.hd.imrs.presm.dao.impl.DetailDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
          <bean id="PresmSetDaoImpl" class="com.hd.imrs.presm.dao.impl.PresmSetDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

   <bean id="FreezeDaoImpl" class="com.hd.imrs.maintain.dao.impl.FreezeDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

      <bean id="CommunicationDaoImpl" class="com.hd.imrs.master.dao.impl.CommunicationDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="PersonnelDaoImpl" class="com.hd.imrs.community.dao.impl.PersonnelDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="SpecialDaoImpl" class="com.hd.imrs.community.dao.impl.SpecialDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="SpecialWarnDaoImpl" class="com.hd.imrs.community.dao.impl.SpecialWarnDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="ControlSetDaoImpl" class="com.hd.imrs.maintain.dao.impl.ControlSetDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="MsgDaoImpl" class="com.hd.quartz.msg.dao.impl.MsgDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="BillDaoImpl" class="com.hd.quartz.msg.dao.impl.BillDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>

    <bean id="DataCommunicationDaoImpl" class="com.hd.imrs.maintain.dao.impl.DataCommunicationDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>


    <bean id="JobBeanDaoImpl" class="com.hd.quartz.dao.impl.JobBeanDaoImpl">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
    <bean id="JobBeanServiceImpl" class="com.hd.quartz.msg.service.impl.JobBeanServiceImpl"/>

     <bean id="HibernateHelper" class="com.hd.imrs.dao.HibernateHelper">
        <property name="sessionFactory">
            <ref local="SessionFactory" />
        </property>
    </bean>
      <bean name="quartzScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
        <property name="dataSource" ref="dataSource"/>
        <property name="applicationContextSchedulerContextKey" value="applicationContextKey"/>
        <property name="configLocation" value="classpath:quartz.properties"/>
        <!--这个是必须的,QuartzScheduler 延时启动,应用启动完后 QuartzScheduler 再启动-->
        <property name="startupDelay" value="45"/>
        <!--这个是可选,QuartzScheduler 启动时更新己存在的Job,这样就不用每次修改targetObject后删除qrtz_job_details表对应记录了-->
        <property name="overwriteExistingJobs" value="true"/>
        <property name="jobDetails" >
            <list>
                <ref bean="jobDetail"/>
            </list>
        </property>
    </bean>

    <bean id="jobDetail" class="org.springframework.scheduling.quartz.JobDetailBean">
         <property name="jobClass">
            <value>
                com.hd.quartz.job.TaskJobBean
            </value>
        </property>
    </bean>
   <!-- 
    <bean id="timerClose" class="com.hd.quartz.job.TimerCloseJobBean" />
    <bean id="timerHang" class="com.hd.quartz.job.TimerHangJobBean" />
    <bean id="oweHang" class="com.hd.quartz.job.OweHangJobBean" />
    <bean id="meterExPmc" class="com.hd.quartz.pmc.MeterExceptionPMC" />
    <bean id="pwdOuttimePmc" class="com.hd.quartz.pmc.PasswordOuttimePMC" />
    <bean id="usedEx" class="com.hd.quartz.job.UsedExceptionJobBean" />
       -->
    <bean id="quartzDao" class="com.hd.quartz.dao.QuartzDao" >
    </bean>

     <bean id="schedulerService" class="com.hd.quartz.service.SchedulerServiceImpl" >

    </bean>


    <!-- 使加密狗正常工作而添加 -->
    <bean id="MsgServiceImpl" class="com.hd.quartz.msg.service.impl.MsgServiceImpl"/>
    <bean id="ModuleServiceImpl" class="com.hd.imrs.system.service.impl.ModuleServiceImpl"/>
    <bean id="OperationServiceImpl" class="com.hd.imrs.system.service.impl.OperationServiceImpl"/>
    <bean id="RoleServiceImpl" class="com.hd.imrs.system.service.impl.RoleServiceImpl"/>
    <bean id="SubSystemServiceImpl" class="com.hd.imrs.system.service.impl.SubSystemServiceImpl"/>
    <bean id="SystemParamServiceImpl" class="com.hd.imrs.system.service.impl.SystemParamServiceImpl"/>
    <bean id="UserServiceImpl" class="com.hd.imrs.system.service.impl.UserServiceImpl"/>
    <bean id="SubmitServiceImpl" class="com.hd.imrs.statistical.service.impl.SubmitServiceImpl"/>
    <bean id="AreaServiceImpl" class="com.hd.imrs.rate.service.impl.AreaServiceImpl"/>
    <bean id="DayilyServiceImpl" class="com.hd.imrs.rate.service.impl.DayilyServiceImpl"/>
    <bean id="ManualServiceImpl" class="com.hd.imrs.rate.service.impl.ManualServiceImpl"/>
    <bean id="MonthServiceImpl" class="com.hd.imrs.rate.service.impl.MonthServiceImpl"/>
    <bean id="OverDueServiceImpl" class="com.hd.imrs.rate.service.impl.OverDueServiceImpl"/>
    <bean id="RateServiceImpl" class="com.hd.imrs.rate.service.impl.RateServiceImpl"/>
    <bean id="RateSetServiceImpl" class="com.hd.imrs.rate.service.impl.RateSetServiceImpl"/>
    <bean id="SubSidySendServiceImpl" class="com.hd.imrs.rate.service.impl.SubSidySendServiceImpl"/>
    <bean id="SubSidyServiceImpl" class="com.hd.imrs.rate.service.impl.SubSidyServiceImpl"/>
    <bean id="PaymentServiceImpl" class="com.hd.imrs.payment.service.impl.PaymentServiceImpl"/>
    <bean id="MeterMonitorServiceImpl" class="com.hd.imrs.monitor.service.impl.MeterMonitorServiceImpl"/>
    <bean id="BasicParamServiceImpl" class="com.hd.imrs.maintain.service.impl.BasicParamServiceImpl"/>
    <bean id="ConcentratorCmdServiceImpl" class="com.hd.imrs.maintain.service.impl.ConcentratorCmdServiceImpl"/>
    <bean id="ControlServiceImpl" class="com.hd.imrs.maintain.service.impl.ControlServiceImpl"/>
    <bean id="DataMaintainServiceImpl" class="com.hd.imrs.maintain.service.impl.DataMaintainServiceImpl"/>
    <bean id="ArchiveServiceImpl" class="com.hd.imrs.archive.service.impl.ArchiveServiceImpl"/>
    <bean id="BuildingServiceImpl" class="com.hd.imrs.archive.service.impl.BuildingServiceImpl"/>
    <bean id="ConcentratorServiceImpl" class="com.hd.imrs.archive.service.impl.ConcentratorServiceImpl"/>

    <bean id="CollectorServiceImpl" class="com.hd.imrs.archive.service.impl.CollectorServiceImpl"/>

    <bean id="ConsumeServiceImpl" class="com.hd.imrs.archive.service.impl.ConsumeServiceImpl"/>
    <bean id="FactoryServiceImpl" class="com.hd.imrs.archive.service.impl.FactoryServiceImpl"/>
    <bean id="FaultServiceImpl" class="com.hd.imrs.archive.service.impl.FaultServiceImpl"/>
    <bean id="MeterServiceImpl" class="com.hd.imrs.archive.service.impl.MeterServiceImpl"/>
    <bean id="OrganizationServiceImpl" class="com.hd.imrs.archive.service.impl.OrganizationServiceImpl"/>
    <bean id="RoomServiceImpl" class="com.hd.imrs.archive.service.impl.RoomServiceImpl"/>
    <bean id="SiteServiceImpl" class="com.hd.imrs.archive.service.impl.SiteServiceImpl"/>
    <bean id="AccountHistorySVCImpl" class="com.hd.imrs.account.service.impl.AccountHistorySVCImpl"/>
    <bean id="AccountServiceImpl" class="com.hd.imrs.account.service.impl.AccountServiceImpl"/>
    <bean id="SchedulerServiceImpl" class="com.hd.quartz.service.SchedulerServiceImpl"/>
    <bean id="LogServiceImpl" class="com.hd.imrs.log.service.impl.LogServiceImpl"/>
    <bean id="HdBasicParamServiceImpl" class="com.hd.imrs.maintain.service.impl.HdBasicParamServiceImpl"/>
    <bean id="HBBasicParamServiceImpl" class="com.hd.imrs.maintain.service.impl.HBBasicParamServiceImpl"/>
    <bean id="HdControlServiceImpl" class="com.hd.imrs.maintain.service.impl.HdControlServiceImpl"/>
    <bean id="HdDataMaintainServiceImpl" class="com.hd.imrs.maintain.service.impl.HdDataMaintainServiceImpl"/>
    <bean id="WarningInfoServiceImpl" class="com.hd.imrs.maintain.service.impl.WarningInfoServiceImpl"/>
    <bean id="WarningSetServiceImpl" class="com.hd.imrs.maintain.service.impl.WarningSetServiceImpl"/>
    <bean id="NetworkServiceImpl" class="com.hd.imrs.payment.service.impl.NetworkServiceImpl"/>
    <bean id="BillServiceImpl" class="com.hd.quartz.msg.service.impl.BillServiceImpl"/>
    <bean id="DayusedtempServiceImpl" class="com.hd.imrs.maintain.service.impl.DayusedtempServiceImpl"/>


</beans>

  • 写回答

2条回答 默认 最新

  • engchina 2017-02-15 07:00
    关注

    看这段错误。

    org.dom4j.DocumentException: Error on line 21 of document : 元素类型 "class" 必须由匹配的结束标记 "" 终止。 Nested exception: 元素类型 "class" 必须由匹配的结束标记 "" 终止。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮