0

ワークフロー メソッド内で D2FS サービスを使用しようとしていますが、次のエラーが発生します。

Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
    Two classes have the same XML type name "address". Use @XmlType.name and @XmlType.namespace to assign different names to them.
        this problem is related to the following location:
            at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address
            at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address com.sun.xml.ws.developer.MemberSubmissionEndpointReference.addr
            at com.sun.xml.ws.developer.MemberSubmissionEndpointReference
        this problem is related to the following location:
            at javax.xml.ws.wsaddressing.W3CEndpointReference$Address
            at private javax.xml.ws.wsaddressing.W3CEndpointReference$Address javax.xml.ws.wsaddressing.W3CEndpointReference.address
            at javax.xml.ws.wsaddressing.W3CEndpointReference
    Two classes have the same XML type name "elements". Use @XmlType.name and @XmlType.namespace to assign different names to them.
        this problem is related to the following location:
            at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements
            at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements com.sun.xml.ws.developer.MemberSubmissionEndpointReference.referenceProperties
            at com.sun.xml.ws.developer.MemberSubmissionEndpointReference
        this problem is related to the following location:
            at javax.xml.ws.wsaddressing.W3CEndpointReference$Elements
            at private javax.xml.ws.wsaddressing.W3CEndpointReference$Elements javax.xml.ws.wsaddressing.W3CEndpointReference.referenceParameters
            at javax.xml.ws.wsaddressing.W3CEndpointReference

jaxws-rt ライブラリを更新しようとしたところ、新しいエラーが発生し始めました。

java.lang.LinkageError: ClassException: attempting to castjar:file:/C:/Documentum/jboss4.3.0/server/DctmServer_MethodServer/deploy/bpm.ear/APP-INF/lib/jaxws-api.jar!/javax/xml/ws/spi/Provider.classtojar:file:/C:/Documentum/jboss4.3.0/jdk/jre/lib/rt.jar!/javax/xml/ws/spi/Provider.class
    at javax.xml.ws.spi.Provider.provider(Provider.java:94)
    at javax.xml.ws.Service.<init>(Service.java:56)
    at com.emc.d2fs.schemas.models.ModelPortService.<init>(ModelPortService.java:46)
    at com.emc.cgd.methodsWorkflow.DispatchExtStorageUpdateData.doTask(DispatchExtStorageUpdateData.java:45)
    at com.documentum.bpm.rtutil.WorkflowMethod.execute(WorkflowMethod.java:214)
    at com.documentum.bpm.rtutil.AbstractWorkflowMethod.executeMethod(AbstractWorkflowMethod.java:27)
    at com.documentum.bpm.rtutil.GenericWorkflowMethod.execute(GenericWorkflowMethod.java:124)
    at com.documentum.bpm.rtutil.GenericWorkflowMethod.execute(GenericWorkflowMethod.java:65)
    at com.documentum.mthdservlet.DfMethodRunner.runIt(Unknown Source)
    at com.documentum.mthdservlet.AMethodRunner.runAndReturnStatus(Unknown Source)

それを解決する方法はありますか?

私は使用しています:

  • JBoss 4.3
  • JAX-WS 実装 2.2

ありがとう

4

1 に答える 1

1

tomcat では、次の jar を tomcat lib に追加する必要がありました。

  • jaxws-api.jar
  • jaxws-rt.jar
  • stax-ex.jar
  • streambuffer.jar

おそらく、これにより jBoss の問題も解決されるでしょう。

于 2015-01-26T09:58:36.653 に答える