【问题标题】:Apache CXF CachedOutputStream NoClassDefFoundErrorApache CXF CachedOutputStream NoClassDefFoundError
【发布时间】:2011-07-27 21:35:10
【问题描述】:

救命!

我在尝试使用 JAX-WS 网络服务调用进行连接时收到此错误:

java.lang.NoClassDefFoundError: org/apache/cxf/io/CachedOutputStream

知道发生了什么吗?

更新:我添加了所有这些 jar 文件

  • cxf.jar
  • commons-logging.jar
  • geronimo-activation.jar(或 Sun 等效文件)[6]
  • geronimo-annotation.jar(或 Sun 等价物)[6]
  • geronimo-javamail.jar(或 Sun 等效文件)[6] (如果你不使用任何 MTOM/SAAJ 类型的东西,也许可以删除 javamail)
  • geronimo-stax-api.jar(或 Sun 等效项)[6]
  • neethi.jar
  • jaxb-api.jar [6]
  • jaxb-impl.jar(这是正常运行时的 [6],但对于 工具和动态客户端)
  • XmlSchema.jar
  • woodstox-core-asl.jar [6] 或其他 StAX 实现
  • stax2-api-3.0.1.jar [6] 用于上述woodstox
  • wsdl4j.jar

另一个更新:

现在我收到以下错误消息:

org.springframework.beans.factory.BeanCreationException:在 URL [jar:file:/opt/local/share/java/tomcat6/ 中定义名称为“org.apache.cxf.binding.soap.customEditorConfigurer”的 bean 创建错误lib/cxf-2.3.3.jar!/META-INF/cxf/cxf-extension-soap.fixml]:初始化bean失败;嵌套异常是 org.springframework.beans.ConversionNotSupportedException:无法将类型“java.util.ArrayList”的属性值转换为属性“propertyEditorRegistrars”所需的类型“org.springframework.beans.PropertyEditorRegistrar[]”;嵌套异常是 java.lang.IllegalStateException:无法将类型 [org.apache.cxf.binding.soap.spring.SoapVersionRegistrar] 的值转换为属性“propertyEditorRegistrars [0]”所需的类型 [org.springframework.beans.PropertyEditorRegistrar]:未找到匹配的编辑器或转换策略

【问题讨论】:

    标签: java web-services


    【解决方案1】:

    你的类路径中没有所有的 CXF。你读过 WHICH_JARS 文件吗?你是如何设置你的类路径的。

    请注意,没有“cxf.jar”之类的东西。它总是'cxf-VERSION.jar',同样适用于其他重新分发的jar。将 WHICH_JARS 与 lib 目录的内容进行比较。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-10
      • 2016-10-29
      • 2014-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多