Class must not be null
在使用XFire的时候。加载Bean时候出现异常了。本地没问题,但是打包打测试环境就抛出以下异常。搞了一天了。都没搞出来,求大神指导!
在XFire-servlet.xml中增加新的WebService定义:
</entry>
<!--日终核对接口定义-->
<entry key="/CMSServiceByDayEnd.ws">
<ref bean="CMSServiceByDayEndService" />
</entry>
<bean id="CMSServiceByDayEndBean" class="com.webservice.hr.service.impl.CMSServiceByDayEnd">
</bean>
<!--日终核对接口定义-->
<bean id="CMSServiceByDayEndService" parent="baseWebService">
<property name="serviceBean" ref="CMSServiceByDayEndBean" ></property>
<!-- 业务服务bean的窄接口类 -->
<property name="serviceClass" value="com.webservice.hr.service.ICMSServiceByDayEnd" />
</bean>
抛出如下异常:
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping' defined in ServletContext resource
[/WEB-INF/xfire-servlet.xml]:
Cannot resolve reference to bean 'CMSServiceByDayEndService' while setting bean property 'urlMap' with key
[TypedStringValue: value [/CMSServiceByDayEnd.ws], target type [null]];
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'CMSServiceByDayEndService' defined in ServletContext resource
[/WEB-INF/xfire-servlet.xml]:
Cannot resolve reference to bean 'CMSServiceByDayEndBean' while setting bean property 'serviceBean';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'CMSServiceByDayEndBean' defined in ServletContext resource
[/WEB-INF/xfire-servlet.xml]:
Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[com.webservice.hr.service.impl.CMSServiceByDayEnd]:
Constructor threw exception;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'IT020206Bs' defined in file
[/home/wasadmin/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/TKCMS-RPAY1Node01Cell/tkcms_war.ear/tkcms.war/WEB-INF/conf/applicationContext/applicationContext-recvpay.xml]:
Cannot resolve reference to bean 'IT020206Bs_target' while setting bean property 'target';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'IT020206Bs_target' defined in file
[/home/wasadmin/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/TKCMS-RPAY1Node01Cell/tkcms_war.ear/tkcms.war/WEB-INF/conf/applicationContext/applicationContext-recvpay.xml]:
Cannot resolve reference to bean 'IBankAccountBs' while setting bean property 'bankAccountBs';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'IBankAccountBs' defined in file
[/home/wasadmin/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/TKCMS-RPAY1Node01Cell/tkcms_war.ear/tkcms.war/WEB-INF/conf/applicationContext/applicationContext-account.xml]:
Cannot resolve reference to bean 'IBankAccountBs_target' while setting bean property 'target';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'IBankAccountBs_target' defined in file
[/home/wasadmin/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/TKCMS-RPAY1Node01Cell/tkcms_war.ear/tkcms.war/WEB-INF/conf/applicationContext/applicationContext-account.xml]:
Cannot resolve reference to bean 'IProofImportSapBs_target' while setting bean property 'proofImportSapBs';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'IProofImportSapBs_target' defined in file
[/home/wasadmin/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/TKCMS-RPAY1Node01Cell/tkcms_war.ear/tkcms.war/WEB-INF/conf/applicationContext/applicationContext-sapservice.xml]:
Cannot resolve reference to bean 'IAuditEntDetailBs_target' while setting bean property 'auditEntDetailBs';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'IAuditEntDetailBs_target' defined in file
[/home/wasadmin/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/TKCMS-RPAY1Node01Cell/tkcms_war.ear/tkcms.war/WEB-INF/conf/applicationContext/applicationContext-bankAudit.xml]:
Cannot resolve reference to bean 'IBankAccountBs' while setting bean property 'bankAccountBs';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'IBankAccountBs':
FactoryBean threw exception on object creation;
nested exception is java.lang.IllegalArgumentException:
Class must not be null