使用cxf3.0.4搭建webservice服务需要的最精简jar包
2021-03-17 06:25
标签:bind copy names view 测试 container 依赖 Servle plain 下面是测试结果,只列出报错了的测试: 1、org.apache.catalina.LifecycleException: A child container failed during start 2、java.lang.ClassNotFoundException: org.apache.cxf.binding.soap.SoapBindingConfiguration 3、org.apache.cxf.jaxb.JAXBDataBinding: 4、加载Application文件时出现Unable to locate Spring NamespaceHandler for XML schema namespace 缺少:cxf-rt-frontend-jaxws-3.0.4.jar (frontend 前置的意思,你懂的) 5、org/apache/cxf/frontend/spring/ClientProxyFactoryBeanDefinitionParser错误: 6、class path resource [META-INF/cxf/cxf-servlet.xml] cannot be opened because it does not exist 7、org.apache.cxf.BusException: No DestinationFactory was found for the namespace http://cxf.apache.org/transports/udp. 8、org.apache.cxf.ws.discovery.internal.WSDiscoveryServiceImpl startup 缺少:cxf-rt-ws-addr-3.0.4.jar 9、java.lang.ClassNotFoundException: org.apache.cxf.ws.policy.AssertionInfoMap 10、java.lang.ClassNotFoundException: org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean 11、java.lang.ClassNotFoundException: org.apache.neethi.AssertionBuilderFactory 12、java.lang.ClassNotFoundException: org.slf4j.LoggerFactory 13、java.lang.ClassNotFoundException: org.apache.ws.commons.schema.resolver.URIResolver 所以,总结cxf3.0.4框架必需的包为: 注意:这里不包括spring依赖包和commoms下的jar包 引入CXF Bean定义如下,早期的版本中使用,如果是servlet引入的话则下面三句不用了,因为框架引入了 [html] view plain copy web.xml中添加cxf的servlet [html] view plain copy 使用cxf3.0.4搭建webservice服务需要的最精简jar包 标签:bind copy names view 测试 container 依赖 Servle plain 原文地址:https://www.cnblogs.com/liufei5200/p/13978606.html
缺少:cxf-core-3.0.4.jar(最核心的包,不多说)
缺少:cxf-rt-bindings-soap-3.0.4.jar (soap协议)
缺少:cxf-rt-databinding-jaxb-3.0.4.jar
[http://cxf.apache.org/jaxws]
缺少:cxf-rt-frontend-simple-3.0.4.jar
缺少:cxf-rt-transports-http-3.0.4.jar
缺少:cxf-rt-transports-udp-3.0.4.jar
警告: Could not start WS-Discovery Service.
javax.xml.ws.WebServiceException: java.lang.NullPointerException
不能初始化配置的bean服务,也就是运行到jaxws:server时出错
缺少:cxf-rt-ws-policy-3.0.4.jar
缺少:cxf-rt-wsdl-3.0.4.jar
缺少:neethi-3.0.3.jar
缺少:slf4j-api-1.7.9.jar
缺少:xmlschema-core-2.2.1.jar
cxf-core-3.0.4.jar
cxf-rt-bindings-soap-3.0.4.jar
cxf-rt-databinding-jaxb-3.0.4.jar
cxf-rt-frontend-jaxws-3.0.4.jar
cxf-rt-frontend-simple-3.0.4.jar
cxf-rt-transports-http-3.0.4.jar
cxf-rt-transports-udp-3.0.4.jar
cxf-rt-ws-addr-3.0.4.jar
cxf-rt-wsdl-3.0.4.jar
cxf-rt-ws-policy-3.0.4.jar
cxf-rt-wsdl-3.0.4.jar
neethi-3.0.3.jar
slf4j-api-1.7.9.jar
xmlschema-core-2.2.1.jar
配置文件中不需要:
上一篇:c++序列化对象的文件存取
文章标题:使用cxf3.0.4搭建webservice服务需要的最精简jar包
文章链接:http://soscw.com/index.php/essay/65186.html