读书人

Could not find destination factory

发布时间: 2012-12-28 10:29:05 作者: rapoo

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包。

读书人网 >编程

热点推荐