You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Isuru Eranga Suriarachchi (JIRA)" <ji...@apache.org> on 2011/01/18 11:15:45 UTC

[jira] Commented: (AXIS2-4929) Error when trying to view the WSDL (This occured while reading the generated schema file)

    [ https://issues.apache.org/jira/browse/AXIS2-4929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12983117#action_12983117 ] 

Isuru Eranga Suriarachchi commented on AXIS2-4929:
--------------------------------------------------

In our JAXWSRIWSDLGenerator, after generating the WSDL and schemas using the "wsgen" tool, we parse the schemas using XmlSchema. Above issue occurs due to an issue in XmlSchema [1]. But they have provided a workaround to use a unique id for each schema element read using the XmlSchemaCollection instance. So we can use it to fix this issue.

Thanks,
~Isuru

[1] https://issues.apache.org/jira/browse/WSCOMMONS-377

> Error when trying to view the WSDL (This occured while reading the generated schema file)
> -----------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4929
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4929
>             Project: Axis2
>          Issue Type: Bug
>          Components: jaxws
>         Environment: Linux, JDK 1.6
>            Reporter: Kasun Weranga Gunathilake
>            Assignee: Isuru Eranga Suriarachchi
>         Attachments: service.jar
>
>
> When trying to view the WSDL of attached services, it gives an error. 
> This is the exception.
> Retrieving schema at 'UDDIPublicationService_schema8.xsd', relative to '/tmp/_axis2org.apache.juddi.api.impl.UDDIPublicationImpl'.
> Retrieving schema at 'UDDIPublicationService_schema9.xsd', relative to '/tmp/_axis2org.apache.juddi.api.impl.UDDIPublicationImpl'.
> Retrieving schema at 'UDDIPublicationService_schema10.xsd', relative to '/tmp/_axis2org.apache.juddi.api.impl.UDDIPublicationImpl'.
> Retrieving schema at 'UDDIPublicationService_schema11.xsd', relative to '/tmp/_axis2org.apache.juddi.api.impl.UDDIPublicationImpl'.
> [ERROR] Error occurred while attempting to read generated schema file {org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection. Namespace: http://www.w3.org/2000/09/xmldsig#}
> [ERROR] Error occurred generating WSDL file for Web service implementation class {org.apache.juddi.api.impl.UDDIPublicationImpl}: {java.lang.Exception: Error occurred while attempting to read generated schema file {org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection. Namespace: http://www.w3.org/2000/09/xmldsig#}}
> java.lang.Exception: Error occurred while attempting to read generated schema file {org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection. Namespace: http://www.w3.org/2000/09/xmldsig#}
> 	at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.readInSchema(JAXWSRIWSDLGenerator.java:338)
> 	at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:188)
> 	at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:379)
> 	at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:372)
> 	at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1394)
> 	at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:149)
> 	at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
> 	at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
> 	at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org