[jira] [Commented] (CXF-8247) The specified argument 'classpath:/schemas/wsdl' (case sensitive) for 'setRewritePrefix' is not valid.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (CXF-8247) The specified argument 'classpath:/schemas/wsdl' (case sensitive) for 'setRewritePrefix' is not valid.

ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/CXF-8247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17062930#comment-17062930 ]

Freeman Yue Fang commented on CXF-8247:
---------------------------------------

Hi [~szab.kel],

I think the problem comes from that you have
{code}
        <dependency>
            <groupId>com.sun.xml.ws</groupId>
            <artifactId>rt</artifactId>
            <version>2.3.2</version>
        </dependency>
{code}
This jax-ws implementation isn't from CXF, you should use CXF one.
Put dependency like
{code}
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
{code}
instead

Freeman

> The specified argument 'classpath:/schemas/wsdl' (case sensitive) for 'setRewritePrefix' is not valid.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-8247
>                 URL: https://issues.apache.org/jira/browse/CXF-8247
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.3.2, 3.3.4, 3.3.5
>         Environment: Windows 10 Pro 1909
> Open JDK 11
>  
>            Reporter: Szabolcs Kelemen
>            Priority: Major
>
> I am trying to use CXF Codegen plugin to generate a client for a public soap api on Java 11 (no user needed, it only returns currencies):
> {color:#808080}[http://www.mnb.hu/arfolyamok.asmx?singleWsdl]{color}
> Reproduction is available here: [https://bitbucket.org/szabkel/cxf-codegen-issue]
> I tried with version 3.3.2 and 3.3.4 too, same result.
> The code generation runs, however I can't get past this error when creating the service object:
>  
> {code:java}
> Exception in thread "main" javax.xml.ws.WebServiceException: java.lang.IllegalArgumentException: JAXP09020005: The specified argument 'classpath:/schemas/wsdl' (case sensitive) for 'setRewritePrefix' is not valid.
> at com.sun.xml.ws.util.xml.XmlCatalogUtil.createDefaultCatalogResolver(XmlCatalogUtil.java:77)
> at com.sun.xml.ws.util.xml.XmlUtil.createDefaultCatalogResolver(XmlUtil.java:296)
> at com.sun.xml.ws.client.WSServiceDelegate.createCatalogResolver(WSServiceDelegate.java:348)
> at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:334)
> at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:292)
> at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:201)
> at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:182)
> at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:178)
> at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:89)
> at javax.xml.ws.Service.<init>(Service.java:112)
> at hu.mnb.webservices.MNBArfolyamServiceSoapImpl.<init>(MNBArfolyamServiceSoapImpl.java:44)
> at com.test.Run.main(Run.java:13)
> Caused by: java.lang.IllegalArgumentException: JAXP09020005: The specified argument 'classpath:/schemas/wsdl' (case sensitive) for 'setRewritePrefix' is not valid.
> at java.xml/javax.xml.catalog.CatalogMessages.reportIAE(CatalogMessages.java:140)
> at java.xml/javax.xml.catalog.BaseEntry.verifyURI(BaseEntry.java:231)
> at java.xml/javax.xml.catalog.RewriteSystem.setRewritePrefix(RewriteSystem.java:65)
> at java.xml/javax.xml.catalog.RewriteSystem.<init>(RewriteSystem.java:47)
> at java.xml/javax.xml.catalog.CatalogReader.startElement(CatalogReader.java:190)
> at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:510)
> at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:183)
> at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:351)
> at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2708)
> at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
> at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
> at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:534)
> at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888)
> at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
> at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
> at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216)
> at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
> at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:324)
> at java.xml/javax.xml.parsers.SAXParser.parse(SAXParser.java:276)
> at java.xml/javax.xml.catalog.CatalogImpl.parse(CatalogImpl.java:295)
> at java.xml/javax.xml.catalog.CatalogImpl.load(CatalogImpl.java:171)
> at java.xml/javax.xml.catalog.CatalogManager.catalog(CatalogManager.java:73)
> at java.xml/javax.xml.catalog.CatalogManager.catalogResolver(CatalogManager.java:119)
> at com.sun.xml.ws.util.xml.XmlCatalogUtil.createCatalogResolver(XmlCatalogUtil.java:95)
> at com.sun.xml.ws.util.xml.XmlCatalogUtil.createDefaultCatalogResolver(XmlCatalogUtil.java:75)
> ... 11 more
> Caused by: java.net.MalformedURLException: unknown protocol: classpath
> at java.base/java.net.URL.<init>(URL.java:634)
> at java.base/java.net.URL.<init>(URL.java:523)
> at java.xml/javax.xml.catalog.BaseEntry.verifyURI(BaseEntry.java:226)
> ... 34 moreProcess finished with exit code 1
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)