【问题标题】:CXF - ClassCastException (SEIStub/ClientProxy) for webstartCXF - Webstart 的 ClassCastException (SEIStub/ClientProxy)
【发布时间】:2014-04-11 09:13:50
【问题描述】:

我有同样的问题: CXF - ClassCastException (SEIStub/ClientProxy)

但它是独立的 java 应用程序。从 webstart jnlp 文件开始。是否有 webstart 的解决方案(类似于 delegate=false)?

Jnlp 文件是这样的:

<jnlp spec="1.0+" codebase="http://codebase.com/jars/">
  <information>
    <title>Java application</title>
    <vendor>Me</vendor>
    <icon href="splash.png" kind="splash"/>
    <offline-allowed/>
    <shortcut online="false">
      <menu submenu="Java application"/>
    </shortcut>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se version="1.5+" initial-heap-size="128m" max-heap-size="1024m"/>
    <jar href="xpp3_min-1.1.4c.jar"/>
    <jar href="joda-time-1.6.2.jar"/>
    <jar href="xstream-1.4.7.jar"/>
    <jar href="xmlpull-1.1.3.1.jar"/>
    <jar href="log4j-1.2.16.jar"/>
    <jar href="commons-logging-1.1.1.jar"/>
    <jar href="commons-lang-2.5.jar"/>
    <jar href="swing-layout-1.0.3.jar"/>
    <jar href="cxf-rt-frontend-jaxws-2.7.10.jar"/>
    <jar href="cxf-2.7.10.jar"/>
    <jar href="geronimo-jaxws_2.2_spec-1.1.jar"/>
    <jar href="jaxb-api-2.2.6.jar"/>
    <jar href="jaxb-impl-2.2.6.jar"/>
    <jar href="neethi-3.0.3.jar"/>
    <jar href="stax2-api-3.1.1.jar"/>
    <jar href="woodstox-core-asl-4.2.0.jar"/>
    <jar href="wsdl4j-1.6.3.jar"/>
    <jar href="xmlschema-core-2.1.0.jar "/>
    <jar href="hessian-4.0.7.jar"/>
    <jar href="waffle-jna-1.5.jar"/>
    <jar href="jna-3.5.0.jar"/>
    <jar href="platform-3.5.0.jar"/>
    <jar href="my.jar" main="true"/>
    <property name="jnlp.property" value="propertyValue"/>
  </resources>
  <application-desc main-class="mypackage.MainClass"/>
</jnlp>

【问题讨论】:

    标签: java cxf java-web-start jnlp classcastexception


    【解决方案1】:

    你能告诉我 cxf-2.7.10.jar 是不是 CXF all in a jar? 如果是这样,则不需要包含 cxf-rt-frontend-jaxws-2.7.10.jar。

    【讨论】:

    • 标准 cxf-2.7.10.jar 约 7 Mb。行。我删除了 cxf-rt-frontend-jaxws-2.7.10.jar。谢谢。但我认为这与我的问题无关
    猜你喜欢
    • 2011-08-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-19
    • 2021-08-17
    • 1970-01-01
    • 2010-11-06
    • 1970-01-01
    相关资源
    最近更新 更多