Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/ws/soap/MTOM
publicstaticvoidgetServerList(){//System.out.println(System.getProperty("java.endorse...
public static void getServerList() {
//System.out.println(System.getProperty("java.endorsed.dirs"));
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.getInInterceptors().add(new LoggingInInterceptor());
factory.getOutInterceptors().add(new LoggingOutInterceptor());
factory.setServiceClass(CallService.class);//出错位置
String addr =WsConstants.NS+"/CallService";
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/ws/soap/MTOM
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.loadWSFeatureAnnotation(JaxWsServiceFactoryBean.java:143)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initConfiguration(JaxWsServiceFactoryBean.java:497)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.setJaxWsImplementorInfo(JaxWsServiceFactoryBean.java:472)
at org.apache.cxf.jaxws.JaxWsClientFactoryBean.setServiceClass(JaxWsClientFactoryBean.java:44)
at org.apache.cxf.frontend.ClientProxyFactoryBean.setServiceClass(ClientProxyFactoryBean.java:205)
at et.WSClient.getServerList(WSClient.java:32)
at et.WSClient.main(WSClient.java:19)
是缺少JAR包么? 展开
//System.out.println(System.getProperty("java.endorsed.dirs"));
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.getInInterceptors().add(new LoggingInInterceptor());
factory.getOutInterceptors().add(new LoggingOutInterceptor());
factory.setServiceClass(CallService.class);//出错位置
String addr =WsConstants.NS+"/CallService";
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/ws/soap/MTOM
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.loadWSFeatureAnnotation(JaxWsServiceFactoryBean.java:143)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initConfiguration(JaxWsServiceFactoryBean.java:497)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.setJaxWsImplementorInfo(JaxWsServiceFactoryBean.java:472)
at org.apache.cxf.jaxws.JaxWsClientFactoryBean.setServiceClass(JaxWsClientFactoryBean.java:44)
at org.apache.cxf.frontend.ClientProxyFactoryBean.setServiceClass(ClientProxyFactoryBean.java:205)
at et.WSClient.getServerList(WSClient.java:32)
at et.WSClient.main(WSClient.java:19)
是缺少JAR包么? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询