Ant Task Should Catch Runtime Errors and Report Them
----------------------------------------------------
Key: WODEN-77
URL: http://issues.apache.org/jira/browse/WODEN-77
Project: Woden
Issue Type: Bug
Components: Tools
Reporter: Arthur Ryman
Assigned To: Arthur Ryman
In this example, the runtime exception terminated the Ant Task. Instead, the
Ant Task should log the error and continue.
Starting:
file:///D:/workspaces/WSD2/woden/downloads/w3c/documents/good/SchemaId-1G/schemaIds.wsdl
Exception in thread "main" java.lang.RuntimeException:
org.apache.ws.commons.schema.XmlSchemaException: An imported schema was
announced to have the namespace
http://greath.example.com/2004/schemas/reservationItems, but has the namespace
http://greath.example.com/2004/services/retrieveDetails
at
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1803)
at
org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1540)
at
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:156)
at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:330)
at
org.apache.woden.internal.DOMWSDLReader.parseSchemaInline(DOMWSDLReader.java:282)
at
org.apache.woden.internal.BaseWSDLReader.parseTypes(BaseWSDLReader.java:581)
at
org.apache.woden.internal.BaseWSDLReader.parseDescription(BaseWSDLReader.java:433)
at
org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:205)
at
org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:232)
at
org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:245)
at
org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:124)
at
org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:135)
at org.apache.woden.ant.WsdlCm.main(WsdlCm.java:122)
Caused by: org.apache.ws.commons.schema.XmlSchemaException: An imported schema
was announced to have the namespace
http://greath.example.com/2004/schemas/reservationItems, but has the namespace
http://greath.example.com/2004/services/retrieveDetails
at
org.apache.ws.commons.schema.SchemaBuilder$1.validate(SchemaBuilder.java:1532)
at
org.apache.ws.commons.schema.SchemaBuilder.setNamespaceAttributes(SchemaBuilder.java:283)
at
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:78)
at
org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:67)
at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:325)
at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:272)
at
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1801)
... 12 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]