]
RH Bugzilla Integration commented on JBESB-3778:
------------------------------------------------
David Le Sage <dlesage(a)redhat.com> changed the Status of [bug
XMLHelper fails to load XSD referenced in jboss-esb.xml and fails
with a misleading error message.
--------------------------------------------------------------------------------------------------
Key: JBESB-3778
URL:
https://issues.jboss.org/browse/JBESB-3778
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Web Services
Affects Versions: 4.10, 4.11
Reporter: Marek Baluch
Attachments: server.log, ServicioValidacionDatos.esb
In case we have the following ESB definition (please note that the xsd path is not
prefixed by '/')
{code}
<actions faultXsd="ValidacionDatosFault.xsd" ...>
{code}
deployment will fail with
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
...
The message is misleading because the XSD file will not be found. The problem lies in the
fact that the ValidacionDatosFault.xsd is not prefixed by "/". The URI for that
resource will look like "classpath://ValidacionDatosRequest.xsd" and the
getPath() method will return an empty string which will be passed as argument to
ClassUtil.getResource(String, Class).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: