解决方案 »

  1.   

    我是说cxf和spring等别的版本兼容问题。
      

  2.   

        <jaxws:client id="userServiceWebService" serviceClass="com.able.openapi.myspace.ws.IUserServiceWebService"
            address="${webservice_url_myspace}/cxf/userService"/>
     
      <jaxws:client id="blogWebService" serviceClass="com.able.openapi.myspace.ws.IBlogWebService"
            address="${webservice_url_blog}/cxf/blogService"/>
           
        <jaxws:client id="commentWebService" serviceClass="com.able.openapi.myspace.ws.ICommentWebService"
            address="${webservice_url_myspace}/base/cxf/commentWebService" />
      

  3.   

    你看看url什么的名字有没有写错。
      

  4.   

    先不要和spring融合,在servlet中初始化这个服务。
      

  5.   


    public class SimpleServlet extends CXFNonSpringServlet {  
        private static final long serialVersionUID = 1L;  
      
        public void loadBus(ServletConfig servletConfig) throws ServletException {  
            super.loadBus(servletConfig);  
            BusFactory.setDefaultBus(getBus());  
            Object implementor = new WSCXFProviderImpl();  
            Endpoint.publish("/p1", implementor);  
        }  
    }  
      

  6.   

    将实体id的类型改成Long类型,而不是long类型