本文用于收藏在使用CXF的过程中遇到的问题及对应的解决方法,记录于此,供大家参考。
服务器端缺少了两个jar包 stax2-api-3.1.x.jar 和 woodstox-core-asl-4.2.x.jar,客户端不需要任何jar包
客户端也需要
Web.xml中 必须有
因为cxf需要contextloaderlistener加载,而contextloaderlistener需要有参数contextConfigLocation
2014-10-22 20:47:00,629[http-bio-8080-exec-10] WARN [org.apache.cxf.phase.PhaseInterceptorChain] - Interceptor for{http://webservice.bpm.platform.ms/}ProcessServiceService#{http://webservice.bpm.platform.ms/}starthas thrown exception, unwinding now
org.apache.cxf.interceptor.Fault:Response was of unexpected text/html ContentType. Incoming portion of HTML stream:
//
if(!vaadin || !vaadin.vaadinConfigurations){
if(!vaadin) { var vaadin = {}}
vaadin.vaadinConfigurations = {};
if (!vaadin.themesLoaded) {vaadin.themesLoaded = {}; }
}
vaadin.vaadinConfigurations["activitiui-2048605651"]= {appUri:'/activiti/ui', standalone: true, themeUri:"/activiti/VAADIN/themes/activiti",versionInfo :{vaadinVersion:"6.8.8",applicationVersion:"NONVERSIONED"},"comErrMsg":{"caption":"Communication problem","message" :"Take note of any unsaved data, and click here<\/u> tocontinue.","url" : null},"authErrMsg":{"caption":"Authentication problem","message" :"Take note of any unsaved data, and click here<\/u> tocontinue.","url" : null}};
//]]>
//
if(!vaadin.themesLoaded['activiti']){
var stylesheet =document.createElement('link');
stylesheet.setAttribute('rel','stylesheet');
stylesheet.setAttribute('type','text/css');
stylesheet.setAttribute('href','/activiti/VAADIN/themes/activiti/styles.css');
document.getElementsByTagName('head')[0].appendChild(stylesheet);
vaadin.themesLoaded['activiti'] =true;
}
//]]>
//
setTimeout('if (typeoforg_activiti_explorer_CustomWidgetset == "undefined"){alert("Failed to load the widgetset:/activiti/VAADIN/widgetsets/org.activiti.explorer.CustomWidgetset/org.activiti.explorer.CustomWidgetset.nocache.js?1413982020604")};',15000);
//]]>