cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-1140) wsdl2java failed if the schema import use the relative path to a url
Date Fri, 11 Jul 2014 11:20:04 GMT

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

Amit commented on CXF-1140:
---------------------------

I am using cxf version 2.7.9 and can confirm that this issue is not fixed. In fact, it doesn't
work with the latest version i.e. 3.0.0. However, if I change the version from 2.2.10, this
error doesn't occur, but then name collision issue occurs. Its a bottleneck issue for me really.
This is how my plugin looks:
<plugin>
	<groupId>org.apache.cxf</groupId>
	<artifactId>cxf-codegen-plugin</artifactId>
	<version>2.7.9</version>
	<executions>
		<execution>
			<id>generate-sources</id>
			<phase>generate-sources</phase>
			<configuration>
				<sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
				<wsdlOptions>
					<wsdlOption>
						<wsdl>http://XXXXXX/TestRetailServices/AccountManagementService.svc?wsdl</wsdl>
						<extraargs>
							<extraarg>-impl</extraarg>
							<extraarg>-p</extraarg>
							<extraarg>retailapi.accountmanagementservice.v2</extraarg>
							<extraarg>-autoNameResolution</extraarg>
						</extraargs>
					</wsdlOption>
				</wsdlOptions>
			</configuration>
			<goals>
				<goal>wsdl2java</goal>
			</goals>
		</execution>
	</executions>
</plugin>

> wsdl2java failed if the schema import use the relative path to a url
> --------------------------------------------------------------------
>
>                 Key: CXF-1140
>                 URL: https://issues.apache.org/jira/browse/CXF-1140
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0.2
>            Reporter: maomaode
>            Assignee: Daniel Kulp
>             Fix For: 2.0.10, 2.1.4
>
>         Attachments: ECMA-site.cap
>
>
> wsdl2java http://www.nabble.com/file/p13415060/csta-all.wsdl will give me
> org.apache.cxf.tools.common.ToolException: java.lang.RuntimeException: Fail to c
> reate wsdl definition from : http://www.nabble.com/file/p13415060/csta-all.wsdl
> Caused by : WSDLException (at /definitions/types/xs:schema/xsd:schema): faultCod
> e=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'camp-on
> -call.xsd' relative to document base 'http://www.ecma-international.org/standard
> s/ecma-323/csta/ed3/csta.xsd'
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaCon
> tainer.java:267)
>         at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.ja
> va:83)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:171)
> Caused by: java.lang.RuntimeException: Fail to create wsdl definition from : htt
> p://www.nabble.com/file/p13415060/csta-all.wsdl
> Caused by : WSDLException (at /definitions/types/xs:schema/xsd:schema): faultCod
> e=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'camp-on
> -call.xsd' relative to document base 'http://www.ecma-international.org/standard
> s/ecma-323/csta/ed3/csta.xsd'
>         at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionB
> uilder.java:144)
>         at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.build(WSDLDefinitionBuild
> er.java:113)
>         at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuil
> der.build(JAXWSDefinitionBuilder.java:90)
>         at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuil
> der.build(JAXWSDefinitionBuilder.java:63)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaCon
> tainer.java:151)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaCon
> tainer.java:259)
>         ... 3 more
> Caused by: javax.wsdl.WSDLException: WSDLException (at /definitions/types/xs:sch
> ema/xsd:schema): faultCode=OTHER_ERROR: Unable to locate with a locator the sche
> ma referenced at 'camp-on-call.xsd' relative to document base 'http://www.ecma-i
> nternational.org/standards/ecma-323/csta/ed3/csta.xsd'
>         at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>         at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionB
> uilder.java:125)
>         ... 8 more



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message