第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

在 WSDL 中導(dǎo)入名稱空間導(dǎo)致 JAXP09020006:參數(shù)“systemId”不能為空

在 WSDL 中導(dǎo)入名稱空間導(dǎo)致 JAXP09020006:參數(shù)“systemId”不能為空

函數(shù)式編程 2023-02-23 10:29:31
我正在重新格式化沒有得到任何答案或評論的現(xiàn)有問題。我正在嘗試使用 Java 11 和 Maven 3.6.1 將 WSDL 導(dǎo)入 Netbeans 11。同樣的方法已經(jīng)用于 Netbeans 8 和 Java 8.2 而沒有問題,但是:舊系統(tǒng)是Linux,新系統(tǒng)是Win10,來自 org.codehaus.mojo 的 jaxws-maven-plugin 2.5 用于舊系統(tǒng),來自 com.sun.xml.ws 的 jaxws-maven-plugin 2.3.2 用于新系統(tǒng)我已經(jīng)研究了這個問題,以導(dǎo)入我的 WSDL 的名稱空間部分。這是有問題的 WSDL,我刪除了所有功能并刪除了對公司名稱的引用:<?xml version='1.0' encoding='UTF-8'?><wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://XYZ/DTROrchestrator" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" name="DTROrchestratorService" targetNamespace="http://XYZ/DTROrchestrator"><wsdl:types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://XYZ/datatypes/tehnicalException" targetNamespace="http://XYZ/datatypes/tehnicalException" version="1.0">  <xs:complexType name="TechnicalExceptionInfoType">    <xs:sequence>      <xs:element minOccurs="0" name="ExceptionClass" type="xs:string"/>      <xs:element minOccurs="0" name="SubCode" type="xs:string"/>      <xs:element maxOccurs="unbounded" minOccurs="0" name="Description" type="xs:string"/>      <xs:element minOccurs="0" name="StackTraceString" type="xs:string"/>    </xs:sequence>  </xs:complexType></xs:schema><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://XYZ/DTROrchestrator" xmlns:ns2="http://XYZ/datatypes/tehnicalException" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://XYZ/DTROrchestrator" version="1.0">  <xs:import namespace="http://XYZ/datatypes/tehnicalException"/></xs:schema></wsdl:types>
查看完整描述

1 回答

?
慕慕森

TA貢獻(xiàn)1856條經(jīng)驗(yàn) 獲得超17個贊

我有一些信息?,F(xiàn)在我知道,當(dāng)我將 maven 設(shè)置為使用 Java 11 時,問題就開始了。這是新舊系統(tǒng)之間的關(guān)鍵區(qū)別。


此外,我通過從 jaxws-maven-plugin 描述中刪除整個 <dependencies> 和 <configuration> 部分解決了這個問題。這些部分是很久以前添加的,它們顯然不再正確了。


因此,現(xiàn)在我只有這個:


<plugin>

    <!-- Maven plugin for JAX-WS RI -->

    <!-- https://mvnrepository.com/artifact/com.sun.xml.ws/jaxws-maven-plugin -->

    <groupId>com.sun.xml.ws</groupId>

    <artifactId>jaxws-maven-plugin</artifactId>

    <version>2.3.3</version>

    <!-- <dependencies> ... </dependencies> REMOVED -->

    <!-- <configuration> ... </configuration> REMOVED -->

    <executions>

    ...

    </executions>

</plugin>

編輯:我忘了提及,我將 maven-shade-plugin 更改為 maven-assembly-plugin。使用第一個我仍然會出錯(盡管是另一個)。


順便說一句:能夠用 Java 11 編譯我的 SOAP 客戶端是一個漫長的故事,這不是唯一的問題。最后,我一切正常。


查看完整回答
反對 回復(fù) 2023-02-23
  • 1 回答
  • 0 關(guān)注
  • 127 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號