解决方案 »

  1.   

    这错误嫩明显了,spring配置文件有问题paywebservice-context.xml]
      

  2.   

    这是paywebservice-context.xml文件
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>
    <!--  错误内容读取类-->
    <bean id="webservice.webServiceErrorPropertiesFile"
    class="com.foundercy.pay.webservice.util.WebServiceErrorPropertiesFile"
    singleton="true">
    <property name="fileName" value="webserviceErrorCode.properties" />
    </bean>  
    <bean id="wsGetPayInfoImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSGetPayInfoImp"
    singleton="true">
    </bean>
    <bean id="wsGetRefundPayInfoImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSGetRefundPayInfoImp"
    singleton="true">
    </bean>
    <bean id="wsCancelRefundPayImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSCancelRefundPayImp"
    singleton="true">
    <property name="trans">
    <ref bean="pay.common.bs.SmallTransExecutor" />
    </property>
    </bean>
    <bean id="wsCreatePayAgentBillImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSCreatePayAgentBillImp"
    singleton="true">
    </bean>
    <bean id="wsGetPayAgentBillBackImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSGetPayAgentBillBackImp"
    singleton="true">
    </bean> 
    <bean id="wsConfirmPayAgentBillImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSConfirmPayAgentBillImp"
    singleton="true">
    </bean>  
    <bean id="wsCancelPayAgentBillConfirmImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSCancelPayAgentBillConfirmImp"
    singleton="true">
    </bean> <bean id="wsPayConfirmImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSPayConfirmImp"
    singleton="true">
    </bean>
     
    <bean id="wsDownloadPayListImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSDownloadPayListImp"
    singleton="true">
    </bean>
     
    <bean id="wsGetPayAccBillForPrintImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSGetPayAccBillForPrintImp"
    singleton="true">
    </bean>
     
    <bean id="wsCreatePayAccBillImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSCreatePayAccBillImp"
    singleton="true">
    </bean>
     
    <bean id="wsCreatePayDayBillImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSCreatePayDayBillImp"
    singleton="true">
    </bean>
     
    <bean id="wsGetPayDayBillForPrintImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSGetPayDayBillForPrintImp"
    singleton="true">
    </bean>
     
    <bean id="wsGetPayVoucherBillForDayImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSGetPayVoucherBillForDayImp"
    singleton="true">
    </bean> 
    <bean id="wsPayBackImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSPayBackImp"
    singleton="true">
    </bean>
     
    <bean id="wsGetPayVoucherForCheckImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSGetPayVoucherForCheckImp"
    singleton="true">
    </bean>
     
    <bean id="wsGetPayBillForCheckImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSGetPayBillForCheckImp"
    singleton="true">
    </bean>
     
    <bean id="wsCancelPayConfirmImp"
    class="com.foundercy.pay.webservice.agentpay.bs.refundpay.WSCancelPayConfirmImp"
    singleton="true">
    </bean>
     
    <bean id="wsGetClearedPayVoucherBillImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSGetClearedPayVoucherBillImp"
    singleton="true">
    </bean>
     
    <bean id="wsCreatePayBillForCollectingImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSCreatePayBillForCollectingImp"
    singleton="true">
    </bean>
     
    <bean id="wsBatchCreatePayBillForCollectingImp"
    class="com.foundercy.pay.webservice.agentpay.bs.specialpay.WSBatchCreatePayBillForCollectingImp"
    singleton="true">
    </bean>
     
    <bean id="wsGetPlanBoundForCollectingImp"
    class="com.foundercy.pay.webservice.agentpay.bs.plan.WSGetPlanBoundForCollectingImp"
    singleton="true">
    </bean>
     
    <bean id="wsDelConsignBillImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSDelConsignBillImp"
    singleton="true">
    </bean>
     
    <bean id="wsGetPlanCheckedBillImp"
    class="com.foundercy.pay.webservice.agentpay.bs.plan.WSGetPlanCheckedBillImp"
    singleton="true">
    </bean>
     
    <bean id="wsGetPlanAgentBillImp"
    class="com.foundercy.pay.webservice.agentpay.bs.plan.WSGetPlanAgentBillImp"
    singleton="true">
    </bean> 
    <bean id="WSGetPlanAgentBillForBillImp"
    class="com.foundercy.pay.webservice.agentpay.bs.plan.WSGetPlanAgentBillForBillImp"
    singleton="true">
    </bean>
     
    <bean id="WSGetPlanAgentBillForDetailImp"
    class="com.foundercy.pay.webservice.agentpay.bs.plan.WSGetPlanAgentBillForDetailImp"
    singleton="true">
    </bean>
     
    <bean id="WSCancelRegPlanAgentBillImp"
    class="com.foundercy.pay.webservice.agentpay.bs.plan.WSCancelRegPlanAgentBillImp"
    singleton="true">
    </bean> 
    <bean id="wsRegPlanAgentBillImp"
    class="com.foundercy.pay.webservice.agentpay.bs.plan.WSRegPlanAgentBillImp"
    singleton="true">
    </bean>
     
    <bean id="wsGetPlanAgentenBillForPrintImp"
    class="com.foundercy.pay.webservice.agentpay.bs.plan.WSGetPlanAgentenBillForPrintImp"
    singleton="true">
    </bean>
     
    <bean id="wsCreatePlanAgentenBillImp"
    class="com.foundercy.pay.webservice.agentpay.bs.plan.WSCreatePlanAgentenBillImp"
    singleton="true">
    </bean>
     
    <bean id="wsGetRegistedPlanDetailImp"
    class="com.foundercy.pay.webservice.agentpay.bs.plan.WSGetRegistedPlanDetailImp"
    singleton="true">
    </bean>
     
    <bean id="wsGetOriginPayInfoImp"
    class="com.foundercy.pay.webservice.agentpay.bs.refundpay.WSGetOriginPayInfoImp"
    singleton="true">
    </bean>
     
    <bean id="wsRefundPayInputImp"
    class="com.foundercy.pay.webservice.agentpay.bs.refundpay.WSRefundPayInputImp"
    singleton="true">
    <property name="transExe">
    <ref bean="pay.common.bs.SmallTransExecutor" />
    </property>
    </bean> 
    <bean id="wsGetPayVoucherBillForClearImp"
    class="com.foundercy.pay.webservice.agentpay.bs.clear.WSGetPayVoucherBillForClearImp"
    singleton="true">
    </bean> 
    <bean id="wsGetPayAgentBillForPrintImp"
    class="com.foundercy.pay.webservice.agentpay.bs.clear.WSGetPayAgentBillForPrintImp"
    singleton="true">
    </bean> 
    <bean id="wsGetPayAgentBillForPrintYnImp"
    class="com.foundercy.pay.webservice.agentpay.bs.clear.WSGetPayAgentBillForPrintYnImp"
    singleton="true">
    </bean>
     
    <bean id="wsFactPayConfirmImp"
    class="com.foundercy.pay.webservice.agentpay.bs.clear.WSFactPayConfirmImp"
    singleton="true">
    </bean>
     
    <bean id="wsFactPayBackConfirmImp"
    class="com.foundercy.pay.webservice.agentpay.bs.clear.WSFactPayBackImp"
    singleton="true">
    </bean>
     
    <bean id="wsFactPayRefundImp"
    class="com.foundercy.pay.webservice.agentpay.bs.clear.WSFactPayRefundImp"
    singleton="true">
    </bean>
     
    <bean id="wsDownloadFactPayListImp"
    class="com.foundercy.pay.webservice.agentpay.bs.clear.WSDownloadFactPayListImp"
    singleton="true">
    </bean>  
    <bean id="wsGetPayAgentBillCheckedImp"
    class="com.foundercy.pay.webservice.agentpay.bs.specialpay.WSGetPayAgentBillCheckedImp"
    singleton="true">
    </bean>
     
    <bean id="wsGetPayInfoWithDetailImp"
    class="com.foundercy.pay.webservice.agentpay.bs.specialpay.WSGetPayInfoWithDetailImp"
    singleton="true">
    </bean>
     
    <bean id="wsGetPlanAgentenBillForYnPrintImp"
    class="com.foundercy.pay.webservice.agentpay.bs.specialpay.WSGetPlanAgentenBillForYnPrintImp"
    singleton="true">
    </bean>
     
    <bean id="wsGetPlanAgentBillForYnImp"
    class="com.foundercy.pay.webservice.agentpay.bs.specialpay.WSGetPlanAgentBillForYnImp"
    singleton="true">
    </bean>
     
    <bean id="wsPayCardRefundDLoadImp"
    class="com.foundercy.pay.webservice.agentpay.bs.paycard.WSPayCardRefundDLoadImp"
    singleton="true">
    <property name="payCardRefund">
    <ref bean="pay.cardRefundService" />
    </property>
    </bean> <bean id="agentPayDAO" lazy-init="true"
    class="com.foundercy.pay.webservice.agentpay.dao.hibernate.AgentPayDAO"
    singleton="true">
    <property name="configure">
    <ref bean="com.foundercy.pay.common.conf.PayConfigure" />
    </property>
    <property name="sessionFactory">
    <ref bean="mysessionFactory" />
    </property>
    <property name="dataRight">
    <ref bean="sys.dataRightService" />
    </property>
    <property name="workFlow">
    <ref bean="sys.workFlowService" />
    </property>
    <property name="voucherService">
    <ref bean="sys.voucherService" />
    </property>
    </bean>
    <!--
    bean
    class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
    <property name="triggers"> <list> <ref bean="autoConfirmTrigger" />
    </list> </property> </bean
    --> <bean id="autoConfirmTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    <property name="jobDetail">
    <ref bean="autoConfirmDetail" />
    </property>
    <property name="cronExpression">
    <value> * 0/5 * * * ?</value>
    </property>
    </bean>
    <bean id="autoConfirmDetail"
    class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    <property name="targetObject">
    <ref bean="autoConfirmAgentBusiness" />
    </property>
    <property name="targetMethod">
    <value>run</value>
    </property>
    </bean>  
    <bean id="autoConfirmAgentBusiness" parent="hibernateTransProxy"
    singleton="true">
    <property name="target">
    <bean
    class="com.foundercy.pay.webservice.agentpay.server.AutoConfirmAgentBill">
    <property name="generalDAO">
    <ref bean="generalDAO" />
    </property>
    <property name="business">
    <ref bean="common.bs.baseBusiness" />
    </property>
    <property name="config">
    <ref bean="com.foundercy.pay.common.conf.PayConfigure" />
    </property>
    </bean>
    </property>
    </bean>  
    <bean id="wsRegPayBillListImp"
    class="com.foundercy.pay.webservice.agentpay.bs.pay.WSRegPayBillListImp"
    singleton="true">
    </bean> 
    <bean id="wsPayCardRefundDLoadNingBoImp"
    class="com.foundercy.pay.webservice.agentpay.bs.paycard.WSPayCardRefundDLoadNingBoImp"
    singleton="true">
    </bean>
     
    <bean id="wsRegPayCardRefundDNingBoImp"
    class="com.foundercy.pay.webservice.agentpay.bs.paycard.WSRegPayCardRefundDNingBoImp"
    singleton="true">
    </bean>
    </beans>
      

  3.   

    看你写的XML文件也有点辛苦,给你个建议,基于类实现各大框架的配置,代码少,思路清晰,并且很多都不需要手动配置,继承的类基本已经实现