SAXException: src-resolve: Cannot resolve the name error in JBoss EAP 5.1.2

Solution Verified - Updated -

Issue

  • The web service end point has @SchemaValidation and wsdlLocation specified.
  • The following error message is thrown in the server log for incoming SOAP requests:
ERROR [SOAPFaultHelperJAXWS] SOAP request exception
org.jboss.ws.WSException: org.xml.sax.SAXException: src-resolve: Cannot resolve the name 'foo:bar' to a(n) 'type definition' component.
    at org.jboss.ws.WSException.rethrow(WSException.java:68)
    at org.jboss.ws.core.soap.SOAPBodyElementDoc.validatePayload(SOAPBodyElementDoc.java:138)
...
...
Caused by: org.xml.sax.SAXException: src-resolve: Cannot resolve the name 'foo:bar' to a(n) 'type definition' component.
    at org.jboss.ws.extensions.validation.StrictlyValidErrorHandler.error(StrictlyValidErrorHandler.java:43)
    at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 5.1.2
  • JBossWSNative 3.1.2.SP11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.