发布wsdl时候,发布名字不能跟工厂调用bean的名字一样否则报错,什么原因不知..

发布wsdl:
@WebService(endpointInterface = "cn.itcast.serviceWSDL.UserServiceWSDL",
serviceName = "userinfoService",targetNamespace="impl.serviceWSDL.itcast.cn")
//@Transactional
public class UserServiceWSDLBean implements UserServiceWSDL {

在调用userService = (UserService)BeanFactory.getBean("userService");
红色字体名字不能与applicationContext中id的名字一致,否则报错 找不到cn.itcast.service.impl.UserServiceBean
<bean id="userService" class="cn.itcast.service.impl.UserServiceBean">
  <property name="dataSource" ref="dataSource"/>
 </bean>

posted on 2012-09-01 18:15 youngturk 阅读(228) 评论(0)  编辑  收藏 所属分类: Java基础web.xml解析spring学习


只有注册用户登录后才能发表评论。


网站导航:
 
<2012年9月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

导航

统计

公告

this year :
1 jQuery
2 freemarker
3 框架结构
4 口语英语

常用链接

留言簿(6)

随笔分类

随笔档案

文章分类

文章档案

相册

EJB学习

Flex学习

learn English

oracle

spring MVC web service

SQL

Struts

生活保健

解析文件

搜索

最新评论

阅读排行榜

评论排行榜