首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Could not find destination factory for transport解决办法

2012-12-28 
Could not find destination factory for transport解决方法在使用cxf开发webservice时,启动Server时遇到C

Could not find destination factory for transport解决方法
在使用cxf开发webservice时,启动Server时遇到Could not find destination factory for transport http://schemas.xmlsoap.org/soap/http错误。Server代码如下:

OrderProcess orderProcess = new OrderProcessImpl();GZIPFeature gzip = new GZIPFeature();gzip.setThreshold(1);JaxWsServerFactoryBean server = new JaxWsServerFactoryBean();server.setServiceBean(orderProcess);server.setAddress("http://localhost:8080/feature/OrderProcessGZIP");server.getFeatures().add(gzip);server.create();System.out.println("Server ready....");Thread.sleep(5 * 60 * 1000);        System.out.println("Server exiting");        System.exit(0);

后经调试发现必须加入cxf-rt-transports-http-jetty包。

热点排行