admin管理员组

文章数量:1635995

在使用cxf开发webservice时,启动Server时遇到Could not find destination factory for transport http://schemas.xmlsoap/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包。 

本文标签: 解决方法destinationFindTransportFactory