工作中遇到的问题(第六弹)

记5.26日工作遇到的问题

idea maven工程生成wsdl文件

  • 问题:由于我的server文件放在了test里面,所以第一次生成的时候报了ClassNotFoundException的异常
  • 解决方法:构建路径的时候并不是走test,所以找不到对应的路径,在java文件夹里给上固定的路径就可以拿到wsdl文件了

使用CXF时因缺少对应jar包而报错问题汇总

1.org.apache.catalina.LifecycleException: A child Container failed during start
缺少:cxf-core-x.x.x.jar(最核心的包)
2.Java.lang.ClassNotFoundException: org.apache.cxf.binding.soap.SoapBindingConfiguration
缺少:cxf-rt-bindings-soap-x.x.x.jar (soap协议)
3.org.apache.cxf.jaxb.JAXBDataBinding:
缺少:cxf-rt-databinding-jaxb-x.x.x.jar
4.加载Application文件时出现Unable to locate Spring NamespaceHandler for XML schema namespace (http://cxf.apache.org/jaxws)
缺少:cxf-rt-frontend-jaxws-x.x.x.jar
5.org/apache/cxf/frontend/spring/ClientProxyFactoryBeanDefinitionParser错误:
缺少:cxf-rt-frontend-simple-x.x.x.jar
6.class path resource [META-INF/cxf/cxf-servlet.xml] cannot be opened because it does not exist
缺少:cxf-rt-transports-http-x.x.x.jar
7.org.apache.cxf.BusException: No DestinationFactory was found for the namespace http://cxf.apache.org/transports/udp.
缺少:cxf-rt-transports-udp-x.x.x.jar
8.org.apache.cxf.ws.discovery.internal.WSDiscoveryServiceImpl startup 警告: Could not start WS-Discovery Service.javax.xml.ws.WebServiceException: java.lang.NullPointerException 不能初始化配置的bean服务,也就是运行到时出错
缺少:cxf-rt-ws-addr-x.x.x.jar
9.java.lang.ClassNotFoundException: org.apache.cxf.ws.policy.AssertionInfoMap
缺少:cxf-rt-ws-policy-x.x.x.jar
10.java.lang.ClassNotFoundException: org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean
缺少:cxf-rt-wsdl-x.x.x.jar
11.java.lang.ClassNotFoundException: org.apache.neethi.AssertionBuilderFactory
缺少:neethi-x.x.x.jar
12.java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
缺少:slf4j-api-x.x.x.jar
13.java.lang.ClassNotFoundException: org.apache.ws.commons.schema.resolver.URIResolver
缺少:xmlschema-core-x.x.x.jar

何鸿燊

  • 这个字读shen

何猷君

  • 这个字读you

文章作者: Kobe-Liu1
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Kobe-Liu1 !
 上一篇
高数二(第一弹) 高数二(第一弹)
第一章:函数,极限,连续函数: 1.函数的几种特性: 函数的有界性:在定义域D中如果任意x都使得f(x)<=K,则函数有上界,K是函数的一个上界,如果任意x使得f(x) <= N,则函数有下届,N是函数的一个下届 函数的
2020-05-27 Kobe-Liu1
下一篇 
工作中遇到的问题(第五弹)) 工作中遇到的问题(第五弹))
记5.25好工作中遇到的问题 今天主要是前端相关,用springboot里面的thymeleaf以及bootstrap遇到的一些问题 如何在表格中显示checkbox 问题:从bootStrap上弄下来的组件不显示checkbox,导致
2020-05-25 Kobe-Liu1
  目录